Lines Matching refs:PragmaToken
88 clang::Token &PragmaToken = FirstToken; in HandlePragma() local
92 PP.LexUnexpandedToken(PragmaToken); in HandlePragma()
95 if (PragmaToken.isNot(clang::tok::l_paren)) in HandlePragma()
98 while (PragmaToken.isNot(clang::tok::eod)) { in HandlePragma()
100 PP.LexUnexpandedToken(PragmaToken); in HandlePragma()
103 std::string Spelling = PP.getSpelling(PragmaToken, &Invalid); in HandlePragma()
108 if (PragmaToken.is(clang::tok::eod) || PragmaToken.is(clang::tok::eof)) { in HandlePragma()
118 PP.LexUnexpandedToken(PragmaToken); in HandlePragma()
119 } while (PragmaToken.isNot(clang::tok::eod)); in HandlePragma()
144 clang::Token &PragmaToken = FirstToken; in HandlePragma() local
160 while (PragmaToken.is(clang::tok::identifier)) { in HandlePragma()
161 if (!ProcessKeywordAndValue(PP, PragmaToken, KeywordValueMap)) in HandlePragma()
166 if (PragmaToken.isNot(clang::tok::eod)) { in HandlePragma()
167 PP.Diag(PragmaToken.getLocation(), in HandlePragma()
171 << PP.getSpelling(PragmaToken) << getName(); in HandlePragma()
273 clang::Token &PragmaToken, in ProcessKeywordAndValue() argument
277 if (PragmaToken.isNot(clang::tok::identifier) || in ProcessKeywordAndValue()
279 PragmaToken.getIdentifierInfo()->getName())) == in ProcessKeywordAndValue()
283 PP.Diag(PragmaToken.getLocation(), in ProcessKeywordAndValue()
288 << PragmaToken.getIdentifierInfo()->getName() << getName() in ProcessKeywordAndValue()
294 PP.Diag(PragmaToken.getLocation(), in ProcessKeywordAndValue()
301 PP.LexUnexpandedToken(PragmaToken); in ProcessKeywordAndValue()
304 if (PragmaToken.isNot(clang::tok::l_paren)) { in ProcessKeywordAndValue()
305 PP.Diag(PragmaToken.getLocation(), in ProcessKeywordAndValue()
312 PP.LexUnexpandedToken(PragmaToken); in ProcessKeywordAndValue()
315 if (PragmaToken.isNot(clang::tok::identifier)) { in ProcessKeywordAndValue()
316 PP.Diag(PragmaToken.getLocation(), in ProcessKeywordAndValue()
323 const std::string Name = PragmaToken.getIdentifierInfo()->getName(); in ProcessKeywordAndValue()
324 PP.LexUnexpandedToken(PragmaToken); in ProcessKeywordAndValue()
327 if (PragmaToken.isNot(clang::tok::r_paren)) { in ProcessKeywordAndValue()
328 PP.Diag(PragmaToken.getLocation(), in ProcessKeywordAndValue()
335 PP.LexUnexpandedToken(PragmaToken); in ProcessKeywordAndValue()
435 clang::Token &PragmaToken = FirstToken; in handleItemListPragma() local
438 PP.LexUnexpandedToken(PragmaToken); in handleItemListPragma()
441 if (PragmaToken.isNot(clang::tok::l_paren)) in handleItemListPragma()
444 while (PragmaToken.isNot(clang::tok::eod)) { in handleItemListPragma()
446 PP.LexUnexpandedToken(PragmaToken); in handleItemListPragma()
447 if (PragmaToken.is(clang::tok::identifier)) in handleItemListPragma()
448 this->handleItem(PP.getSpelling(PragmaToken)); in handleItemListPragma()
452 slangAssert(PragmaToken.isNot(clang::tok::eod)); in handleItemListPragma()
454 PP.LexUnexpandedToken(PragmaToken); in handleItemListPragma()
456 if (PragmaToken.isNot(clang::tok::comma)) in handleItemListPragma()
463 clang::Token &PragmaToken = FirstToken; in handleNonParamPragma() local
466 PP.LexUnexpandedToken(PragmaToken); in handleNonParamPragma()
469 if (PragmaToken.isNot(clang::tok::eod)) in handleNonParamPragma()
470 if (PragmaToken.isNot(clang::tok::r_paren)) { in handleNonParamPragma()
471 PP.Diag(PragmaToken, in handleNonParamPragma()
481 clang::Token &PragmaToken = FirstToken; in handleOptionalStringLiteralParamPragma() local
484 PP.LexUnexpandedToken(PragmaToken); in handleOptionalStringLiteralParamPragma()
487 if (PragmaToken.isNot(clang::tok::l_paren)) in handleOptionalStringLiteralParamPragma()
491 PP.LexUnexpandedToken(PragmaToken); in handleOptionalStringLiteralParamPragma()
492 if (PragmaToken.isNot(clang::tok::r_paren)) { in handleOptionalStringLiteralParamPragma()
494 clang::StringLiteralParser StringLiteral(PragmaToken, PP); in handleOptionalStringLiteralParamPragma()
503 PP.LexUnexpandedToken(PragmaToken); in handleOptionalStringLiteralParamPragma()
504 if (PragmaToken.isNot(clang::tok::r_paren)) { in handleOptionalStringLiteralParamPragma()
505 PP.Diag(PragmaToken, in handleOptionalStringLiteralParamPragma()
519 clang::Token &PragmaToken = FirstToken; in handleIntegerParamPragma() local
522 PP.LexUnexpandedToken(PragmaToken); in handleIntegerParamPragma()
525 if (PragmaToken.isNot(clang::tok::l_paren)) { in handleIntegerParamPragma()
527 this->handleInt(PP, PragmaToken, 0); in handleIntegerParamPragma()
530 PP.LexUnexpandedToken(PragmaToken); in handleIntegerParamPragma()
532 if (PragmaToken.is(clang::tok::numeric_constant)) { in handleIntegerParamPragma()
534 SpellingBuffer.resize(PragmaToken.getLength() + 1); in handleIntegerParamPragma()
535 llvm::StringRef TokSpelling = PP.getSpelling(PragmaToken, SpellingBuffer); in handleIntegerParamPragma()
537 PragmaToken.getLocation(), PP); in handleIntegerParamPragma()
544 this->handleInt(PP, PragmaToken, static_cast<int>(Val.getSExtValue())); in handleIntegerParamPragma()
546 PP.LexUnexpandedToken(PragmaToken); in handleIntegerParamPragma()
549 this->handleInt(PP, PragmaToken, 0); in handleIntegerParamPragma()
552 if (PragmaToken.isNot(clang::tok::r_paren)) { in handleIntegerParamPragma()
553 PP.Diag(PragmaToken, in handleIntegerParamPragma()
561 PP.LexUnexpandedToken(PragmaToken); in handleIntegerParamPragma()
562 } while (PragmaToken.isNot(clang::tok::eod)); in handleIntegerParamPragma()