[cfe-dev] Compiler arguments for clang_parseTranslationUnit
ehsan.akhgari at gmail.com
Tue Feb 15 13:10:09 PST 2011
I think the idea is that you just pass in argc and argv to that function so
that your tool can be used as a drop-in replacement for a real compiler.
On Tue, Feb 15, 2011 at 3:52 PM, Stefan Seefeld <seefeld at sympatico.ca>wrote:
> Where can I find detailed information about the accepted options for the
> "command_line_args" parameter of the clang_parseTranslationUnit function ?
> In particular, it appears that by default this function picks up flags
> (include search paths, macros) from the system compiler installed on my
> platform (Fedora 14). How can I override that ? For example, may I
> invoke this function to use flags for a non-system compiler ? (I'm in
> particular interested into a variety of cross-compilers I have installed.)
> Also, how can I choose the language and language flags to be used for
> lexing and parsing ("C", "C99", "C++", etc.) ?
> ...ich hab' noch einen Koffer in Berlin...
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev