[PATCH] D55491: Implement TemplateArgument dumping in terms of Visitor
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 10 09:51:33 PST 2019
aaron.ballman added inline comments.
================
Comment at: lib/AST/ASTDumper.cpp:449-450
+ void VisitPackTemplateArgument(const TemplateArgument &TA) {
+ for (TemplateArgument::pack_iterator I = TA.pack_begin(),
+ E = TA.pack_end();
+ I != E; ++I)
----------------
steveire wrote:
> aaron.ballman wrote:
> > `llvm::for_each(TA.pack_elements(), ...);` (or a range-based for loop)
> I'm just moving the code as it is in its origin location. You could rewrite it separately if you wish.
I realize that. You're updating existing code, which is a perfectly appropriate time for NFC improvements to it -- we make these kinds of requests frequently because it's the time at which we notice these minor deficiencies.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55491/new/
https://reviews.llvm.org/D55491
More information about the cfe-commits
mailing list