[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 14 00:04:51 PDT 2025
flovent wrote:
It's tested in llvm codebase with `-DLLVM_ENABLE_PROJECTS="bolt;clang;clang-tools-extra;compiler-rt"`, since plenty of llvm code it's written in pre-c++17 standard.
It provides ~431 warnings and fixits with check option `modernize-use-structured-binding.PairTypes: 'std::pair; llvm::detail::DenseMapPair'`
See [apply modernize-structured-binding commit](https://github.com/flovent/llvm-project/commit/6585160f56bf38c09498a4a3cc3ed52edddce8c9#diff-6c27da357b0372870965476e57c269bfe5563cf2b0cbe6baee9d89c0d7964651)
https://github.com/llvm/llvm-project/pull/158462
More information about the cfe-commits
mailing list