[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
Sun Sep 14 01:32:33 PDT 2025
================
@@ -0,0 +1,67 @@
+// RUN: %check_clang_tidy -std=c++17 %s modernize-use-structured-binding %t -- -- -I %S/Inputs/use-structured-binding/
----------------
vbvictor wrote:
Is lambda-capture will be available in c++20 and onwards? If so, we should test it. (maybe you can merge both test-files into one and have 2 run commands: one for c++17 (no warnings on lambdas), the other for c++20-or-later.
https://github.com/llvm/llvm-project/pull/158462
More information about the cfe-commits
mailing list