diff options
author | Eric Liu <ioeric@google.com> | 2018-01-05 10:32:16 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2018-01-05 10:32:16 +0000 |
commit | e25f3676b0e11b99121d3e335d2dfe397195f9b4 (patch) | |
tree | ae901eecbd8bdd6a923d2f4a4a03251d732fbb70 /clang/lib/Tooling/Execution.cpp | |
parent | cbf651f7399feea9ea8495af571d67d924b8ec11 (diff) | |
download | bcm5719-llvm-e25f3676b0e11b99121d3e335d2dfe397195f9b4.tar.gz bcm5719-llvm-e25f3676b0e11b99121d3e335d2dfe397195f9b4.zip |
Add a tool executor that runs actions on all TUs in the compilation database.
Summary: Tool results are deduplicated by the result key.
Reviewers: hokein
Subscribers: klimek, mgorny, cfe-commits
Differential Revision: https://reviews.llvm.org/D41729
llvm-svn: 321864
Diffstat (limited to 'clang/lib/Tooling/Execution.cpp')
-rw-r--r-- | clang/lib/Tooling/Execution.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Tooling/Execution.cpp b/clang/lib/Tooling/Execution.cpp index 498d683f892..ff68f85adb2 100644 --- a/clang/lib/Tooling/Execution.cpp +++ b/clang/lib/Tooling/Execution.cpp @@ -96,10 +96,13 @@ createExecutorFromCommandLineArgs(int &argc, const char **argv, } // This anchor is used to force the linker to link in the generated object file -// and thus register the StandaloneToolExecutorPlugin. +// and thus register the StandaloneToolExecutorPlugin etc. extern volatile int StandaloneToolExecutorAnchorSource; +extern volatile int AllTUsToolExecutorAnchorSource; static int LLVM_ATTRIBUTE_UNUSED StandaloneToolExecutorAnchorDest = StandaloneToolExecutorAnchorSource; +static int LLVM_ATTRIBUTE_UNUSED AllTUsToolExecutorAnchorDest = + AllTUsToolExecutorAnchorSource; } // end namespace tooling } // end namespace clang |