Handles expressions such as:
- std::is_const<T>()
- std::is_const<T>()();
- std::is_same(decltype(U()), V>::value;
Differential D55552
[Sema] Better static assert diagnostics for expressions involving temporaries. courbet on Dec 11 2018, 4:06 AM. Authored by
Details Handles expressions such as:
Diff Detail
Event Timeline
Comment Actions move PrintQualifiedTypes to PrintingPolicy
Comment Actions LGTM, but you should wait a few days before committing in case @Quuxplusone has comments. Comment Actions LGTM. Tiny style suggestions, which I won't mind if you ignore.
Comment Actions Thanks for the comments !
|
Nit: could this function have been left in-line, and just changed split() to splitAccordingToPolicy(this, Policy)?
Even simpler, could splitAccordingToPolicy be made a member function of QualType, so that most of these diffs could be simply s/split()/splitAccordingToPolicy(Policy)/ without introducing any new temporary variables or anything? I.e.
But if that would make the code harder to read instead of easier, then don't mind me.