[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)
llvm-svn: 344335

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

index 7f4b145..6bf1cf3 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 7ae6774..9ddb18a 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"));