[clang] [clang-tools-extra] [clang] Make `InitListExpr::isExplicit()` work (PR #195175)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon May 4 08:15:04 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)) {
----------------
AaronBallman wrote:
We already have an `isImplicit` matcher for nodes which are implicitly added by the compiler like implicitly declared copy constructors, which does seem like a closer fit.
https://github.com/llvm/llvm-project/pull/195175
More information about the cfe-commits
mailing list