Lines Matching refs:PP
509 Preprocessor &PP) in NumericLiteralParser() argument
510 : PP(PP), ThisTokBegin(TokSpelling.begin()), ThisTokEnd(TokSpelling.end()) { in NumericLiteralParser()
563 if (!PP.getLangOpts().Half) break; in NumericLiteralParser()
605 if (PP.getLangOpts().MicrosoftExt) { in NumericLiteralParser()
644 if (*s == 'i' && PP.getLangOpts().CPlusPlus14) in NumericLiteralParser()
661 if (isValidUDSuffix(PP.getLangOpts(), UDSuffixBuf)) { in NumericLiteralParser()
677 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, SuffixBegin - ThisTokBegin), in NumericLiteralParser()
685 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, in NumericLiteralParser()
700 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, s-ThisTokBegin), in ParseDecimalOrOctalCommon()
726 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, Exponent-ThisTokBegin), in ParseDecimalOrOctalCommon()
770 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, Pos - ThisTokBegin), in checkSeparator()
808 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin), in ParseNumberStartingWithZero()
810 << PP.getLangOpts().CPlusPlus << 1; in ParseNumberStartingWithZero()
825 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, Exponent-ThisTokBegin), in ParseNumberStartingWithZero()
833 if (!PP.getLangOpts().HexFloats) in ParseNumberStartingWithZero()
834 PP.Diag(TokLoc, PP.getLangOpts().CPlusPlus in ParseNumberStartingWithZero()
837 else if (PP.getLangOpts().CPlusPlus1z) in ParseNumberStartingWithZero()
838 PP.Diag(TokLoc, diag::warn_cxx1z_hex_literal); in ParseNumberStartingWithZero()
840 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin), in ParseNumberStartingWithZero()
842 << PP.getLangOpts().CPlusPlus << 0; in ParseNumberStartingWithZero()
851 PP.Diag(TokLoc, in ParseNumberStartingWithZero()
852 PP.getLangOpts().CPlusPlus14 in ParseNumberStartingWithZero()
854 : PP.getLangOpts().CPlusPlus in ParseNumberStartingWithZero()
865 PP.Diag(PP.AdvanceToTokenCharacter(TokLoc, s-ThisTokBegin), in ParseNumberStartingWithZero()
1029 SourceLocation Loc, Preprocessor &PP, in CharLiteralParser() argument
1066 assert(PP.getTargetInfo().getCharWidth() == 8 && in CharLiteralParser()
1068 assert(PP.getTargetInfo().getIntWidth() <= 64 && in CharLiteralParser()
1069 (PP.getTargetInfo().getIntWidth() & 7) == 0 && in CharLiteralParser()
1071 assert(PP.getTargetInfo().getWCharWidth() <= 64 && in CharLiteralParser()
1085 0xFFFFFFFFu >> (32-PP.getTargetInfo().getWCharWidth()); in CharLiteralParser()
1118 PP.Diag(Loc, Msg); in CharLiteralParser()
1131 PP.Diag(Loc, diag::err_character_too_large); in CharLiteralParser()
1142 FullSourceLoc(Loc, PP.getSourceManager()), in CharLiteralParser()
1143 &PP.getDiagnostics(), PP.getLangOpts(), true)) { in CharLiteralParser()
1147 PP.Diag(Loc, diag::err_character_too_large); in CharLiteralParser()
1153 unsigned CharWidth = getCharWidth(Kind, PP.getTargetInfo()); in CharLiteralParser()
1156 FullSourceLoc(Loc,PP.getSourceManager()), in CharLiteralParser()
1157 CharWidth, &PP.getDiagnostics(), PP.getLangOpts()); in CharLiteralParser()
1165 PP.Diag(Loc, diag::warn_extraneous_char_constant); in CharLiteralParser()
1167 PP.Diag(Loc, diag::ext_four_char_character_literal); in CharLiteralParser()
1169 PP.Diag(Loc, diag::ext_multichar_character_literal); in CharLiteralParser()
1171 PP.Diag(Loc, diag::err_multichar_utf_character_literal); in CharLiteralParser()
1177 llvm::APInt LitVal(PP.getTargetInfo().getIntWidth(), 0); in CharLiteralParser()
1196 PP.Diag(Loc, diag::warn_char_constant_too_large); in CharLiteralParser()
1207 PP.getLangOpts().CharIsSigned) in CharLiteralParser()
1267 Preprocessor &PP, bool Complain) in StringLiteralParser() argument
1268 : SM(PP.getSourceManager()), Features(PP.getLangOpts()), in StringLiteralParser()
1269 Target(PP.getTargetInfo()), Diags(Complain ? &PP.getDiagnostics() :nullptr), in StringLiteralParser()