[PATCH] D81080: [clang-tidy] Compile fix: Change CPlusPlus2a to CPlusPlus20.

Martin Böhme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 04:21:03 PDT 2020


mboehme created this revision.
mboehme added a reviewer: sammccall.
mboehme added a project: clang-tools-extra.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.

The name of the option was changed here:

https://github.com/llvm/llvm-project/commit/6a30894391ca671bab16c505eff30c7819bd8e8e


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81080

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


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<CXXForRangeStmt>("any_of_loop")) {
     if (!isViableLoop(*S, *Result.Context))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81080.268134.patch
Type: text/x-patch
Size: 634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200603/e2af9f00/attachment-0001.bin>


More information about the cfe-commits mailing list