diff options
Diffstat (limited to 'contrib/llvm/tools/clang/include/clang/Frontend/FrontendOptions.h')
-rw-r--r-- | contrib/llvm/tools/clang/include/clang/Frontend/FrontendOptions.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/contrib/llvm/tools/clang/include/clang/Frontend/FrontendOptions.h b/contrib/llvm/tools/clang/include/clang/Frontend/FrontendOptions.h index c800a51..a75523f 100644 --- a/contrib/llvm/tools/clang/include/clang/Frontend/FrontendOptions.h +++ b/contrib/llvm/tools/clang/include/clang/Frontend/FrontendOptions.h @@ -16,6 +16,7 @@ #include "llvm/ADT/StringRef.h" #include <string> #include <vector> +#include <unordered_map> namespace llvm { class MemoryBuffer; @@ -73,6 +74,7 @@ enum InputKind { IK_OpenCL, IK_CUDA, IK_PreprocessedCuda, + IK_RenderScript, IK_AST, IK_LLVM_IR }; @@ -152,6 +154,8 @@ public: ///< implicit module build. unsigned ModulesEmbedAllFiles : 1; ///< Whether we should embed all used ///< files into the PCM file. + unsigned IncludeTimestamps : 1; ///< Whether timestamps should be + ///< written to the produced PCH file. CodeCompleteOptions CodeCompleteOpts; @@ -227,15 +231,12 @@ public: /// The name of the action to run when using a plugin action. std::string ActionName; - /// Args to pass to the plugin - std::vector<std::string> PluginArgs; + /// Args to pass to the plugins + std::unordered_map<std::string,std::vector<std::string>> PluginArgs; /// The list of plugin actions to run in addition to the normal action. std::vector<std::string> AddPluginActions; - /// Args to pass to the additional plugins - std::vector<std::vector<std::string> > AddPluginArgs; - /// The list of plugins to load. std::vector<std::string> Plugins; @@ -266,6 +267,10 @@ public: /// \brief Auxiliary triple for CUDA compilation. std::string AuxTriple; + /// \brief If non-empty, search the pch input file as it was a header + // included by this file. + std::string FindPchSource; + public: FrontendOptions() : DisableFree(false), RelocatablePCH(false), ShowHelp(false), @@ -275,8 +280,8 @@ public: SkipFunctionBodies(false), UseGlobalModuleIndex(true), GenerateGlobalModuleIndex(true), ASTDumpDecls(false), ASTDumpLookups(false), BuildingImplicitModule(false), ModulesEmbedAllFiles(false), - ARCMTAction(ARCMT_None), ObjCMTAction(ObjCMT_None), - ProgramAction(frontend::ParseSyntaxOnly) + IncludeTimestamps(true), ARCMTAction(ARCMT_None), + ObjCMTAction(ObjCMT_None), ProgramAction(frontend::ParseSyntaxOnly) {} /// getInputKindForExtension - Return the appropriate input kind for a file |