[cfe-dev] Can I add include files into preprocessor?
Pankaj Gode
godepankaj at yahoo.com
Tue Jul 2 22:38:07 PDT 2013
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 ?
Regards,
Pankaj
________________________________
From: "Arsenault, Matthew" <Matthew.Arsenault at amd.com>
To: Wang Qi <wqking at outlook.com>; "cfe-dev at cs.uiuc.edu" <cfe-dev at cs.uiuc.edu>
Sent: Tuesday, July 2, 2013 9:59 PM
Subject: Re: [cfe-dev] Can I add include files into preprocessor?
I think what you're looking for is the -include flag
________________________________________
From: cfe-dev-bounces at cs.uiuc.edu [cfe-dev-bounces at cs.uiuc.edu] on behalf of Wang Qi [wqking at outlook.com]
Sent: Tuesday, July 02, 2013 3:07 AM
To: cfe-dev at cs.uiuc.edu
Subject: [cfe-dev] Can I add include files into preprocessor?
Before parse the source file to Clang to parse, I would like to tell Clang preprocessor to include some header files.
What I want to do is to include headers that can expand forward declaration to full declaration.
So can I add include files to preprocessor, similar as how we add defines?
Thanks
_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130702/d6747d5e/attachment.html>
More information about the cfe-dev
mailing list