<div dir="ltr">yes, I understand. but then users have to do this every time manually...<div><br></div><div>I defined some macros inside a head file and this file must be included before parsing,</div><div>so it is better to do this automatically inside the code which will make the user's life easier.</div><div><br></div><div>Will this be complicated? or there is no public API to do this? </div><div><br></div><div>Thanks!</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 12, 2015 at 10:21 AM, Manuel Klimek <span dir="ltr"><<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If you run a libTooling tool, you usually can pass command line flags - you can just pass -include there.</div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Mon, Oct 12, 2015 at 7:01 PM xiaohui chen <<a href="mailto:xchen198812@gmail.com" target="_blank">xchen198812@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">Hi Manuel,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am writing a libtooling tool.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">In the command line we can use '-include' to Include file before parsing. My questions is what is the corresponding API</div><div style="font-size:12.8px">to do this?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I tried  Opts.Includes.push_back , but it seems not working...</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Sincerely</div></div><div dir="ltr"><div style="font-size:12.8px">xiaohui</div></div></blockquote></div>
</div></div></blockquote></div><br></div>