From: Eric Liu Date: Fri, 12 Oct 2018 11:47:36 +0000 (+0000) Subject: [Tooling] Expose ExecutorName option. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=831deb4752ea54add884a505f2a09024f23d8478;p=clang [Tooling] Expose ExecutorName option. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344335 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Tooling/Execution.h b/include/clang/Tooling/Execution.h index 7f4b145773..6bf1cf391b 100644 --- a/include/clang/Tooling/Execution.h +++ b/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/lib/Tooling/Execution.cpp b/lib/Tooling/Execution.cpp index 7ae67747ac..9ddb18a57b 100644 --- a/lib/Tooling/Execution.cpp +++ b/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"));