Community
Participate
Working Groups
CDT 2.0.0.200406280300 1. Turn on all indexer problem markers 2. Add code: void foo() { SomeUnknownType t; // line A } The indexer will detect and mark a syntax problem on line A. However it will only underline the letter 'S', not all of "SomeUnknownType".
That sounds like trouble in parser-offset land to me. Amigos?
highlighting only one character happens when the parser returns offsets where the end offsets is <= the start offset. The real bug here is then, why is this error reported as a syntax error with little offset information instead of the semantic error.
The error is now the correct semantic problem: "Attempt to use symbol failed : SomeUnknownType ..." Fix commited to HEAD only. Fix will be propagated to 2.0.1 stream later with the rest of the parser fixes.
fix is now in 2.0.1