[cfe-dev] Disable

Andrey Tarasevich tarasevich.andrey at googlemail.com
Wed Apr 6 11:55:12 PDT 2011


Hello

I'm doing some source-to-source manipulations. Is it possible to disable
lexical analyzing during parsing? I mean, if there is an error during
parsing, for instance consider following code sample

void main()
{
    int *a = NULL;
    int b = 0;
    b++;
}

clang will indicate error for a NULL, since stdlib.h is not included. And
that statement will be ignored for the AST generation. Is it possible to
make clang ignore such errors and generate AST as there are no errors?

With best regards,
Andrey Tarasevich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110406/222624c3/attachment.html>


More information about the cfe-dev mailing list