| Summary: | macros definition depnds on file order in indexing operation. | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Vasiliy Dybala <dibalavs> |
| Component: | cdt-indexer | Assignee: | Project Inbox <cdt-indexer-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | Markus Schorn <mschorn.eclipse> |
| Severity: | major | ||
| Priority: | P3 | CC: | cdtdoug |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
*** This bug has been marked as a duplicate of bug 197989 *** |
1. create new c++ project and add 3 files: ------ test.cpp ------------- #define MY_DEF #include "test.h" ------- test.h---------------- #ifndef MY_DEF void f(); #endif -------- test1.cpp ---------- #include "test.h" void t() { f(); } 2. rebuild index. Open file test1.cpp There is an error "Function 'f' could not be resolved". on f(); call. In file test.h definition of void f(); will be gray out. P.S. if rename test.cpp to rest2.cpp and rebuild index again finction f() will resolved successfully. CDT: Version: 8.0.0.201105110004 Build id: 201105110004 -- Configuration Details -- Product: Eclipse 1.4.0.20110319-2300 (org.eclipse.epp.package.cpp.product) Installed Features: org.eclipse.platform 3.7.0.r20110302-9gF7SHCIFt6ms-lIjrC6vK_XO-IabJMKu