[cfe-dev] Can I add include files into preprocessor?

Wang Qi wqking at outlook.com
Tue Jul 2 23:08:11 PDT 2013


> Date: Tue, 2 Jul 2013 22:38:07 -0700 
> From: godepankaj at yahoo.com 
> To: cfe-dev at cs.uiuc.edu 
> Subject: Re: [cfe-dev] Can I add include files into preprocessor? 
>  
> Another way of doing this can be to use 'HeaderSearchOptions' as  
> described in the post. 
>  
> http://clang-developers.42468.n3.nabble.com/unable-to-parse-header-files-td2145004.html 
>  
> What is the difference between using 'HeaderSearchOptions' and -include  
> flag? Is it only that we use 'HeaderSearchOptions' when using clang as  
> a library and '-include' when using clang as executable ? 

I think HeaderSearchOptions can only add include search directories rather than header files?
Also, we can use -include in libclang, there is API to parse command line arguments. 		 	   		  




More information about the cfe-dev mailing list