Page MenuHomePhabricator

[analyzer] [WIP] Opt-in C Style Cast Checker for OSObject pointers
ClosedPublic

Authored by george.karpenkov on Jan 25 2019, 3:01 PM.

Diff Detail

Repository
rC Clang

Event Timeline

NoQ accepted this revision.Jan 25 2019, 5:31 PM

It sounds to me that for now you're only emitting a warning when a *literally* OSObject is being casted, i.e. not a sub-class to an even more specific sub-class. Is this intended?

clang/lib/StaticAnalyzer/Checkers/OSObjectCStyleCast.cpp
20 ↗(On Diff #183630)

Was this left around accidentally?

This revision is now accepted and ready to land.Jan 25 2019, 5:31 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2019, 1:09 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript