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

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Sun May 3 02:05:07 PDT 2026


================
@@ -8144,7 +8144,7 @@ AST_MATCHER(CXXConstructorDecl, isDelegatingConstructor) {
 /// cxxDeductionGuideDecl(isExplicit()) will match #6, but not #5.
 AST_POLYMORPHIC_MATCHER(isExplicit, AST_POLYMORPHIC_SUPPORTED_TYPES(
                                         CXXConstructorDecl, CXXConversionDecl,
-                                        CXXDeductionGuideDecl)) {
+                                        CXXDeductionGuideDecl, InitListExpr)) {
----------------
zwuis wrote:

IMO it would be better to add an `isImplicit` matcher over `isExplicit` because these 'explicit' have different meanings.

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


More information about the cfe-commits mailing list