Lines Matching refs:LangOpts
529 const LangOptions &LangOpts,
532 : SM(SM), LangOpts(LangOpts), Diags(Diags),
579 if (LangOpts.FixedPoint) {
599 if (!LangOpts.FixedPoint)
607 if (!LangOpts.FixedPoint)
616 if (!(LangOpts.Half || LangOpts.FixedPoint))
631 if ((Target.hasFloat16Type() || LangOpts.CUDA) && s + 2 < ThisTokEnd &&
670 if (LangOpts.MicrosoftExt) {
723 if (isValidUDSuffix(LangOpts, UDSuffixBuf)) {
747 TokLoc, SuffixBegin - ThisTokBegin, SM, LangOpts),
769 !isValidUDSuffix(LangOpts, StringRef(s, ThisTokEnd - s))) {
771 Lexer::AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin, SM, LangOpts),
800 TokLoc, Exponent - ThisTokBegin, SM, LangOpts),
812 bool NumericLiteralParser::isValidUDSuffix(const LangOptions &LangOpts,
814 if (!LangOpts.CPlusPlus11 || Suffix.empty())
822 if (!LangOpts.CPlusPlus14)
832 .Cases("d", "y", LangOpts.CPlusPlus20)
848 LangOpts),
889 LangOpts),
891 << LangOpts.CPlusPlus << 1;
908 TokLoc, Exponent - ThisTokBegin, SM, LangOpts),
917 if (!LangOpts.HexFloats)
918 Diags.Report(TokLoc, LangOpts.CPlusPlus
921 else if (LangOpts.CPlusPlus17)
925 LangOpts),
927 << LangOpts.CPlusPlus << 0;
936 Diags.Report(TokLoc, LangOpts.CPlusPlus14
938 : LangOpts.CPlusPlus ? diag::ext_binary_literal_cxx14
948 !isValidUDSuffix(LangOpts, StringRef(s, ThisTokEnd - s))) {
950 LangOpts),
1913 bool StringLiteralParser::isValidUDSuffix(const LangOptions &LangOpts,
1915 return NumericLiteralParser::isValidUDSuffix(LangOpts, Suffix) ||