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 | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/contrib/llvm/tools/clang/include/clang/Frontend/FrontendOptions.h b/contrib/llvm/tools/clang/include/clang/Frontend/FrontendOptions.h index db2f5a5..234e344 100644 --- a/contrib/llvm/tools/clang/include/clang/Frontend/FrontendOptions.h +++ b/contrib/llvm/tools/clang/include/clang/Frontend/FrontendOptions.h @@ -43,6 +43,7 @@ namespace frontend { GeneratePCH, ///< Generate pre-compiled header. GeneratePTH, ///< Generate pre-tokenized header. InitOnly, ///< Only execute frontend initialization. + ModuleFileInfo, ///< Dump information about a module file. ParseSyntaxOnly, ///< Parse and perform semantic analysis. PluginAction, ///< Run a plugin action, \see ActionName. PrintDeclContext, ///< Print DeclContext and their Decls. @@ -137,6 +138,10 @@ public: /// speed up parsing in cases you do /// not need them (e.g. with code /// completion). + unsigned UseGlobalModuleIndex : 1; ///< Whether we can use the + ///< global module index if available. + unsigned GenerateGlobalModuleIndex : 1; ///< Whether we can generate the + ///< global module index if needed. CodeCompleteOptions CodeCompleteOpts; @@ -204,20 +209,16 @@ public: std::string OverrideRecordLayoutsFile; public: - FrontendOptions() { - DisableFree = 0; - ProgramAction = frontend::ParseSyntaxOnly; - ActionName = ""; - RelocatablePCH = 0; - ShowHelp = 0; - ShowStats = 0; - ShowTimers = 0; - ShowVersion = 0; - ARCMTAction = ARCMT_None; - ARCMTMigrateEmitARCErrors = 0; - SkipFunctionBodies = 0; - ObjCMTAction = ObjCMT_None; - } + FrontendOptions() : + DisableFree(false), RelocatablePCH(false), ShowHelp(false), + ShowStats(false), ShowTimers(false), ShowVersion(false), + FixWhatYouCan(false), FixOnlyWarnings(false), FixAndRecompile(false), + FixToTemporaries(false), ARCMTMigrateEmitARCErrors(false), + SkipFunctionBodies(false), UseGlobalModuleIndex(true), + GenerateGlobalModuleIndex(true), + ARCMTAction(ARCMT_None), ObjCMTAction(ObjCMT_None), + ProgramAction(frontend::ParseSyntaxOnly) + {} /// getInputKindForExtension - Return the appropriate input kind for a file /// extension. For example, "c" would return IK_C. |