This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Model another special-case kind of cast for OSObject RetainCountChecker
ClosedPublic

Authored by george.karpenkov on Jan 18 2019, 5:33 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ accepted this revision.Jan 18 2019, 6:08 PM
NoQ added inline comments.
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp
882–883 ↗(On Diff #182651)

Was it checked previously that the function with the metaCast/safeMetaCast name is indeed a member function and that it takes at least one argument? Otherwise it'd crash.

This revision is now accepted and ready to land.Jan 18 2019, 6:08 PM
george.karpenkov marked an inline comment as done.Jan 22 2019, 11:28 AM
george.karpenkov added inline comments.
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp
882–883 ↗(On Diff #182651)

That's a good point.

This revision was automatically updated to reflect the committed changes.