<div dir="ltr"><div class="gmail_quote"><br>The goal is to enable tools that use libclang to display additional errors and warnings.<br>
Normally libclang does not load any plugins when its parsing code through clang_parseTranslationUnit.<br>
This patch moves the plugin loading code from ExecuteCompilerInvocation to the class CompilerInstance and adds the method calls to ASTUnit::Parse and ExecuteCompilerInvocation.<br>
I additionally added the symbols that are needed for the plugin to link against libclang to tools/libclang/libclang.exports.<br>
<br>
<a href="http://reviews.llvm.org/D5611" target="_blank">http://reviews.llvm.org/D5611</a><br>
<br>
Files:<br>
  examples/PrintFunctionNames/CMakeLists.txt<br>
  examples/PrintFunctionNames/PrintFunctionNames.cpp<br>
  include/clang/Frontend/CompilerInstance.h<br>
  lib/Frontend/ASTUnit.cpp<br>
  lib/Frontend/CompilerInstance.cpp<br>
  lib/FrontendTool/ExecuteCompilerInvocation.cpp<br>
  tools/libclang/libclang.exports<br>
</div><br></div>