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 258049 - [newcodemodel] New parser doesn't highlight inaccessible macro
Summary: [newcodemodel] New parser doesn't highlight inaccessible macro
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-18 09:51 UTC by soldatov
Modified: 2016-09-04 01:57 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 soldatov 2016-02-18 09:51:49 UTC
======================== main.cpp =============================================
#include "file1.h"

int main(int argc, char** argv) {
    AA i = 0;
    return 0;
}
======================== file1.h ==============================================

#ifndef FILE1_H
#define FILE1_H

#error ssssssssssssssssss
#define AA int

#endif /* FILE1_H */

===============================================================================

Scenario:
- Create project with main.cpp and file1.h
- Close IDE
- Delete old userdir and start IDE again
- Open project
- Open main.cpp file
===>

In Oracle Solaris Studio in main.cpp I see "AA is a unresolved identifier"
In NetBeans I don't see any errors in main.cpp and "AA == int"

In both cases I see "Some #include or #error directives failed." sign on project's node.

For me Oracle Solaris Studio works better in this case.
Comment 2 Quality Engineering 2016-09-04 01:57:13 UTC
Integrated into 'main-silver', will be available in build *201609040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fdc1e5ac3b97
User: Petr Kudryavtsev <petrk@netbeans.org>
Log: Fixing #258049 - [newcodemodel] New parser doesn't highlight inaccessible macro