Lines Matching refs:StrTok
1026 Token StrTok;
1027 Lex(StrTok);
1029 // If the StrTok is "eod", then it wasn't present. Otherwise, it must be a
1031 if (StrTok.is(tok::eod))
1033 else if (StrTok.isNot(tok::string_literal)) {
1034 Diag(StrTok, diag::err_pp_line_invalid_filename);
1036 } else if (StrTok.hasUDSuffix()) {
1037 Diag(StrTok, diag::err_invalid_string_udl);
1041 StringLiteralParser Literal(StrTok, *this);
1046 Diag(StrTok, diag::err_pp_linemarker_invalid_filename);
1158 Token StrTok;
1159 Lex(StrTok);
1165 // If the StrTok is "eod", then it wasn't present. Otherwise, it must be a
1167 if (StrTok.is(tok::eod))
1169 else if (StrTok.isNot(tok::string_literal)) {
1170 Diag(StrTok, diag::err_pp_linemarker_invalid_filename);
1172 } else if (StrTok.hasUDSuffix()) {
1173 Diag(StrTok, diag::err_invalid_string_udl);
1177 StringLiteralParser Literal(StrTok, *this);
1182 Diag(StrTok, diag::err_pp_linemarker_invalid_filename);
1251 Token StrTok;
1252 Lex(StrTok);
1255 if (StrTok.isNot(tok::string_literal) &&
1256 StrTok.isNot(tok::wide_string_literal)) {
1257 Diag(StrTok, diag::err_pp_malformed_ident);
1258 if (StrTok.isNot(tok::eod))
1263 if (StrTok.hasUDSuffix()) {
1264 Diag(StrTok, diag::err_invalid_string_udl);
1273 std::string Str = getSpelling(StrTok, &Invalid);