diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2026-01-10 11:21:56 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2026-01-10 11:21:56 +0000 |
| commit | 3e481a3afe1344dbb4a0960f34fc89dcdc9f1d61 (patch) | |
| tree | 9606cd4f686746a547bf31ba2a72777952aacf01 /clang/lib/ExtractAPI/DeclarationFragments.cpp | |
| parent | 294ba569803972323a64670451a82af53c660541 (diff) | |
Diffstat (limited to 'clang/lib/ExtractAPI/DeclarationFragments.cpp')
| -rw-r--r-- | clang/lib/ExtractAPI/DeclarationFragments.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/ExtractAPI/DeclarationFragments.cpp b/clang/lib/ExtractAPI/DeclarationFragments.cpp index 791afc1a9757..00138c14ddcc 100644 --- a/clang/lib/ExtractAPI/DeclarationFragments.cpp +++ b/clang/lib/ExtractAPI/DeclarationFragments.cpp @@ -636,7 +636,10 @@ DeclarationFragmentsBuilder::getFragmentsForParam(const ParmVarDecl *Param) { DeclarationFragments::FragmentKind::InternalParam); } else { Fragments.append(std::move(TypeFragments)); - if (!T->isAnyPointerType() && !T->isBlockPointerType()) + // If the type is a type alias, append the space + // even if the underlying type is a pointer type. + if (T->isTypedefNameType() || + (!T->isAnyPointerType() && !T->isBlockPointerType())) Fragments.appendSpace(); Fragments .append(Param->getName(), |
