diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-07-23 08:14:48 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-07-23 08:14:48 +0000 |
commit | 4ac537b0f07f2efb9fcf081f60d54e6cfb1cf2d5 (patch) | |
tree | 46f5c8655939b0c184a2a907b2e4d391dfae3bc6 /include/clang/Lex/Lexer.h | |
parent | fee16225a103ee1459af4f3ecb89fa2804e81ac3 (diff) |
C++1y literal suffix support:
* Allow ns, us, ms, s, min, h as numeric ud-suffixes
* Allow s as string ud-suffix
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Lexer.h')
-rw-r--r-- | include/clang/Lex/Lexer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h index 9534c88355..72c361dba8 100644 --- a/include/clang/Lex/Lexer.h +++ b/include/clang/Lex/Lexer.h @@ -569,8 +569,9 @@ private: void SkipBytes(unsigned Bytes, bool StartOfLine); - const char *LexUDSuffix(Token &Result, const char *CurPtr); - + const char *LexUDSuffix(Token &Result, const char *CurPtr, + bool IsStringLiteral); + // Helper functions to lex the remainder of a token of the specific type. void LexIdentifier (Token &Result, const char *CurPtr); void LexNumericConstant (Token &Result, const char *CurPtr); |