Lines Matching refs:PP
46 void HandlePragma(clang::Preprocessor &PP, in HandlePragma() argument
49 this->handleItemListPragma(PP, FirstToken); in HandlePragma()
58 void HandlePragma(clang::Preprocessor &PP, in HandlePragma() argument
87 PP.LexUnexpandedToken(PragmaToken); in HandlePragma()
95 PP.LexUnexpandedToken(PragmaToken); in HandlePragma()
98 std::string Spelling = PP.getSpelling(PragmaToken, &Invalid); in HandlePragma()
107 const clang::Token &NextTok = PP.LookAhead(0); in HandlePragma()
113 PP.LexUnexpandedToken(PragmaToken); in HandlePragma()
133 void HandlePragma(clang::Preprocessor &PP, in HandlePragma() argument
136 this->handleOptionalStringLiteralParamPragma(PP, FirstToken); in HandlePragma()
142 void handleInt(clang::Preprocessor &PP, in handleInt() argument
146 PP.Diag(Tok, in handleInt()
147 PP.getDiagnostics().getCustomDiagID( in handleInt()
163 void HandlePragma(clang::Preprocessor &PP, in HandlePragma() argument
166 this->handleIntegerParamPragma(PP, FirstToken); in HandlePragma()
178 void HandlePragma(clang::Preprocessor &PP, in HandlePragma() argument
184 PP.Diag(Token, PP.getDiagnostics().getCustomDiagID( in HandlePragma()
195 PP.Diag(Token, PP.getDiagnostics().getCustomDiagID( in HandlePragma()
212 void RSPragmaHandler::handleItemListPragma(clang::Preprocessor &PP, in handleItemListPragma() argument
217 PP.LexUnexpandedToken(PragmaToken); in handleItemListPragma()
225 PP.LexUnexpandedToken(PragmaToken); in handleItemListPragma()
227 this->handleItem(PP.getSpelling(PragmaToken)); in handleItemListPragma()
233 PP.LexUnexpandedToken(PragmaToken); in handleItemListPragma()
240 void RSPragmaHandler::handleNonParamPragma(clang::Preprocessor &PP, in handleNonParamPragma() argument
245 PP.LexUnexpandedToken(PragmaToken); in handleNonParamPragma()
250 PP.Diag(PragmaToken, in handleNonParamPragma()
251 PP.getDiagnostics().getCustomDiagID( in handleNonParamPragma()
259 clang::Preprocessor &PP, clang::Token &FirstToken) { in handleOptionalStringLiteralParamPragma() argument
263 PP.LexUnexpandedToken(PragmaToken); in handleOptionalStringLiteralParamPragma()
270 PP.LexUnexpandedToken(PragmaToken); in handleOptionalStringLiteralParamPragma()
273 clang::StringLiteralParser StringLiteral(PragmaToken, PP); in handleOptionalStringLiteralParamPragma()
282 PP.LexUnexpandedToken(PragmaToken); in handleOptionalStringLiteralParamPragma()
284 PP.Diag(PragmaToken, in handleOptionalStringLiteralParamPragma()
285 PP.getDiagnostics().getCustomDiagID( in handleOptionalStringLiteralParamPragma()
297 clang::Preprocessor &PP, clang::Token &FirstToken) { in handleIntegerParamPragma() argument
301 PP.LexUnexpandedToken(PragmaToken); in handleIntegerParamPragma()
306 this->handleInt(PP, PragmaToken, 0); in handleIntegerParamPragma()
309 PP.LexUnexpandedToken(PragmaToken); in handleIntegerParamPragma()
314 llvm::StringRef TokSpelling = PP.getSpelling(PragmaToken, SpellingBuffer); in handleIntegerParamPragma()
316 PragmaToken.getLocation(), PP); in handleIntegerParamPragma()
323 this->handleInt(PP, PragmaToken, static_cast<int>(Val.getSExtValue())); in handleIntegerParamPragma()
325 PP.LexUnexpandedToken(PragmaToken); in handleIntegerParamPragma()
328 this->handleInt(PP, PragmaToken, 0); in handleIntegerParamPragma()
332 PP.Diag(PragmaToken, in handleIntegerParamPragma()
333 PP.getDiagnostics().getCustomDiagID( in handleIntegerParamPragma()
340 PP.LexUnexpandedToken(PragmaToken); in handleIntegerParamPragma()
344 void AddPragmaHandlers(clang::Preprocessor &PP, RSContext *RsContext) { in AddPragmaHandlers() argument
346 PP.AddPragmaHandler("rs", in AddPragmaHandlers()
350 PP.AddPragmaHandler( in AddPragmaHandlers()
354 PP.AddPragmaHandler( in AddPragmaHandlers()
358 PP.AddPragmaHandler(new RSVersionPragmaHandler("version", RsContext)); in AddPragmaHandlers()
361 PP.AddPragmaHandler(new RSPrecisionPragmaHandler("rs_fp_full", RsContext)); in AddPragmaHandlers()
362 PP.AddPragmaHandler(new RSPrecisionPragmaHandler("rs_fp_relaxed", RsContext)); in AddPragmaHandlers()
363 PP.AddPragmaHandler(new RSPrecisionPragmaHandler("rs_fp_imprecise", RsContext)); in AddPragmaHandlers()