summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPExpressions.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-11-08 06:08:42 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-11-08 06:08:42 +0000
commit3e3a705062fe343dc397c0bf623aa383f14ce07c (patch)
treec22a037420f5961f40672567865afc4591809a78 /clang/lib/Lex/PPExpressions.cpp
parentcf29675d9501cfff2a37acb8af3eefa6cbba19c1 (diff)
downloadbcm5719-llvm-3e3a705062fe343dc397c0bf623aa383f14ce07c.tar.gz
bcm5719-llvm-3e3a705062fe343dc397c0bf623aa383f14ce07c.zip
[c++1z] Support for u8 character literals.
llvm-svn: 221576
Diffstat (limited to 'clang/lib/Lex/PPExpressions.cpp')
-rw-r--r--clang/lib/Lex/PPExpressions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPExpressions.cpp b/clang/lib/Lex/PPExpressions.cpp
index a3f5d938ce0..9cf72cf8f8f 100644
--- a/clang/lib/Lex/PPExpressions.cpp
+++ b/clang/lib/Lex/PPExpressions.cpp
@@ -273,6 +273,7 @@ static bool EvaluateValue(PPValue &Result, Token &PeekTok, DefinedTracker &DT,
}
case tok::char_constant: // 'x'
case tok::wide_char_constant: // L'x'
+ case tok::utf8_char_constant: // u8'x'
case tok::utf16_char_constant: // u'x'
case tok::utf32_char_constant: { // U'x'
// Complain about, and drop, any ud-suffix.
OpenPOWER on IntegriCloud