[cfe-dev] clang_parseTranslationUnit_Impl() problem

don hinton don.hinton at gmx.com
Sun Aug 19 14:11:48 PDT 2012


On Aug 19, 2012, at 15:21, don hinton <don.hinton at gmx.com> wrote:

> On Aug 19, 2012, at 15:00, don hinton <don.hinton at gmx.com> wrote:
> 
>> Hi:
>> 
>> clang_parseTranslationUnit_Impl() passes the results of CIndexer::getClangResourcesPath() to ASTUnit::LoadFromCommandLine(), causing it to override HeaderSearchOpts::ResourceDir which means it can no longer find things like <string>.
>> 
>> Anyone else experiencing this?
> 
> That doesn't seem to be the problem, but it still can't find includes like <string>.  btw, I'm passing the arguments from Compile.CXX in the make system.

Turns out it's only a problem when processing .h files.  So, when using libclang, how can I force it to use c++ instead of c?

thanks...
don

> 
> thanks...
> don
> 
> 
>> take care...
>> don
>> _______________________________________________
>> 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