Lines Matching refs:PP

51   void HandlePragma(clang::Preprocessor &PP,  in HandlePragma()  argument
54 this->handleItemListPragma(PP, FirstToken); in HandlePragma()
63 void HandlePragma(clang::Preprocessor &PP, in HandlePragma() argument
92 PP.LexUnexpandedToken(PragmaToken); in HandlePragma()
100 PP.LexUnexpandedToken(PragmaToken); in HandlePragma()
103 std::string Spelling = PP.getSpelling(PragmaToken, &Invalid); in HandlePragma()
112 const clang::Token &NextTok = PP.LookAhead(0); in HandlePragma()
118 PP.LexUnexpandedToken(PragmaToken); in HandlePragma()
132 void HandlePragma(clang::Preprocessor &PP, in HandlePragma() argument
161 if (!ProcessKeywordAndValue(PP, PragmaToken, KeywordValueMap)) in HandlePragma()
167 PP.Diag(PragmaToken.getLocation(), in HandlePragma()
168 PP.getDiagnostics().getCustomDiagID( in HandlePragma()
171 << PP.getSpelling(PragmaToken) << getName(); in HandlePragma()
177 PP.Diag(PragmaLocation, PP.getDiagnostics().getCustomDiagID( in HandlePragma()
192 PP.Diag(PragmaLocation, PP.getDiagnostics().getCustomDiagID( in HandlePragma()
197 << (*I)->getLocation().printToString(PP.getSourceManager()); in HandlePragma()
204 PP.Diag(PragmaLocation, in HandlePragma()
205 PP.getDiagnostics().getCustomDiagID( in HandlePragma()
214 MarkUsed(PP, KeywordValueMap[RSExportReduce::KeyInitializer]); in HandlePragma()
215 MarkUsed(PP, KeywordValueMap[RSExportReduce::KeyAccumulator]); in HandlePragma()
216 MarkUsed(PP, KeywordValueMap[RSExportReduce::KeyCombiner]); in HandlePragma()
217 MarkUsed(PP, KeywordValueMap[RSExportReduce::KeyOutConverter]); in HandlePragma()
218 MarkUsed(PP, KeywordValueMap[RSExportReduce::KeyHalter]); in HandlePragma()
232 void MarkUsed(clang::Preprocessor &PP, const std::string &FunctionName) { in MarkUsed() argument
239 if (const clang::IdentifierInfo *II = PP.getIdentifierInfo(FunctionName)) { in MarkUsed()
272 bool ProcessKeywordAndValue(clang::Preprocessor &PP, in ProcessKeywordAndValue() argument
283 PP.Diag(PragmaToken.getLocation(), in ProcessKeywordAndValue()
284 PP.getDiagnostics().getCustomDiagID( in ProcessKeywordAndValue()
294 PP.Diag(PragmaToken.getLocation(), in ProcessKeywordAndValue()
295 PP.getDiagnostics().getCustomDiagID( in ProcessKeywordAndValue()
301 PP.LexUnexpandedToken(PragmaToken); in ProcessKeywordAndValue()
305 PP.Diag(PragmaToken.getLocation(), in ProcessKeywordAndValue()
306 PP.getDiagnostics().getCustomDiagID( in ProcessKeywordAndValue()
312 PP.LexUnexpandedToken(PragmaToken); in ProcessKeywordAndValue()
316 PP.Diag(PragmaToken.getLocation(), in ProcessKeywordAndValue()
317 PP.getDiagnostics().getCustomDiagID( in ProcessKeywordAndValue()
324 PP.LexUnexpandedToken(PragmaToken); in ProcessKeywordAndValue()
328 PP.Diag(PragmaToken.getLocation(), in ProcessKeywordAndValue()
329 PP.getDiagnostics().getCustomDiagID( in ProcessKeywordAndValue()
335 PP.LexUnexpandedToken(PragmaToken); in ProcessKeywordAndValue()
354 void HandlePragma(clang::Preprocessor &PP, in HandlePragma() argument
357 this->handleOptionalStringLiteralParamPragma(PP, FirstToken); in HandlePragma()
363 void handleInt(clang::Preprocessor &PP, in handleInt() argument
367 PP.Diag(Tok, in handleInt()
368 PP.getDiagnostics().getCustomDiagID( in handleInt()
384 void HandlePragma(clang::Preprocessor &PP, in HandlePragma() argument
387 this->handleIntegerParamPragma(PP, FirstToken); in HandlePragma()
399 void HandlePragma(clang::Preprocessor &PP, in HandlePragma() argument
405 PP.Diag(Token, PP.getDiagnostics().getCustomDiagID( in HandlePragma()
416 PP.Diag(Token, PP.getDiagnostics().getCustomDiagID( in HandlePragma()
433 void RSPragmaHandler::handleItemListPragma(clang::Preprocessor &PP, in handleItemListPragma() argument
438 PP.LexUnexpandedToken(PragmaToken); in handleItemListPragma()
446 PP.LexUnexpandedToken(PragmaToken); in handleItemListPragma()
448 this->handleItem(PP.getSpelling(PragmaToken)); in handleItemListPragma()
454 PP.LexUnexpandedToken(PragmaToken); in handleItemListPragma()
461 void RSPragmaHandler::handleNonParamPragma(clang::Preprocessor &PP, in handleNonParamPragma() argument
466 PP.LexUnexpandedToken(PragmaToken); in handleNonParamPragma()
471 PP.Diag(PragmaToken, in handleNonParamPragma()
472 PP.getDiagnostics().getCustomDiagID( in handleNonParamPragma()
480 clang::Preprocessor &PP, clang::Token &FirstToken) { in handleOptionalStringLiteralParamPragma() argument
484 PP.LexUnexpandedToken(PragmaToken); in handleOptionalStringLiteralParamPragma()
491 PP.LexUnexpandedToken(PragmaToken); in handleOptionalStringLiteralParamPragma()
494 clang::StringLiteralParser StringLiteral(PragmaToken, PP); in handleOptionalStringLiteralParamPragma()
503 PP.LexUnexpandedToken(PragmaToken); in handleOptionalStringLiteralParamPragma()
505 PP.Diag(PragmaToken, in handleOptionalStringLiteralParamPragma()
506 PP.getDiagnostics().getCustomDiagID( in handleOptionalStringLiteralParamPragma()
518 clang::Preprocessor &PP, clang::Token &FirstToken) { in handleIntegerParamPragma() argument
522 PP.LexUnexpandedToken(PragmaToken); in handleIntegerParamPragma()
527 this->handleInt(PP, PragmaToken, 0); in handleIntegerParamPragma()
530 PP.LexUnexpandedToken(PragmaToken); 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()
553 PP.Diag(PragmaToken, in handleIntegerParamPragma()
554 PP.getDiagnostics().getCustomDiagID( in handleIntegerParamPragma()
561 PP.LexUnexpandedToken(PragmaToken); in handleIntegerParamPragma()
565 void AddPragmaHandlers(clang::Preprocessor &PP, RSContext *RsContext) { in AddPragmaHandlers() argument
567 PP.AddPragmaHandler("rs", in AddPragmaHandlers()
571 PP.AddPragmaHandler( in AddPragmaHandlers()
575 PP.AddPragmaHandler( in AddPragmaHandlers()
579 PP.AddPragmaHandler( in AddPragmaHandlers()
583 PP.AddPragmaHandler(new RSVersionPragmaHandler("version", RsContext)); in AddPragmaHandlers()
586 PP.AddPragmaHandler(new RSPrecisionPragmaHandler("rs_fp_full", RsContext)); in AddPragmaHandlers()
587 PP.AddPragmaHandler(new RSPrecisionPragmaHandler("rs_fp_relaxed", RsContext)); in AddPragmaHandlers()
588 PP.AddPragmaHandler(new RSPrecisionPragmaHandler("rs_fp_imprecise", RsContext)); in AddPragmaHandlers()