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.
2 parents 9f94fd1 + 490021f commit ba78dbbCopy full SHA for ba78dbb
lib/ClangImporter/ImportDecl.cpp
@@ -7680,7 +7680,7 @@ void ClangImporter::Implementation::importAttributes(
7680
// Ban CFRelease|CFRetain|CFAutorelease(CFTypeRef) as well as custom ones
7681
// such as CGColorRelease(CGColorRef).
7682
if (auto FD = dyn_cast<clang::FunctionDecl>(ClangDecl)) {
7683
- if (FD->getNumParams() == 1 &&
+ if (FD->getNumParams() == 1 && FD->getDeclName().isIdentifier() &&
7684
(FD->getName().endswith("Release") ||
7685
FD->getName().endswith("Retain") ||
7686
FD->getName().endswith("Autorelease")) &&
0 commit comments