[clang] [clang] Support DecompositionDecl in -ast-print (PR #221711)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 04:57:44 PDT 2026
================
@@ -461,6 +465,11 @@ void DeclPrinter::VisitDeclContext(DeclContext *DC, bool Indent) {
if (isa<ObjCIvarDecl>(*D))
continue;
+ // Don't print BindingDecls, as they are printed when visiting the
+ // containing DecompositionDecl.
+ if (isa<BindingDecl>(*D))
+ continue;
----------------
AaronBallman wrote:
Can combine this above into `isa<ObjCIVarDecl, BindingDecl>(*D)` and combine the comments.
https://github.com/llvm/llvm-project/pull/221711
More information about the cfe-commits
mailing list