[clang] [clang-tools-extra] [clang] Make `InitListExpr::isExplicit()` work (PR #195175)

Andrey Ali Khan Bolshakov via cfe-commits cfe-commits at lists.llvm.org
Thu May 7 01:43:32 PDT 2026


================
@@ -775,8 +776,12 @@ AST_MATCHER_P(ClassTemplateSpecializationDecl, hasSpecializedTemplate,
 /// implicit default/copy constructors).
 AST_POLYMORPHIC_MATCHER(isImplicit,
                         AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Attr,
-                                                        LambdaCapture)) {
-  return Node.isImplicit();
+                                                        LambdaCapture,
----------------
bolshakov-a wrote:

I've added a couple of examples. The script produced some unrelated changes. I didn't commit them. The result looks somewhat strange because the description is the same for all the four AST node types, hence the examples are completely unrelated e.g. for `Attr`. (Btw, only now I've discovered that AST matcher reference web page has hidden descriptions in tables.)

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


More information about the cfe-commits mailing list