[clang-tools-extra] [clang-tidy] Fix `cppcoreguidelines-prefer-member-initializer` false positive for inherited members (PR #153941)

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 16 12:12:14 PDT 2025


================
@@ -650,3 +650,20 @@ struct InitFromBindingDecl {
   }
 };
 } // namespace GH82970
+
+namespace inherited_members {
----------------
carlosgalvezp wrote:

Nit: the issue is not just about inherited members, since that's working well before this patch. The key is the child class being a template. 

https://github.com/llvm/llvm-project/pull/153941


More information about the cfe-commits mailing list