[analyzer] Teach RetainCountChecker about CoreMedia APIs
authorDevin Coughlin <dcoughlin@apple.com>
Sat, 25 Nov 2017 14:57:42 +0000 (14:57 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Sat, 25 Nov 2017 14:57:42 +0000 (14:57 +0000)
commitcc5915a5e15d098952605556b2b7a75632fb41e3
treef05a5ff589a30db450500626fc9f27b41201ad0b
parent67e60434c30e9a53cf8c994a4c97a689732cfc8f
[analyzer] Teach RetainCountChecker about CoreMedia APIs

Teach the retain-count checker that CoreMedia reference types use
CoreFoundation-style reference counting. This enables the checker
to catch leaks and over releases of those types.

rdar://problem/33599757

llvm-svn: 318979
clang/lib/Analysis/CocoaConventions.cpp
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
clang/test/Analysis/retain-release.m