[PATCH] D55076: [analyzer] RetainCountChecker: recognize that OSObject can be created directly using an operator "new"
George Karpenkov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 30 12:38:32 PST 2018
george.karpenkov marked an inline comment as done.
george.karpenkov added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Core/RetainSummaryManager.cpp:483-497
case CE_Function:
Summ = getFunctionSummary(cast<SimpleFunctionCall>(Call).getDecl());
break;
case CE_CXXMember:
Summ = getFunctionSummary(cast<CXXMemberCall>(Call).getDecl());
break;
case CE_CXXMemberOperator:
----------------
NoQ wrote:
> It's actually just `Call.getDecl()` and you can turn this into a fall-through.
Call.getDecl() returns a Decl (gotta love Obj-C methods!).
I guess we can group all those cases, and cast the returned decl to FunctionDecl instead of casting the call.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55076/new/
https://reviews.llvm.org/D55076
More information about the cfe-commits
mailing list