[cfe-dev] libclang: failing assert
Argyrios Kyrtzidis
kyrtzidis at apple.com
Sat Mar 16 10:56:20 PDT 2013
On Mar 16, 2013, at 10:48 AM, Argyrios Kyrtzidis <kyrtzidis at apple.com> wrote:
> On Mar 16, 2013, at 3:09 AM, Erik Verbruggen <erik.verbruggen at me.com> wrote:
>
>> Hi,
>>
>> When using libclang's clang_annotateTokens, I have a consistently failing assert in CIndex.cpp, line 5429. This is for both 3.2 and trunk. When I comment the assert out, everything looks to be fine. Is this assert valid, and if so, what is it checking?
>
> It makes sure that when lexing for preprocessor directives tokens, that any cursors produced will refer to the correct clang_tokenize'd token.
> Are you able to provide a preprocessed file for testing ?
>
You can use "-E -frewrite-includes" to preserve preprocessor directives.
>
>>
>> Regards,
>> Erik.
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list