[PATCH] D55933: [Sema] Do not print default template parameters.
Arthur O'Dwyer via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 3 09:06:23 PST 2019
Quuxplusone added inline comments.
================
Comment at: lib/AST/TypePrinter.cpp:179
+ // `X<Some::Class>` gets canonicalized to `X<float, int>`. We disable
+ // canonicalization so that `printTag()`` can see the template parameters as
+ // written.
----------------
Nit: there's an extra ` on this line.
I think I vaguely understand the purpose of this switch now. It feels ugly, but I have no concrete suggestion for improvement. Do you not need a case here to delay canonicalization of `X<Some::Class>&` also?
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55933/new/
https://reviews.llvm.org/D55933
More information about the cfe-commits
mailing list