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 258719 - [newcodemodel] a lot of unresolved id in code model
Summary: [newcodemodel] a lot of unresolved id in code model
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: PC Solaris
: P1 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2016-04-08 08:09 UTC by Alexander Simon
Modified: 2016-04-09 01:59 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 2016-04-08 08:09:03 UTC
Since Apr, 7 code model has a lot of unresolved IDs.
There is no unresolved IDs with old code model.
For example.
- project clucene-core-0.9.21b
- file src/CLucene/StdHeader.cpp

1.
void _lucene_shutdown(){
    CL_NS(search)::FieldSortedHitQueue::Comparators.clear(); // clear is unresolved
	_CLDELETE(CL_NS(search)::Sort::RELEVANCE);

2. 
wchar_t* lucenewcsdup(const wchar_t* v CL_FILELINEPARAM){
    size_t len = _tcslen(v); // tcslen is unresolved
    wchar_t* ret = new wchar_t[len+1];
    _tcsncpy(ret,v,len+1); // tcsncpy is unresolved
Comment 1 Alexander Simon 2016-04-08 08:12:07 UTC
Appear that changeset 5e288dd3f494 break code model.
Comment 2 Vladimir Voskresensky 2016-04-08 14:49:27 UTC
Reduced testcase:
file.cpp:
#include "newfile.h"

int main(int argc, char** argv) {
    _tprintf; // unresolved identifier
    return 0;
}

file newfile.h:
---------------------------
//* incorrect interpretation of start-block comment
#define _tprintf wprintf

---------------------------
As result we have missed content of file (so missed define directive) and 
unexpected token '/' error message in header file
Comment 4 Quality Engineering 2016-04-09 01:59:13 UTC
Integrated into 'main-silver', will be available in build *201604090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b7f884f42582
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #258719 - [newcodemodel] a lot of unresolved id in code model (binary update)
- we support line comments as priority in any language flavor