[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 2 04:41:53 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/
----------------
vbvictor wrote:
nit: IIRC you can omit "ALL" suffix here and in first RUN write `-check-suffix=,CPP20ORLATER`
https://github.com/llvm/llvm-project/pull/158462
More information about the cfe-commits
mailing list