Lines Matching defs:PP

59                                      Preprocessor &PP);
83 bool ValueLive, Preprocessor &PP) {
88 PP.LexUnexpandedNonComment(PeekTok);
95 PP.LexUnexpandedNonComment(PeekTok);
99 if (PP.getCodeCompletionHandler())
100 PP.getCodeCompletionHandler()->CodeCompleteMacroName(false);
101 PP.setCodeCompletionReached();
102 PP.LexUnexpandedNonComment(PeekTok);
106 if (PP.CheckMacroName(PeekTok, 0))
117 Macro = PP.getMacroDirective(II);
118 PP.markMacroAsUsed(Macro->getMacroInfo());
128 PP.LexUnexpandedNonComment(PeekTok);
131 PP.Diag(PeekTok.getLocation(), diag::err_pp_expected_after)
133 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren;
138 PP.LexNonComment(PeekTok);
142 PP.LexNonComment(PeekTok);
146 if (PPCallbacks *Callbacks = PP.getPPCallbacks()) {
150 MD = PP.getMacroDirective(II);
170 bool ValueLive, Preprocessor &PP) {
174 if (PP.getCodeCompletionHandler())
175 PP.getCodeCompletionHandler()->CodeCompletePreprocessorExpression();
176 PP.setCodeCompletionReached();
177 PP.LexNonComment(PeekTok);
186 return(EvaluateDefined(Result, PeekTok, DT, ValueLive, PP));
195 PP.Diag(PeekTok, diag::warn_pp_undef_identifier) << II;
199 PP.LexNonComment(PeekTok);
205 PP.Diag(PeekTok, diag::err_pp_expr_bad_token_start_expr);
210 PP.Diag(PeekTok, diag::err_pp_expected_value_in_expr);
215 StringRef Spelling = PP.getSpelling(PeekTok, IntegerBuffer,
220 NumericLiteralParser Literal(Spelling, PeekTok.getLocation(), PP);
225 PP.Diag(PeekTok, diag::err_pp_illegal_floating_literal);
232 PP.Diag(PeekTok, diag::err_pp_invalid_udl) << /*integer*/1;
235 if (!PP.getLangOpts().C99 && Literal.isLongLong) {
236 if (PP.getLangOpts().CPlusPlus)
237 PP.Diag(PeekTok,
238 PP.getLangOpts().CPlusPlus11 ?
241 PP.Diag(PeekTok, diag::ext_c99_longlong);
247 if (ValueLive) PP.Diag(PeekTok, diag::err_integer_too_large);
262 PP.Diag(PeekTok, diag::ext_integer_too_large_for_signed);
269 PP.LexNonComment(PeekTok);
278 PP.Diag(PeekTok, diag::err_pp_invalid_udl) << /*character*/0;
282 StringRef ThisTok = PP.getSpelling(PeekTok, CharBuffer, &CharInvalid);
287 PeekTok.getLocation(), PP, PeekTok.getKind());
292 const TargetInfo &TI = PP.getTargetInfo();
311 Val.setIsUnsigned(!PP.getLangOpts().CharIsSigned);
323 PP.LexNonComment(PeekTok);
328 PP.LexNonComment(PeekTok); // Eat the (.
331 if (EvaluateValue(Result, PeekTok, DT, ValueLive, PP)) return true;
339 if (EvaluateDirectiveSubExpr(Result, 1, PeekTok, ValueLive, PP))
343 PP.Diag(PeekTok.getLocation(), diag::err_pp_expected_rparen)
345 PP.Diag(Start, diag::note_matching) << tok::l_paren;
351 PP.LexNonComment(PeekTok); // Eat the ).
357 PP.LexNonComment(PeekTok);
358 if (EvaluateValue(Result, PeekTok, DT, ValueLive, PP)) return true;
364 PP.LexNonComment(PeekTok);
365 if (EvaluateValue(Result, PeekTok, DT, ValueLive, PP)) return true;
376 PP.Diag(Loc, diag::warn_pp_expr_overflow) << Result.getRange();
384 PP.LexNonComment(PeekTok);
385 if (EvaluateValue(Result, PeekTok, DT, ValueLive, PP)) return true;
396 PP.LexNonComment(PeekTok);
397 if (EvaluateValue(Result, PeekTok, DT, ValueLive, PP)) return true;
459 Preprocessor &PP) {
463 PP.Diag(PeekTok.getLocation(), diag::err_pp_expr_bad_token_binop)
493 PP.LexNonComment(PeekTok);
498 if (EvaluateValue(RHS, PeekTok, DT, RHSIsLive, PP)) return true;
507 PP.Diag(PeekTok.getLocation(), diag::err_pp_expr_bad_token_binop)
530 if (EvaluateDirectiveSubExpr(RHS, RHSPrec, PeekTok, RHSIsLive, PP))
553 PP.Diag(OpLoc, diag::warn_pp_convert_lhs_to_positive)
558 PP.Diag(OpLoc, diag::warn_pp_convert_rhs_to_positive)
574 PP.Diag(OpLoc, diag::err_pp_remainder_by_zero)
586 PP.Diag(OpLoc, diag::err_pp_division_by_zero)
675 if (!PP.getLangOpts().C99 || ValueLive)
676 PP.Diag(OpLoc, diag::ext_pp_comma_expr)
683 PP.Diag(PeekTok.getLocation(), diag::err_expected)
685 PP.Diag(OpLoc, diag::note_matching) << tok::question;
689 PP.LexNonComment(PeekTok);
695 if (EvaluateValue(AfterColonVal, PeekTok, DT, AfterColonLive, PP))
701 PeekTok, AfterColonLive, PP))
718 PP.Diag(OpLoc, diag::err_pp_colon_without_question)
725 PP.Diag(OpLoc, diag::warn_pp_expr_overflow)