diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-06-10 01:32:39 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-06-10 01:32:39 +0000 |
commit | 3c54801fbc67d8df2fed0711a2e2022db6b1bbcf (patch) | |
tree | c771ce0ca09767d0c359ff8d37aa5231d1939e8d /lib/Lex/LiteralSupport.cpp | |
parent | 949bf69136e07fb7968d84bc21d9272ff343ffdb (diff) |
PR4353: Add support for \E as a character escape.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/LiteralSupport.cpp')
-rw-r--r-- | lib/Lex/LiteralSupport.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Lex/LiteralSupport.cpp b/lib/Lex/LiteralSupport.cpp index 4d10974df2..37ea52b46f 100644 --- a/lib/Lex/LiteralSupport.cpp +++ b/lib/Lex/LiteralSupport.cpp @@ -56,6 +56,10 @@ static unsigned ProcessCharEscape(const char *&ThisTokBuf, PP.Diag(Loc, diag::ext_nonstandard_escape) << "e"; ResultChar = 27; break; + case 'E': + PP.Diag(Loc, diag::ext_nonstandard_escape) << "E"; + ResultChar = 27; + break; case 'f': ResultChar = 12; break; @@ -135,7 +139,6 @@ static unsigned ProcessCharEscape(const char *&ThisTokBuf, PP.Diag(Loc, diag::ext_nonstandard_escape) << std::string()+(char)ResultChar; break; - // FALL THROUGH. default: if (isgraph(ThisTokBuf[0])) PP.Diag(Loc, diag::ext_unknown_escape) << std::string()+(char)ResultChar; |