<div dir="ltr">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.<br><br clear="all">--<br>Ehsan<br><<a href="http://ehsanakhgari.org/">http://ehsanakhgari.org/</a>><br>


<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 3:52 PM, Stefan Seefeld <span dir="ltr"><<a href="mailto:seefeld@sympatico.ca">seefeld@sympatico.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Where can I find detailed information about the accepted options for the<br>
"command_line_args" parameter of the clang_parseTranslationUnit function ?<br>
<br>
In particular, it appears that by default this function picks up flags<br>
(include search paths, macros) from the system compiler installed on my<br>
platform (Fedora 14). How can I override that ? For example, may I<br>
invoke this function to use flags for a non-system compiler ? (I'm in<br>
particular interested into a variety of cross-compilers I have installed.)<br>
<br>
Also, how can I choose the language and language flags to be used for<br>
lexing and parsing ("C", "C99", "C++", etc.) ?<br>
<br>
Thanks,<br>
         Stefan<br>
<font color="#888888"><br>
--<br>
<br>
       ...ich hab' noch einen Koffer in Berlin...<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</font></blockquote></div><br></div>