Fwd: [PATCH] libclang plugin patch

Stefan Kemnitz kemnitz.stefan at gmail.com
Mon Oct 6 00:25:19 PDT 2014


The goal is to enable tools that use libclang to display additional errors
and warnings.
Normally libclang does not load any plugins when its parsing code through
clang_parseTranslationUnit.
This patch moves the plugin loading code from ExecuteCompilerInvocation to
the class CompilerInstance and adds the method calls to ASTUnit::Parse and
ExecuteCompilerInvocation.
I additionally added the symbols that are needed for the plugin to link
against libclang to tools/libclang/libclang.exports.

http://reviews.llvm.org/D5611

Files:
  examples/PrintFunctionNames/CMakeLists.txt
  examples/PrintFunctionNames/PrintFunctionNames.cpp
  include/clang/Frontend/CompilerInstance.h
  lib/Frontend/ASTUnit.cpp
  lib/Frontend/CompilerInstance.cpp
  lib/FrontendTool/ExecuteCompilerInvocation.cpp
  tools/libclang/libclang.exports
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141006/3e8e41df/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5611.14413.patch
Type: text/x-patch
Size: 5580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141006/3e8e41df/attachment.bin>


More information about the cfe-commits mailing list