Home | History | Annotate | Download | only in Lex

Lines Matching refs:Tok

26 static unsigned getCharWidth(tok::TokenKind kind, const TargetInfo &Target) {
29 case tok::char_constant:
30 case tok::string_literal:
31 case tok::utf8_char_constant:
32 case tok::utf8_string_literal:
34 case tok::wide_char_constant:
35 case tok::wide_string_literal:
37 case tok::utf16_char_constant:
38 case tok::utf16_string_literal:
40 case tok::utf32_char_constant:
41 case tok::utf32_string_literal:
665 // FIXME: Don't bother expanding UCNs if !tok.hasUCN().
1016 tok::TokenKind kind) {
1025 if (Kind != tok::char_constant)
1027 if (Kind == tok::utf8_char_constant)
1040 // FIXME: Don't bother with this if !tok.hasUCN().
1069 if (tok::wide_char_constant == Kind) {
1072 } else if (tok::utf8_char_constant == Kind) {
1074 } else if (tok::utf16_char_constant == Kind) {
1076 } else if (tok::utf32_char_constant == Kind) {
1256 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown),
1296 if (StringToks[i].isNot(Kind) && StringToks[i].isNot(tok::string_literal)) {
1555 /// within Tok's contents (which begin at TokBegin) into ResultPtr.
1557 bool StringLiteralParser::CopyStringFragment(const Token &Tok,
1576 FullSourceLoc SourceLoc(Tok.getLocation(), SM);
1611 unsigned StringLiteralParser::getOffsetOfStringByte(const Token &Tok,
1615 SpellingBuffer.resize(Tok.getLength());
1619 unsigned TokLen = Lexer::getSpelling(Tok, SpellingPtr, SM, Features,
1677 FullSourceLoc(Tok.getLocation(), SM),