Lines Matching defs:Tok
186 Token &Tok = Result.back();
187 PP.Lex(Tok);
211 Token Tok;
212 Tok.startToken();
213 Tok.setKind(Charify ? tok::char_constant : tok::string_literal);
223 const Token &Tok = *ArgToks;
224 if (!isFirst && (Tok.hasLeadingSpace() || Tok.isAtStartOfLine()))
230 if (tok::isStringLiteral(Tok.getKind()) || // "foo", u8R"x(foo)x"_bar, etc.
231 Tok.is(tok::char_constant) || // 'x'
232 Tok.is(tok::wide_char_constant) || // L'x'.
233 Tok.is(tok::utf8_char_constant) || // u8'x'.
234 Tok.is(tok::utf16_char_constant) || // u'x'.
235 Tok.is(tok::utf32_char_constant)) { // U'x'.
237 std::string TokStr = PP.getSpelling(Tok, &Invalid);
242 } else if (Tok.is(tok::code_completion)) {
248 Result.resize(CurStrLen+Tok.getLength());
251 unsigned ActualTokLen = PP.getSpelling(Tok, BufPtr, &Invalid);
260 if (ActualTokLen != Tok.getLength())
303 PP.CreateString(Result, Tok,
305 return Tok;