Index: clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.cpp =================================================================== --- clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.cpp +++ clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.cpp @@ -88,7 +88,7 @@ } void UseAnyOfAllOfCheck::check(const MatchFinder::MatchResult &Result) { - StringRef Ranges = getLangOpts().CPlusPlus2a ? "::ranges" : ""; + StringRef Ranges = getLangOpts().CPlusPlus20 ? "::ranges" : ""; if (const auto *S = Result.Nodes.getNodeAs("any_of_loop")) { if (!isViableLoop(*S, *Result.Context))