From f5617dce1ffb17a295790229e07be1172f0dcd7b Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Fri, 12 Oct 2018 11:47:36 +0000 Subject: [PATCH] [Tooling] Expose ExecutorName option. llvm-svn: 344335 --- clang/include/clang/Tooling/Execution.h | 2 ++ clang/lib/Tooling/Execution.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/include/clang/Tooling/Execution.h b/clang/include/clang/Tooling/Execution.h index 7f4b145..6bf1cf3 100644 --- a/clang/include/clang/Tooling/Execution.h +++ b/clang/include/clang/Tooling/Execution.h @@ -37,6 +37,8 @@ namespace clang { namespace tooling { +extern llvm::cl::opt ExecutorName; + /// An abstraction for the result of a tool execution. For example, the /// underlying result can be in-memory or on-disk. /// diff --git a/clang/lib/Tooling/Execution.cpp b/clang/lib/Tooling/Execution.cpp index 7ae6774..9ddb18a 100644 --- a/clang/lib/Tooling/Execution.cpp +++ b/clang/lib/Tooling/Execution.cpp @@ -16,7 +16,7 @@ LLVM_INSTANTIATE_REGISTRY(clang::tooling::ToolExecutorPluginRegistry) namespace clang { namespace tooling { -static llvm::cl::opt +llvm::cl::opt ExecutorName("executor", llvm::cl::desc("The name of the executor to use."), llvm::cl::init("standalone")); -- 2.7.4