ΒΆllvm::Expected<std::unique_ptr<ToolExecutor>>
createExecutorFromCommandLineArgs(
int& argc,
const char** argv,
llvm::cl::OptionCategory& Category,
const char* Overview = nullptr)
llvm::Expected<std::unique_ptr<ToolExecutor>>
createExecutorFromCommandLineArgs(
int& argc,
const char** argv,
llvm::cl::OptionCategory& Category,
const char* Overview = nullptr)
Description
This creates a ToolExecutor that is in the global registry based on commandline arguments. This picks the right executor based on the `--executor` option. This parses the commandline arguments with `CommonOptionsParser`, so caller does not need to parse again. By default, this creates a `StandaloneToolExecutor` ("standalone") if `--executor` is not provided.
Declared at: clang/include/clang/Tooling/Execution.h:172
Parameters
- int& argc
- const char** argv
- llvm::cl::OptionCategory& Category
- const char* Overview = nullptr