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

Arsenault, Matthew Matthew.Arsenault at amd.com
Tue Jul 2 09:29:28 PDT 2013


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






More information about the cfe-dev mailing list