[cfe-dev] Using "-x c++" with clang_parseTranslationUnit()

Argyrios Kyrtzidis akyrtzi at gmail.com
Sat Mar 19 14:26:05 PDT 2011


I think it's because you don't pass it as 2 strings, "-x" and "c++"

On Mar 19, 2011, at 7:52 AM, Stefan Seefeld wrote:

> I'm trying to set the language to be used for parsing, with 
> clang_parseTranslationUnit(). However, it appears that option is being 
> ignored (causing the warning "warning: argument unused during 
> compilation: '-x c++'" instead).
> 
> Am I doing something wrong ? Is this a known bug or limitation ?
> 
> 
> Thanks,
>         Stefan
> 
> -- 
> 
>       ...ich hab' noch einen Koffer in Berlin...
> 
> _______________________________________________
> 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