aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-18 07:59:24 +0000
committerChris Lattner <sabre@nondot.org>2008-11-18 07:59:24 +0000
commit3692b09faa9fe346f39bc922db6dce48cdcc3f63 (patch)
tree345b316a71a538b837efa50e3cdda96182386e0d /include/clang/Lex/Preprocessor.h
parentef708fd4abccf4d21b1f82ab2ab62f6ae7cc1265 (diff)
Convert the lexer and start converting the PP over to using canonical Diag methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59511 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 165000484f..76073fe99a 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -397,16 +397,14 @@ 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.
- void Diag(SourceLocation Loc, unsigned DiagID);
+ DiagnosticInfo Diag(SourceLocation Loc, unsigned DiagID);
+ DiagnosticInfo Diag(const Token &Tok, unsigned DiagID);
void Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg);
void Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg,
const SourceRange &R1, const SourceRange &R2);
void Diag(SourceLocation Loc, unsigned DiagID, const SourceRange &R);
void Diag(SourceLocation Loc, unsigned DiagID, const SourceRange &R1,
const SourceRange &R2);
- void Diag(const Token &Tok, unsigned DiagID) {
- Diag(Tok.getLocation(), DiagID);
- }
void Diag(const Token &Tok, unsigned DiagID, const std::string &Msg) {
Diag(Tok.getLocation(), DiagID, Msg);
}