llvm-project/clang/lib
Artem Dergachev e69d2e47e5 [analyzer] Detect ObjC properties that are both (copy) and Mutable.
When an Objective-C property has a (copy) attribute, the default setter
for this property performs a -copy on the object assigned.

Calling -copy on a mutable NS object such as NSMutableString etc.
produces an immutable object, NSString in our example.
Hence the getter becomes type-incorrect.

rdar://problem/21022397

Differential Revision: https://reviews.llvm.org/D27535

llvm-svn: 289554
2016-12-13 17:19:18 +00:00
..
ARCMigrate Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 10:39:27 +00:00
AST Add two new AST nodes to represent initialization of an array in terms of 2016-12-12 02:53:20 +00:00
ASTMatchers [ASTMatcher] Add hasReplacementType matcher for SubstTemplateTypeParmType 2016-12-08 11:46:22 +00:00
Analysis [StaticAnalysis] Remove unnecessary parameter in CallGraphNode::addCallee. 2016-12-12 14:12:10 +00:00
Basic Add support for non-zero null pointer for C and OpenCL 2016-12-09 19:01:11 +00:00
CodeGen Update for clang after llvm::StringLiteral. 2016-12-13 17:10:16 +00:00
Driver [CrashReproducer] Collect PCH included via -include-pch 2016-12-12 19:28:25 +00:00
Edit [OpenCL] Generate opaque type for sampler_t and function call for the initializer 2016-07-28 19:26:30 +00:00
Format clang-format: Keep string-literal-label + value pairs on a line. 2016-12-13 11:16:42 +00:00
Frontend Revert "[Modules] Make header inclusion order from umbrella dirs deterministic" 2016-12-12 23:22:30 +00:00
FrontendTool C++ Modules TS: add frontend support for building pcm files from module 2016-08-26 00:14:38 +00:00
Headers Revert "[Headers] Add #include_next for tgmath.h on Darwin" 2016-12-12 23:06:58 +00:00
Index [index] Rename SymbolSubKind -> SymbolProperty, NFC. 2016-11-11 23:49:55 +00:00
Lex [CrashReproducer] Collect headermap files 2016-12-11 04:27:28 +00:00
Parse Remove special error recovery for ::(id) 2016-12-09 21:10:43 +00:00
Rewrite [analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last) 2016-10-07 19:25:10 +00:00
Sema Improve handling of floating point literals in OpenCL to only use double precision if the target supports fp64. 2016-12-13 16:22:50 +00:00
Serialization Add two new AST nodes to represent initialization of an array in terms of 2016-12-12 02:53:20 +00:00
StaticAnalyzer [analyzer] Detect ObjC properties that are both (copy) and Mutable. 2016-12-13 17:19:18 +00:00
Tooling Remove deprecated methods ast_matchers::BoundNodes::{getStmtAs,getDeclAs} 2016-12-13 16:19:34 +00:00
CMakeLists.txt