================
@@ -23,7 +37,9 @@ void 
ThrowingStaticInitializationCheck::registerMatchers(MatchFinder *Finder) {
           varDecl(
               anyOf(hasThreadStorageDuration(), hasStaticStorageDuration()),
               unless(anyOf(isConstexpr(), hasType(cxxRecordDecl(isLambda())),
-                           hasAncestor(functionDecl()))),
+                           hasAncestor(functionDecl()),
+                           hasType(tidy::matchers::matchesAnyListedTypeName(
----------------
vbvictor wrote:

Nit, probably don't need `tidy`
```suggestion
                           hasType(matchers::matchesAnyListedTypeName(
```

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

Reply via email to