<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=">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 class="gmail_extra"><br></div></div></div></div>