diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-03 23:38:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-03 23:38:43 +0000 |
commit | 816dea2fc5e402dacb86a2e2879d2ac8ac4acffd (patch) | |
tree | e0bc72e9e7b7ba5a8b7f38b429961feecfd2878d /clang/Sema/Sema.cpp | |
parent | 166ae81be196945936a000fef03426caaa3cea83 (diff) | |
download | bcm5719-llvm-816dea2fc5e402dacb86a2e2879d2ac8ac4acffd.tar.gz bcm5719-llvm-816dea2fc5e402dacb86a2e2879d2ac8ac4acffd.zip |
generalize some of the conversion warnings.
llvm-svn: 45560
Diffstat (limited to 'clang/Sema/Sema.cpp')
-rw-r--r-- | clang/Sema/Sema.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/Sema/Sema.cpp b/clang/Sema/Sema.cpp index 7bdcd0a214c..bca3ec508bf 100644 --- a/clang/Sema/Sema.cpp +++ b/clang/Sema/Sema.cpp @@ -152,6 +152,14 @@ bool Sema::Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg1, return true; } +bool Sema::Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg1, + const std::string &Msg2, const std::string &Msg3, + SourceRange R1) { + std::string MsgArr[] = { Msg1, Msg2, Msg3 }; + PP.getDiagnostics().Report(PP.getFullLoc(Loc), DiagID, MsgArr, 3, &R1, 1); + return true; +} + bool Sema::Diag(SourceLocation Loc, unsigned DiagID, SourceRange R1, SourceRange R2) { SourceRange RangeArr[] = { R1, R2 }; |