=?utf-8?q?Balázs_Kéri?= <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


================
@@ -8,13 +8,30 @@
 
 #include "RandomGeneratorSeedCheck.h"
 #include "clang/AST/ASTContext.h"
+#include "clang/AST/ParentMapContext.h"
 #include "clang/ASTMatchers/ASTMatchFinder.h"
 #include "llvm/ADT/STLExtras.h"
 
 using namespace clang::ast_matchers;
 
 namespace clang::tidy::bugprone {
 
+namespace {
+AST_MATCHER_P(CXXConstructExpr, hasImplicitCtorInitField,
----------------
vbvictor wrote:

Istead of creating new matcher, I think we can write this:

```cpp

optionally(hasParent(cxxConstructorDecl(hasAnyConstructorInitializer(unless(isWritten()),
 equalBoundsNode(""), isMemberInitializer()))))

```

One problem is we don't have hasMember() matcher on ConstructorInitializer and 
we still need to create that matcher

https://github.com/llvm/llvm-project/pull/194613
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to