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 92142

Summary: include directive when macros used failed to be parsed
Product: cnd Reporter: Maria Tishkova <mromashova>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 92400    

Description Maria Tishkova 2007-01-09 16:58:58 UTC
Example from boost library:


#  ifndef BOOST_REGEX_USER_CONFIG
#     define BOOST_REGEX_USER_CONFIG <boost/regex/user.hpp>
#  endif

#  include BOOST_REGEX_USER_CONFIG

last include directive is failed to be parsed.

I have set P2 as priority as boost cannot be configured well without making such
include directives work.
Comment 1 Vladimir Voskresensky 2007-01-09 18:11:50 UTC
confirmed
Comment 2 Vladimir Voskresensky 2007-01-09 19:21:43 UTC
updated infrastructure.

CVS log:
Checking in
apt/src/org/netbeans/modules/cnd/apt/impl/structure/APTIncludeBaseNode.java;
/shared/data/ccvs/repository/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/structure/APTIncludeBaseNode.java,v
 <--  APTIncludeBaseNode.java
new revision: 1.1.2.4; previous revision: 1.1.2.3
done
Checking in
modelimpl/src/org/netbeans/modules/cnd/modelimpl/trace/APTWalkerTest.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/trace/APTWalkerTest.java,v
 <--  APTWalkerTest.java
new revision: 1.2.2.3.4.3; previous revision: 1.2.2.3.4.2
done
Checking in apt/src/org/netbeans/modules/cnd/apt/support/APTIncludeResolver.java;
/shared/data/ccvs/repository/cnd/apt/src/org/netbeans/modules/cnd/apt/support/APTIncludeResolver.java,v
 <--  APTIncludeResolver.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Checking in
modelimpl/src/org/netbeans/modules/cnd/modelimpl/parser/apt/APTParseFileWalker.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/parser/apt/APTParseFileWalker.java,v
 <--  APTParseFileWalker.java
new revision: 1.1.2.4; previous revision: 1.1.2.3
done
Checking in apt/src/org/netbeans/modules/cnd/apt/structure/APTInclude.java;
/shared/data/ccvs/repository/cnd/apt/src/org/netbeans/modules/cnd/apt/structure/APTInclude.java,v
 <--  APTInclude.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Checking in
apt/src/org/netbeans/modules/cnd/apt/impl/support/APTIncludeResolverImpl.java;
/shared/data/ccvs/repository/cnd/apt/src/org/netbeans/modules/cnd/apt/impl/support/APTIncludeResolverImpl.java,v
 <--  APTIncludeResolverImpl.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Comment 3 Vladimir Voskresensky 2007-01-10 03:31:45 UTC
fixed:
- support macro expansion in #include and #include_next directives
Comment 4 Maria Tishkova 2007-01-12 08:25:07 UTC
reopen as the problem is still reproducible for boost,
please see 92400 for more detailes
Comment 5 Vladimir Voskresensky 2007-01-12 12:35:18 UTC
after one more check we agreed, that bug was fixed