This is an archive of the discontinued LLVM Phabricator instance.

NFC: Implement GenericSelectionExpr::Association dump with Visitor
ClosedPublic

Authored by steveire on Jan 19 2019, 4:12 AM.

Diff Detail

Repository
rC Clang

Event Timeline

steveire created this revision.Jan 19 2019, 4:12 AM
aaron.ballman accepted this revision.Jan 21 2019, 5:23 AM

LGTM with a few small cosmetic changes.

lib/AST/ASTDumper.cpp
1463–1464

These can be combined into a single if statement.

1475–1476

You can change this to be a range-based for loop over the associations to clean it up even further. for (const auto *A = E->getAssocExprs())

This revision is now accepted and ready to land.Jan 21 2019, 5:23 AM
aaron.ballman added inline comments.Jan 21 2019, 5:26 AM
lib/AST/ASTDumper.cpp
1475–1476

Ah, I see now that this is over the new Association objects, not the old Expr * objects. I'll add comments on the other review, but same guideline here.

This revision was automatically updated to reflect the committed changes.