[PATCH] D39711: [analyzer] ObjCGenerics: Don't warn on cast conversions involving explicit cast
Devin Coughlin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 6 18:32:57 PST 2017
dcoughlin created this revision.
Herald added a subscriber: szepet.
The ObjCGenerics checker warns on a cast when there is no subtyping relationship
between the tracked type of the value and the destination type of the cast. It
does this even if the cast was explicitly written. This means the user can't
write an explicit cast to silence the diagnostic.
This patch changes diagnostic emission to allow an explicit cast to silence
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 100517 bytes
Desc: not available
More information about the cfe-commits