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 211295 - [regression] incorrect language for header files
Summary: [regression] incorrect language for header files
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 7.2
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-04-17 06:04 UTC by Alexander Simon
Modified: 2012-04-18 21:27 UTC (History)
0 users

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 Alexander Simon 2012-04-17 06:04:35 UTC
Code model treats the header file ddd/vsl-lex.C as C file.
Errors:
526 Unable to resolve identifier bool
528 Unable to resolve identifier class
529 Unable to resolve identifier private
...
Comment 1 Alexander Simon 2012-04-17 06:20:44 UTC
The same for MySQL:
client/log_event.cc 782 Unable to resolve identifier new
...
Comment 2 Vladimir Voskresensky 2012-04-17 07:50:13 UTC
caused by http://hg.netbeans.org/cnd-main/rev/b4cf24cbf950
Comment 3 Vladimir Voskresensky 2012-04-17 11:00:46 UTC
fixed to be as before.
http://hg.netbeans.org/cnd-main/rev/d27c1e7df7cc

Although  it's worth to have CPP_HEADER and C_HEADER values which allow in case of pure C project assign language for headers to be C oriented.
Now headers are always treated as C++ and we do not check start compilation file when open file in editor to see if it was really included from C or C++ context
Comment 4 Quality Engineering 2012-04-18 21:27:05 UTC
Integrated into 'main-golden', will be available in build *201204181547* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d27c1e7df7cc
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #211295 - [regression] incorrect language for header files
- header has c++ language by default till we don't have C vs C++ headers separations