================
@@ -150,6 +150,16 @@ CXType cxtype::MakeCXType(QualType T, CXTranslationUnit
TU) {
return MakeCXType(PTT->getInnerType(), TU);
}
+ // Handle auto in function parameters
+ if (auto *TTP = T->getAs<TemplateTypeParmType>()) {
+ auto *D = TTP->getDecl();
+ if (D && D->isImplicit()) {
+ if (auto *TC = D->getTypeConstraint(); !TC) {
----------------
Serafean wrote:
This doesn't report constrained auto as `Auto`. I did mention the code was
wrong...
https://github.com/llvm/llvm-project/pull/172092
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits