Lines Matching refs:StrTok
1022 Token StrTok;
1023 Lex(StrTok);
1025 // If the StrTok is "eod", then it wasn't present. Otherwise, it must be a
1027 if (StrTok.is(tok::eod))
1029 else if (StrTok.isNot(tok::string_literal)) {
1030 Diag(StrTok, diag::err_pp_line_invalid_filename);
1032 } else if (StrTok.hasUDSuffix()) {
1033 Diag(StrTok, diag::err_invalid_string_udl);
1037 StringLiteralParser Literal(StrTok, *this);
1042 Diag(StrTok, diag::err_pp_linemarker_invalid_filename);
1154 Token StrTok;
1155 Lex(StrTok);
1161 // If the StrTok is "eod", then it wasn't present. Otherwise, it must be a
1163 if (StrTok.is(tok::eod))
1165 else if (StrTok.isNot(tok::string_literal)) {
1166 Diag(StrTok, diag::err_pp_linemarker_invalid_filename);
1168 } else if (StrTok.hasUDSuffix()) {
1169 Diag(StrTok, diag::err_invalid_string_udl);
1173 StringLiteralParser Literal(StrTok, *this);
1178 Diag(StrTok, diag::err_pp_linemarker_invalid_filename);
1247 Token StrTok;
1248 Lex(StrTok);
1251 if (StrTok.isNot(tok::string_literal) &&
1252 StrTok.isNot(tok::wide_string_literal)) {
1253 Diag(StrTok, diag::err_pp_malformed_ident);
1254 if (StrTok.isNot(tok::eod))
1259 if (StrTok.hasUDSuffix()) {
1260 Diag(StrTok, diag::err_invalid_string_udl);
1269 std::string Str = getSpelling(StrTok, &Invalid);