#include "clang/Tooling/StandaloneExecution.h"
#include "clang/Tooling/ToolExecutorPluginRegistry.h"
namespace clang {
namespace tooling {
static llvm::Error make_string_error(const llvm::Twine &Message) { … }
const char *StandaloneToolExecutor::ExecutorName = …;
static ArgumentsAdjuster getDefaultArgumentsAdjusters() { … }
StandaloneToolExecutor::StandaloneToolExecutor(
const CompilationDatabase &Compilations,
llvm::ArrayRef<std::string> SourcePaths,
IntrusiveRefCntPtr<llvm::vfs::FileSystem> BaseFS,
std::shared_ptr<PCHContainerOperations> PCHContainerOps)
: … { … }
StandaloneToolExecutor::StandaloneToolExecutor(
CommonOptionsParser Options,
std::shared_ptr<PCHContainerOperations> PCHContainerOps)
: … { … }
llvm::Error StandaloneToolExecutor::execute(
llvm::ArrayRef<
std::pair<std::unique_ptr<FrontendActionFactory>, ArgumentsAdjuster>>
Actions) { … }
class StandaloneToolExecutorPlugin : public ToolExecutorPlugin { … };
static ToolExecutorPluginRegistry::Add<StandaloneToolExecutorPlugin>
X("standalone", "Runs FrontendActions on a set of files provided "
"via positional arguments.");
volatile int StandaloneToolExecutorAnchorSource = …;
}
}