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.
tested with build 201010060000 i created a unittest project (c++ application) then, by adding `pkg-config --cflags unittest-cpp` to c++ compiler other options, and `pkg-config --libs unittest-cpp` to linker->option->other option. I added the following code to main.cpp #include <UnitTest++.h> #include <cstdlib> using namespace std; int main() { return UnitTest::RunAllTests(); } TEST(basic) { int var; //<-------Unable to resolve indentifier 'var' }; TEST(another) { CHECK( true ); }; and i get the highlighted error explained in the source comment. The project however builds without problem. when i remove the second test, the highlighted error dissapears (i'm left just with a warning that var is not being used, which is expected) the unittest-cpp.pc is the same one attached on a previous bug report: http://netbeans.org/bugzilla/attachment.cgi?id=102238
Simple example: #define TEST(name) class Test##name { virtual void RunImpl(); } test##name##Instance; void Test##name::RunImpl() TEST(basic) { int var; }; TEST(name2) { int var2; //<-------Unable to resolve indentifier 'var' }; Strange... It's depends on name. Error disappears if you delete 'c' in 'basic'.
there are a lot of messages on console: Reference storage returns CLASS Testbasic[299-310][22:1-22:12] where is expected macro Reference storage returns CLASS Testname2[330-341][26:1-26:12] where is expected macro
http://hg.netbeans.org/cnd-main?cmd=changeset;node=bc12402a56e7