diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:01 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:06:01 +0000 |
commit | 486754660bb926339aefcf012a3f848592babb8b (patch) | |
tree | ecdbc446c9876f4f120f701c243373cd3cb43db3 /include/clang/FrontendTool/Utils.h | |
parent | 55e6d896ad333f07bb3b1ba487df214fc268a4ab (diff) |
Notes
Diffstat (limited to 'include/clang/FrontendTool/Utils.h')
-rw-r--r-- | include/clang/FrontendTool/Utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/clang/FrontendTool/Utils.h b/include/clang/FrontendTool/Utils.h index 031ee7df70aed..2e6b7b5076bb6 100644 --- a/include/clang/FrontendTool/Utils.h +++ b/include/clang/FrontendTool/Utils.h @@ -15,9 +15,18 @@ #ifndef LLVM_CLANG_FRONTENDTOOL_UTILS_H #define LLVM_CLANG_FRONTENDTOOL_UTILS_H +#include <memory> + namespace clang { class CompilerInstance; +class FrontendAction; + +/// Construct the FrontendAction of a compiler invocation based on the +/// options specified for the compiler invocation. +/// +/// \return - The created FrontendAction object +std::unique_ptr<FrontendAction> CreateFrontendAction(CompilerInstance &CI); /// ExecuteCompilerInvocation - Execute the given actions described by the /// compiler invocation object in the given compiler instance. |