<div dir="ltr"><div><div><div><div><div>Do you mean something like:<br><br></div>cat before.c > temp.c<br></div>cat sourcefile.c >> temp.c<br></div>cat after.c >> temp.c<br></div><div>clang temp.c ...<br><br></div>or something that does that also to header files included by the sourcefile.c ?<br><br></div><div>I'm not sure I know the answer, but I think the distinction is important to be able to answer this.<br><br></div><div>(I'm reasonably sure it's not really Lex/Parser that is the parts you want to look at, SourceFileManager or something around there is more likely to be your area of interest - I could be heading in the wrong direction tho' - I only know scattered parts of how clang works)<br></div><div><br>--<br></div>Mats<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 June 2017 at 17:41, Umesh Kalappa via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I'm new to Lex/Parser code of Clang , we are trying to append some<br>
static buffer to the beginning and end of every C file we open for<br>
compilation and investigating the same, how we do?<br>
<br>
Any reference or hintsĀ  from experts ,how we can do , will be<br>
appreciated and save our time a lot .<br>
<br>
<br>
Thank you<br>
~Umesh<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>