Community
Participate
Working Groups
Build Identifier: I20110613-1736 Unfortunately, I have many issues with CDT 8.0 indexer. It works much worse than CDT 7.0 on my projects. I don't know why, but anyway I have tried to get some error messages. One of the problems which is probably new (since it causes some mistakes which didn't exist in CDT 7.0) is the following example. In this example, It says: unbounded string encountered after #ifdef line: #define PR "" void test() { #ifdef _DEBUG PR""; #endif } int main(int argc, char **argv) { return 0; } Reproducible: Always Steps to Reproduce: Put the above code in a source file.
One more comment: PR"" was the minimal construct that caused this problem. PR prefix is not the only prefix with this problem. The actual word which caused this problem was PRIuPTR"" so it is not limited to PR.
(In reply to comment #1) > One more comment: PR"" was the minimal construct that caused this problem. PR > prefix is not the only prefix with this problem. The actual word which caused > this problem was PRIuPTR"" so it is not limited to PR. Yep, any identifier that ends with R will trigger the issue.
Added testcase and fix.
*** cdt git genie on behalf of Markus Schorn *** Bug 362562: Bogus detection of raw strings in inactive code. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=2ef264d1abe366a3ada5151f09ea99eb28c669d4