We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c6c9c0 commit f6eb56dCopy full SHA for f6eb56d
lib/PrintAsClang/PrintClangFunction.cpp
@@ -278,7 +278,7 @@ class CFunctionSignatureTypePrinter
278
ClangSyntaxPrinter(os).printClangTypeReference(clangDecl);
279
bool alreadyPointer = false;
280
if (const auto *typedefDecl = dyn_cast<clang::TypedefNameDecl>(clangDecl))
281
- if (importer::isCFTypeDecl(typedefDecl) && typedefDecl->getName().ends_with("Ref"))
+ if (importer::isCFTypeDecl(typedefDecl))
282
alreadyPointer = true;
283
os << (alreadyPointer ? " " : " *")
284
<< (!optionalKind || *optionalKind == OTK_None ? "_Nonnull"
0 commit comments