[clang-tools-extra] [clang-tidy] Add bugprone-default-lambda-capture (PR #160150)
JJ Marr via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 24 06:17:09 PDT 2025
jjmarr-amd wrote:
> We should not simply disable default capture as bug-prone here. IMO, bugprone is the most critical check category.
I'm fine with moving the check to readability. I picked bugprone because the coding guideline I'm trying to enforce says default captures are prone to bugs, not because I understand the unwritten rule of where to put various checks.
https://github.com/llvm/llvm-project/pull/160150
More information about the cfe-commits
mailing list