[clang] Fix/172072 auto function param (PR #172092)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 13 13:24:20 PST 2025
================
@@ -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
More information about the cfe-commits
mailing list