diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-14 02:48:04 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-14 02:48:04 +0000 |
commit | 7d90199f109290e9d587479a481a2850d390b552 (patch) | |
tree | 4a2e370ce420b9c351756eef4cfdad755154ec8e /include/clang/Basic | |
parent | 12ce6943aae499225708ecf364c5a8b0a3269c87 (diff) |
Pass Preprocessor through DiagnosticClient::BeginSourceFile.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88744 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/Diagnostic.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index ba086ebf7a..3a70e134b8 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -32,6 +32,7 @@ namespace clang { class IdentifierInfo; class LangOptions; class PartialDiagnostic; + class Preprocessor; class SourceRange; // Import the diagnostic enums themselves. @@ -791,7 +792,8 @@ public: /// \arg LO - The language options for the source file being processed. /// \arg PP - The preprocessor object being used for the source; this optional /// and may not be present, for example when processing AST source files. - virtual void BeginSourceFile(const LangOptions &LangOpts) {} + virtual void BeginSourceFile(const LangOptions &LangOpts, + const Preprocessor *PP = 0) {} /// EndSourceFile - Callback to inform the diagnostic client that processing /// of a source file has ended. The diagnostic client should assume that any |