aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/PreprocessorOptions.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-19 21:46:24 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-19 21:46:24 +0000
commitabc563f554951259bbe0315055cad92ee14d87e4 (patch)
tree6cbc8328342f3a64717e7652f10cd00def0c4fb1 /include/clang/Frontend/PreprocessorOptions.h
parenta7765a6857a138d1402834ea01e13e397bc3610f (diff)
Introduce a new libclang API, clang_reparseTranslationUnit(), which
reparses an already-parsed translation unit. At the moment it's just a convenience function, but we hope to use it for performance optimizations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/PreprocessorOptions.h')
-rw-r--r--include/clang/Frontend/PreprocessorOptions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Frontend/PreprocessorOptions.h b/include/clang/Frontend/PreprocessorOptions.h
index 891359b747..e2c1ca25a2 100644
--- a/include/clang/Frontend/PreprocessorOptions.h
+++ b/include/clang/Frontend/PreprocessorOptions.h
@@ -95,6 +95,10 @@ public:
void addRemappedFile(llvm::StringRef From, const llvm::MemoryBuffer * To) {
RemappedFileBuffers.push_back(std::make_pair(From, To));
}
+ void clearRemappedFiles() {
+ RemappedFiles.clear();
+ RemappedFileBuffers.clear();
+ }
};
} // end namespace clang