aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/LiteralSupport.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-28 18:52:02 +0000
committerChris Lattner <sabre@nondot.org>2009-04-28 18:52:02 +0000
commitb77f41e66f736e9e67a9d39c47c747804b22c6b9 (patch)
tree24655970d6125bdbd101bd947c669b60be114939 /lib/Lex/LiteralSupport.cpp
parent660a5ac8ec8afb1b609fdfb91df82dca9ed1e187 (diff)
implement -Wmultichar
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/LiteralSupport.cpp')
-rw-r--r--lib/Lex/LiteralSupport.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp
index 03ecff91a5..faa44b6fb0 100644
--- a/lib/Lex/LiteralSupport.cpp
+++ b/lib/Lex/LiteralSupport.cpp
@@ -662,6 +662,8 @@ CharLiteralParser::CharLiteralParser(const char *begin, const char *end,
// constants (L'abcd').
if (IsWide)
PP.Diag(Loc, diag::warn_extraneous_wide_char_constant);
+ else
+ PP.Diag(Loc, diag::ext_multichar_character_literal);
}
if (IsWide) {
@@ -671,7 +673,6 @@ CharLiteralParser::CharLiteralParser(const char *begin, const char *end,
// Narrow character literals act as though their value is concatenated
// in this implementation.
if ((LitVal.shl(8)).lshr(8) != LitVal)
- // if (((LitVal << 8) >> 8) != LitVal)
PP.Diag(Loc, diag::warn_char_constant_too_large);
LitVal <<= 8;
}