[clang-tools-extra] [clang-tidy] Add new check bugprone-capture-this-by-field (PR #130297)
Denis Mikhailov via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 7 09:18:38 PST 2025
================
@@ -118,6 +119,8 @@ class BugproneModule : public ClangTidyModule {
CheckFactories.registerCheck<BoolPointerImplicitConversionCheck>(
"bugprone-bool-pointer-implicit-conversion");
CheckFactories.registerCheck<BranchCloneCheck>("bugprone-branch-clone");
+ CheckFactories.registerCheck<CaptureThisByFieldCheck>(
+ "bugprone-capture-this-by-field");
----------------
denzor200 wrote:
`bugprone-capturing-this-by-field` ?
https://github.com/llvm/llvm-project/pull/130297
More information about the cfe-commits
mailing list