Go to file
Devin Coughlin 3075134739 [analyzer] ObjCDeallocChecker: Only operate on classes with retained properties.
Previously the ObjC Dealloc Checker only checked classes with ivars, not
retained properties, which caused three bugs:

- False positive warnings about a missing -dealloc method in classes with only
ivars.
- Missing warnings about a missing -dealloc method on classes with only
properties.
- Missing warnings about an over-released or under-released ivar associated with
a retained property in classes with only properties.

The fix is to check only classes with at least one retained synthesized
property.

This also exposed a bug when reporting an over-released or under-released
property that did not contain a synthesize statement. The checker tried to
associate the warning with an @synthesize statement that did not exist, which
caused an assertion failure in debug builds. The fix is to fall back to the
@property statement in this case.

A patch by David Kilzer!

Part of rdar://problem/6927496

Differential Revision: http://reviews.llvm.org/D5023

llvm-svn: 258896
2016-01-27 01:41:58 +00:00
clang [analyzer] ObjCDeallocChecker: Only operate on classes with retained properties. 2016-01-27 01:41:58 +00:00
clang-tools-extra Fix Clang-tidy modernize-use-override warning in unittests/clang-tidy/IncludeInserterTest.cpp; other minor fixes. 2016-01-26 22:32:24 +00:00
compiler-rt Sync up with master file 2016-01-27 00:14:15 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc AMDGPU: Add aliases for all VI targets 2015-12-15 18:37:04 +00:00
libcxx Fix broken commit r258888. I missed adding two pointer conversions 2016-01-27 00:49:20 +00:00
libcxxabi [libcxxabi] Teach cxa_demangle about Hexagon's long double size 2016-01-20 14:10:23 +00:00
libunwind Replace cmake check for printf with a check for fopen. 2015-12-10 00:47:08 +00:00
lld Fix Clang-tidy modernize-use-nullptr warnings in include/lld/Core/range.h; other minor fixes. 2016-01-26 18:27:37 +00:00
lldb Revert r258546. 2016-01-26 17:43:48 +00:00
llgo [llgo] Force exporting __morestack from llgoi 2015-11-27 04:46:46 +00:00
llvm [WebAssembly] Add a test for the mem-intrinsic code in WebAssemblyPeephole.cpp 2016-01-27 01:37:52 +00:00
openmp [OMPT]: Fix the order of implicit_task_end_events 2016-01-26 21:45:21 +00:00
polly Unique phi write accesses 2016-01-26 13:33:27 +00:00