diff options
author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-12-22 08:23:18 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2010-12-22 08:23:18 +0000 |
commit | c4bf2b9afb7d47445a9dc6bc848657098a4e3851 (patch) | |
tree | 3979630b01d84bf594a3ebf34ad12b2c1e2ea86b /lib/Lex/TokenConcatenation.cpp | |
parent | eee1df1e7ac74bbccd5282f0348381af70cf5e5e (diff) |
Introduced raw_identifier token kind.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/TokenConcatenation.cpp')
-rw-r--r-- | lib/Lex/TokenConcatenation.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/Lex/TokenConcatenation.cpp b/lib/Lex/TokenConcatenation.cpp index fc6db2151a..3e9e855031 100644 --- a/lib/Lex/TokenConcatenation.cpp +++ b/lib/Lex/TokenConcatenation.cpp @@ -13,6 +13,7 @@ #include "clang/Lex/TokenConcatenation.h" #include "clang/Lex/Preprocessor.h" +#include "llvm/Support/ErrorHandling.h" using namespace clang; @@ -165,7 +166,14 @@ bool TokenConcatenation::AvoidConcat(const Token &PrevPrevTok, } switch (PrevKind) { - default: assert(0 && "InitAvoidConcatTokenInfo built wrong"); + default: + llvm_unreachable("InitAvoidConcatTokenInfo built wrong"); + return true; + + case tok::raw_identifier: + llvm_unreachable("tok::raw_identifier in non-raw lexing mode!"); + return true; + case tok::identifier: // id+id or id+number or id+L"foo". // id+'.'... will not append. if (Tok.is(tok::numeric_constant)) |