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 1a7cbf1 commit 27db3adCopy full SHA for 27db3ad
clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp
@@ -456,8 +456,10 @@ class RetainPtrCtorAdoptChecker
456
if (InnerExpr)
457
*InnerExpr = CE;
458
if (auto *Callee = CE->getDirectCallee()) {
459
- auto CalleeName = Callee->getName();
460
- return CalleeName.starts_with("alloc");
+ if (Callee->getDeclName().isIdentifier()) {
+ auto CalleeName = Callee->getName();
461
+ return CalleeName.starts_with("alloc");
462
+ }
463
}
464
465
return false;
0 commit comments