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 257518 - unamanaged project from OSS 12.4 is incorrectly parsed in NB 8.1
Summary: unamanaged project from OSS 12.4 is incorrectly parsed in NB 8.1
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-11 15:36 UTC by Vladimir Voskresensky
Modified: 2016-02-04 09:04 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 Vladimir Voskresensky 2016-01-11 15:36:39 UTC
OSS 12.5 uses configuration.xml with version 95.
LLVM configured by build.log writes the following in configuration.xml
      <item path="llvm/tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp"
            ex="false"
            tool="1"
            flavor2="8">
      </item>

And in OSS 12.4 this file is parsed in C++11 flavor as expected (flavor2=8 means C++11 flavor)

If I open this project as is in NB 8.1 then this file is parsed in C++98 context which makes Code Assistance incorrect
Comment 1 Alexander Simon 2016-01-12 16:07:35 UTC
fixed in enum, change set:
3d6099405a38
Comment 2 Alexander Simon 2016-01-13 09:21:20 UTC
The bug origin is:
The bug appeared while fixing a bug #240538 which introduced an "important flags" (flags that have an influence on system include paths and predefined macros). The bug #240538 fix has a lack: important flags are not persisted if item configuration does not have own configuration (-I or -D). The lack was fixed in a bug #250210.

What was fixed in this bug?
- the fix tries to restore missed important flags by standard.

Also the fix makes an item property "C++ standard" semi-working. The property "C++ standard" is detected at code assistance configure time.
if user changes the property
Before the fix the IDE:
- accept the property to highlight language keywords.
- ignore the property to detect system include paths and predefined macros.

After the fix the IDE:
- accept the property to highlight language keywords
- use the property to detect system include paths and predefined macros in case important flags are empty.

Of course the best way to fix a project created after the bug #240538 and before the bug #250210 is to reconfigure code assistance.
Comment 3 Quality Engineering 2016-01-18 03:05:12 UTC
Integrated into 'main-silver', will be available in build *201601180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/6b12517eddc8
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #257518 unamanaged project from OSS 12.4 is incorrectly parsed in NB 8.1
(transplanted from 3d6099405a38c767488716d5edbf9e087e795ba7)
Comment 4 ilia 2016-01-27 14:52:20 UTC
  Fixes of this bug:
    http://hg.netbeans.org/releases/rev/3d6099405a38
Comment 5 soldatov 2016-02-04 09:04:56 UTC
Verified in NetBeans 8.1 patch1