[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 3 07:35:00 PDT 2025
================
@@ -0,0 +1,622 @@
+// RUN: %check_clang_tidy -check-suffix=ALL,CPP20ORLATER -std=c++20-or-later %s modernize-use-structured-binding %t -- -- -I %S/Inputs/use-structured-binding/
+// RUN: %check_clang_tidy -check-suffix=ALL -std=c++17 %s modernize-use-structured-binding %t -- -- -I %S/Inputs/use-structured-binding/
----------------
flovent wrote:
Wonderful! `ALL` suffix is learned from other testfiles, that saves many times and makes it look simpler.
[fbbbdd5](https://github.com/llvm/llvm-project/pull/158462/commits/fbbbdd59119b3bc0e7afe9150ab150ed6e016009)
https://github.com/llvm/llvm-project/pull/158462
More information about the cfe-commits
mailing list