]> granicus.if.org Git - clang/commitdiff
[Tooling] Expose ExecutorName option.
authorEric Liu <ioeric@google.com>
Fri, 12 Oct 2018 11:47:36 +0000 (11:47 +0000)
committerEric Liu <ioeric@google.com>
Fri, 12 Oct 2018 11:47:36 +0000 (11:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344335 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Tooling/Execution.h
lib/Tooling/Execution.cpp

index 7f4b145773e17378aa47271c0b28debf0ec629b0..6bf1cf391b7529403872d14a517fda1ffc5fab2f 100644 (file)
@@ -37,6 +37,8 @@
 namespace clang {
 namespace tooling {
 
+extern llvm::cl::opt<std::string> ExecutorName;
+
 /// An abstraction for the result of a tool execution. For example, the
 /// underlying result can be in-memory or on-disk.
 ///
index 7ae67747acb2c4351850136703adb3c534ea23bb..9ddb18a57b46cb68409862cd6d9cae575f943e81 100644 (file)
@@ -16,7 +16,7 @@ LLVM_INSTANTIATE_REGISTRY(clang::tooling::ToolExecutorPluginRegistry)
 namespace clang {
 namespace tooling {
 
-static llvm::cl::opt<std::string>
+llvm::cl::opt<std::string>
     ExecutorName("executor", llvm::cl::desc("The name of the executor to use."),
                  llvm::cl::init("standalone"));