Skip to content

Commit f6eb56d

Browse files
author
Gabor Horvath
committed
Remove redundant check.
1 parent 7c6c9c0 commit f6eb56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/PrintAsClang/PrintClangFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ class CFunctionSignatureTypePrinter
278278
ClangSyntaxPrinter(os).printClangTypeReference(clangDecl);
279279
bool alreadyPointer = false;
280280
if (const auto *typedefDecl = dyn_cast<clang::TypedefNameDecl>(clangDecl))
281-
if (importer::isCFTypeDecl(typedefDecl) && typedefDecl->getName().ends_with("Ref"))
281+
if (importer::isCFTypeDecl(typedefDecl))
282282
alreadyPointer = true;
283283
os << (alreadyPointer ? " " : " *")
284284
<< (!optionalKind || *optionalKind == OTK_None ? "_Nonnull"

0 commit comments

Comments
 (0)