r274871 - Explicitly export symbols from the sample analyzer plugin

John Brawn via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 8 09:20:58 PDT 2016


Author: john.brawn
Date: Fri Jul  8 11:20:57 2016
New Revision: 274871

URL: http://llvm.org/viewvc/llvm-project?rev=274871&view=rev
Log:
Explicitly export symbols from the sample analyzer plugin

This is done so that it will work when built using MSVC if
LLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON.

Differential Revision: http://reviews.llvm.org/D21971

Added:
    cfe/trunk/examples/analyzer-plugin/SampleAnalyzerPlugin.exports
Modified:
    cfe/trunk/examples/analyzer-plugin/CMakeLists.txt

Modified: cfe/trunk/examples/analyzer-plugin/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/analyzer-plugin/CMakeLists.txt?rev=274871&r1=274870&r2=274871&view=diff
==============================================================================
--- cfe/trunk/examples/analyzer-plugin/CMakeLists.txt (original)
+++ cfe/trunk/examples/analyzer-plugin/CMakeLists.txt Fri Jul  8 11:20:57 2016
@@ -1,4 +1,5 @@
-add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp)
+set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/SampleAnalyzerPlugin.exports)
+add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp PLUGIN_TOOL clang)
 
 if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
   target_link_libraries(SampleAnalyzerPlugin PRIVATE

Added: cfe/trunk/examples/analyzer-plugin/SampleAnalyzerPlugin.exports
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/analyzer-plugin/SampleAnalyzerPlugin.exports?rev=274871&view=auto
==============================================================================
--- cfe/trunk/examples/analyzer-plugin/SampleAnalyzerPlugin.exports (added)
+++ cfe/trunk/examples/analyzer-plugin/SampleAnalyzerPlugin.exports Fri Jul  8 11:20:57 2016
@@ -0,0 +1,2 @@
+clang_registerCheckers
+clang_analyzerAPIVersionString




More information about the cfe-commits mailing list