AntonBikineev created this revision.
AntonBikineev added reviewers: mclow.lists, rsmith, cfe-commits.

https://reviews.llvm.org/D26829

Files:
  lib/Lex/Lexer.cpp


Index: lib/Lex/Lexer.cpp
===================================================================
--- lib/Lex/Lexer.cpp
+++ lib/Lex/Lexer.cpp
@@ -1713,6 +1713,11 @@
                                          getLangOpts());
         if (!isIdentifierBody(Next)) {
           // End of suffix. Check whether this is on the whitelist.
+          if (getLangOpts().CPlusPlus1z && Chars == 2 && 
+              Buffer[0] == 's' && Buffer[1] == 'v') {
+            IsUDSuffix = true;
+            break;
+          }
           IsUDSuffix = (Chars == 1 && Buffer[0] == 's') ||
                        NumericLiteralParser::isValidUDSuffix(
                            getLangOpts(), StringRef(Buffer, Chars));


Index: lib/Lex/Lexer.cpp
===================================================================
--- lib/Lex/Lexer.cpp
+++ lib/Lex/Lexer.cpp
@@ -1713,6 +1713,11 @@
                                          getLangOpts());
         if (!isIdentifierBody(Next)) {
           // End of suffix. Check whether this is on the whitelist.
+          if (getLangOpts().CPlusPlus1z && Chars == 2 && 
+              Buffer[0] == 's' && Buffer[1] == 'v') {
+            IsUDSuffix = true;
+            break;
+          }
           IsUDSuffix = (Chars == 1 && Buffer[0] == 's') ||
                        NumericLiteralParser::isValidUDSuffix(
                            getLangOpts(), StringRef(Buffer, Chars));
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to