diff options
author | Chris Lattner <sabre@nondot.org> | 2008-11-22 00:59:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-11-22 00:59:29 +0000 |
commit | 3cbfe2c4159e0a219ae660d50625c013aa4afbd0 (patch) | |
tree | fb00316d7bab059a54087dd5687570f76b63785b /include/clang/Lex | |
parent | 3296ccea50e7b6649638bd666181e0825145e898 (diff) |
Split the DiagnosticInfo class into two disjoint classes:
one for building up the diagnostic that is in flight (DiagnosticBuilder)
and one for pulling structured information out of the diagnostic when
formatting and presenting it.
There is no functionality change with this patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex')
-rw-r--r-- | include/clang/Lex/Lexer.h | 4 | ||||
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h index 019153695a..77399e6d56 100644 --- a/include/clang/Lex/Lexer.h +++ b/include/clang/Lex/Lexer.h @@ -25,7 +25,7 @@ namespace clang { class Diagnostic; class SourceManager; class Preprocessor; -class DiagnosticInfo; +class DiagnosticBuilder; /// Lexer - This provides a simple interface that turns a text buffer into a /// stream of tokens. This provides no support for file reading or buffering, @@ -172,7 +172,7 @@ public: /// Diag - Forwarding function for diagnostics. This translate a source /// position in the current buffer into a SourceLocation object for rendering. - DiagnosticInfo Diag(const char *Loc, unsigned DiagID) const; + DiagnosticBuilder Diag(const char *Loc, unsigned DiagID) const; /// getSourceLocation - Return a source location identifier for the specified /// offset in the current file. diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index fb2cb1d33b..829a7ada81 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -408,8 +408,8 @@ public: /// Diag - Forwarding function for diagnostics. This emits a diagnostic at /// the specified Token's location, translating the token's start /// position in the current buffer into a SourcePosition object for rendering. - DiagnosticInfo Diag(SourceLocation Loc, unsigned DiagID); - DiagnosticInfo Diag(const Token &Tok, unsigned DiagID); + DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID); + DiagnosticBuilder Diag(const Token &Tok, unsigned DiagID); /// getSpelling() - Return the 'spelling' of the Tok token. The spelling of a /// token is the characters used to represent the token in the source file |