Lines Matching refs:StrTok
1022 Token StrTok; in HandleLineDirective() local
1023 Lex(StrTok); in HandleLineDirective()
1027 if (StrTok.is(tok::eod)) in HandleLineDirective()
1029 else if (StrTok.isNot(tok::string_literal)) { in HandleLineDirective()
1030 Diag(StrTok, diag::err_pp_line_invalid_filename); in HandleLineDirective()
1032 } else if (StrTok.hasUDSuffix()) { in HandleLineDirective()
1033 Diag(StrTok, diag::err_invalid_string_udl); in HandleLineDirective()
1037 StringLiteralParser Literal(StrTok, *this); in HandleLineDirective()
1042 Diag(StrTok, diag::err_pp_linemarker_invalid_filename); in HandleLineDirective()
1154 Token StrTok; in HandleDigitDirective() local
1155 Lex(StrTok); in HandleDigitDirective()
1163 if (StrTok.is(tok::eod)) in HandleDigitDirective()
1165 else if (StrTok.isNot(tok::string_literal)) { in HandleDigitDirective()
1166 Diag(StrTok, diag::err_pp_linemarker_invalid_filename); in HandleDigitDirective()
1168 } else if (StrTok.hasUDSuffix()) { in HandleDigitDirective()
1169 Diag(StrTok, diag::err_invalid_string_udl); in HandleDigitDirective()
1173 StringLiteralParser Literal(StrTok, *this); in HandleDigitDirective()
1178 Diag(StrTok, diag::err_pp_linemarker_invalid_filename); in HandleDigitDirective()
1247 Token StrTok; in HandleIdentSCCSDirective() local
1248 Lex(StrTok); in HandleIdentSCCSDirective()
1251 if (StrTok.isNot(tok::string_literal) && in HandleIdentSCCSDirective()
1252 StrTok.isNot(tok::wide_string_literal)) { in HandleIdentSCCSDirective()
1253 Diag(StrTok, diag::err_pp_malformed_ident); in HandleIdentSCCSDirective()
1254 if (StrTok.isNot(tok::eod)) in HandleIdentSCCSDirective()
1259 if (StrTok.hasUDSuffix()) { in HandleIdentSCCSDirective()
1260 Diag(StrTok, diag::err_invalid_string_udl); in HandleIdentSCCSDirective()
1269 std::string Str = getSpelling(StrTok, &Invalid); in HandleIdentSCCSDirective()