[clang-tools-extra] fd27401 - attempt to fix build after add51e152aa

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 03:49:58 PDT 2020


Author: Nico Weber
Date: 2020-06-03T06:49:50-04:00
New Revision: fd2740143e626ca32432aac0b51b2880a3b1e0bc

URL: https://github.com/llvm/llvm-project/commit/fd2740143e626ca32432aac0b51b2880a3b1e0bc
DIFF: https://github.com/llvm/llvm-project/commit/fd2740143e626ca32432aac0b51b2880a3b1e0bc.diff

LOG: attempt to fix build after add51e152aa

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.cpp b/clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.cpp
index d3c002f5ad1d..165acd40841f 100644
--- a/clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.cpp
+++ b/clang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.cpp
@@ -88,7 +88,7 @@ static bool isViableLoop(const CXXForRangeStmt &S, ASTContext &Context) {
 }
 
 void UseAnyOfAllOfCheck::check(const MatchFinder::MatchResult &Result) {
-  StringRef Ranges = getLangOpts().CPlusPlus2a ? "::ranges" : "";
+  StringRef Ranges = getLangOpts().CPlusPlus20 ? "::ranges" : "";
 
   if (const auto *S = Result.Nodes.getNodeAs<CXXForRangeStmt>("any_of_loop")) {
     if (!isViableLoop(*S, *Result.Context))


        


More information about the cfe-commits mailing list