diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-11-26 20:39:45 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-11-26 20:39:45 +0000 |
commit | 3bf4a79712fb30dc27692ef2d4214ee7fa6681be (patch) | |
tree | 3ad0c58e9e8f72a916f40abb5e5a32d9728dca4a | |
parent | b16308f1b37237244022d06a467db14efb01b7c3 (diff) |
Add an overload for operator<<(const DiagnosticBuilder &DB,bool I).
Fixes building error on MSVC where passing bool couldn't resolve to one of the overloads.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60116 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/Diagnostic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index 430e0c4266..1588394190 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -357,6 +357,11 @@ inline const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB, int I) { return DB; } +inline const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB,bool I) { + DB.AddTaggedVal(I, Diagnostic::ak_sint); + return DB; +} + inline const DiagnosticBuilder &operator<<(const DiagnosticBuilder &DB, unsigned I) { DB.AddTaggedVal(I, Diagnostic::ak_uint); |