aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/FrontendOptions.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-23 22:38:11 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-23 22:38:11 +0000
commita6b00fc97669aa25d89ae9f202b05dfadfd0e324 (patch)
treea6fae4a9348c9d4f18d0bafbbf41953becb6fecf /include/clang/Frontend/FrontendOptions.h
parent38878aa394dc6e08146288e86939956bc742fb0b (diff)
Implement the writer side of the global module index.
The global module index is a "global" index for all of the module files within a particular subdirectory in the module cache, which keeps track of all of the "interesting" identifiers and selectors known in each of the module files. One can perform a fast lookup in the index to determine which module files will have more information about entities with a particular name/selector. This information can help eliminate redundant lookups into module files (a serious performance problem) and help with creating auto-import/auto-include Fix-Its. The global module index is created or updated at the end of a translation unit that has triggered a (re)build of a module by scraping all of the .pcm files out of the module cache subdirectory, so it catches everything. As with module rebuilds, we use the file system's atomicity to synchronize. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/FrontendOptions.h')
-rw-r--r--include/clang/Frontend/FrontendOptions.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/clang/Frontend/FrontendOptions.h b/include/clang/Frontend/FrontendOptions.h
index 00f1dc46d6..bb6da349ba 100644
--- a/include/clang/Frontend/FrontendOptions.h
+++ b/include/clang/Frontend/FrontendOptions.h
@@ -137,7 +137,9 @@ public:
/// speed up parsing in cases you do
/// not need them (e.g. with code
/// completion).
-
+ unsigned GenerateModuleIndex : 1; ///< Whether to auto-generate a
+ ///< global module index when a new
+ ///< module has been built.
CodeCompleteOptions CodeCompleteOpts;
enum {
@@ -209,8 +211,9 @@ public:
ShowStats(false), ShowTimers(false), ShowVersion(false),
FixWhatYouCan(false), FixOnlyWarnings(false), FixAndRecompile(false),
FixToTemporaries(false), ARCMTMigrateEmitARCErrors(false),
- SkipFunctionBodies(false), ARCMTAction(ARCMT_None),
- ObjCMTAction(ObjCMT_None), ProgramAction(frontend::ParseSyntaxOnly)
+ SkipFunctionBodies(false), GenerateModuleIndex(false),
+ ARCMTAction(ARCMT_None), ObjCMTAction(ObjCMT_None),
+ ProgramAction(frontend::ParseSyntaxOnly)
{}
/// getInputKindForExtension - Return the appropriate input kind for a file