[PATCH] D140423: [WIP][clang] Add PrintingPolicy callback for identifying default template arguments
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 13 12:24:59 PST 2023
erichkeane added a comment.
A Class template instantiation SHOULD have its link back to the class template, and should be able to calculate whether the template argument is defaulted, right? At least if it is the SAME as the default (that is, I'm not sure how well we can tell the difference between a defaulted arg, and a arg set to the default value).
I wouldn't expect a bool to be necessary, and I see `isSubstitutedDefaultArgument` seems to do that work, right?
So I guess I wonder why 'print the defaulted template args' isn't just a printing-policy?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140423/new/
https://reviews.llvm.org/D140423
More information about the cfe-commits
mailing list