<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 9, 2015 at 12:57 PM, Douglas Katzman <span dir="ltr"><<a href="mailto:dougk@google.com" target="_blank">dougk@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Add more libraries. One thing you can do is build 'clang-tidy' and use what it uses, minus the ones with 'tidy' in the name.<div>These worked for me:<div><br><div><div>g++ -o try try.o -L lib \</div><div>  -lclangTooling \</div><div>  -lclangStaticAnalyzerFrontend -lclangFrontend -lclangDriver \</div><div>  -lclangParse -lLLVMMCParser -lclangSerialization -lclangSema \</div><div>  -lclangEdit -lLLVMBitReader -lLLVMOption -lclangStaticAnalyzerCheckers \</div><div>  -lclangStaticAnalyzerCore -lclangAnalysis -lclangAST -lclangASTMatchers \</div><div>  -lclangToolingCore \</div><div>  -lclangRewrite -lclangLex -lclangBasic -lLLVMCore -lLLVMMC -lLLVMSupport \</div><div>  -lpthread -ldl -lz -ltermcap</div></div><div><br></div><div>You may also want to have a look at <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__eli.thegreenplace.net_2012_06_08_basic-2Dsource-2Dto-2Dsource-2Dtransformation-2Dwith-2Dclang&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=BbZNxaRX8U_BzMhQgBYzY1CZ0D9UR_VhA7T6jDJ415Y&s=L-enhGUaff2BKAoRfUS37fzeZy_2mqigf50Xagfqu60&e=" target="_blank">http://eli.thegreenplace.net/2012/06/08/basic-source-to-source-transformation-with-clang</a> though it seems a bit out-of-date. That makefile doesn't work exactly as-is.</div></div></div></div></blockquote><div><br></div><div>The up-to-date source is <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_eliben_llvm-2Dclang-2Dsamples&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=CnzuN65ENJ1H9py9XLiRvC_UQz6u3oG6GUNn7_wosSM&m=gnVrLl-WiPIEm6g0YXmpuBBlop5VXiiDMxMtpI6yWz0&s=Udvf4n-Gu63HdWTkwS7HJB_RBJuB3YBwhxp7QYsjWr8&e=">https://github.com/eliben/llvm-clang-samples</a> -- the Makefile in this repo works (repo is kept in sync with LLVM head every week or two, and there are branches for LLVM releases). It has both LLVM and Clang-linking samples for out-of-tree builds.</div><div><br></div><div>Eli</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div class="gmail_extra"><br></div></div></div></div>
<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" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div></div>