diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-13 21:44:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-13 21:44:46 +0000 |
commit | 7c175fb196a2bc3dbc86ea3865c713e1875f3f6d (patch) | |
tree | f58c382a186b1f15c04de3ebf795b75add65e5fd /include/clang/Lex/Preprocessor.h | |
parent | 836040f9eafe862fb1607df5c30cd3df0c22c832 (diff) |
fix PR3798 by ignoring all diagnostics generated while repreprocessing a file in rewrite macros.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 28aad1a7bb..17e2c2f8a0 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -197,6 +197,9 @@ public: ~Preprocessor(); Diagnostic &getDiagnostics() const { return *Diags; } + void setDiagnostics(Diagnostic &D) { Diags = &D; } + + const LangOptions &getLangOptions() const { return Features; } TargetInfo &getTargetInfo() const { return Target; } FileManager &getFileManager() const { return FileMgr; } |