This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241346 - provide '-include file' settings
Summary: provide '-include file' settings
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
: 236905 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-02-03 15:09 UTC by Vladimir Voskresensky
Modified: 2014-02-07 12:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2014-02-03 15:09:28 UTC
instead of current hack in include directives user should be able to specify/see '-include file' based setting in project/folder/file properties.
Code model handles such options according standard:
-include file
    Process file as if #include "file" appeared as the first line of the primary source file. However, the first directory searched for file is the preprocessor's working directory instead of the directory containing the main source file. If not found there, it is searched for in the remainder of the #include "..." search chain as normal.

    If multiple -include options are given, the files are included in the order they appear on the command line.
Comment 1 Quality Engineering 2014-02-05 02:45:29 UTC
Integrated into 'main-silver', will be available in build *201402050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/73b88b46bad7
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: API for #241346 - provide '-include file' settings
Comment 2 Quality Engineering 2014-02-06 02:49:59 UTC
Integrated into 'main-silver', will be available in build *201402060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/75a77389b6d0
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #241346 provide '-include file' settings
- implement project part
Comment 3 Vladimir Voskresensky 2014-02-06 12:07:37 UTC
code model part
http://hg.netbeans.org/cnd-main/rev/9902ff0745f4
Comment 4 Alexander Simon 2014-02-06 13:05:47 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/fdee208dde7f
Comment 5 Quality Engineering 2014-02-07 02:38:17 UTC
Integrated into 'main-silver', will be available in build *201402070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9902ff0745f4
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing #241346 provide '-include file' settings
- code model part
Comment 6 Alexander Simon 2014-02-07 12:41:58 UTC
*** Bug 236905 has been marked as a duplicate of this bug. ***