Implement the 'null_resettable' attribute for Objective-C properties.
authorDouglas Gregor <dgregor@apple.com>
Fri, 19 Jun 2015 18:14:46 +0000 (18:14 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 19 Jun 2015 18:14:46 +0000 (18:14 +0000)
commit849ebc269fe17def169c812f929746cb98955664
tree5866b34d318c220f0fb7b078164e0710e72f7ea8
parent813a066f16df52783708fdc2ef708bb76a9ff521
Implement the 'null_resettable' attribute for Objective-C properties.

'null_resettable' properties are those whose getters return nonnull
but whose setters take nil, to "reset" the property to some
default. Implements rdar://problem/19051334.

llvm-svn: 240155
clang/include/clang/AST/DeclObjC.h
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/include/clang/Sema/DeclSpec.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/DeclPrinter.cpp
clang/lib/Parse/ParseObjc.cpp
clang/lib/Sema/SemaDeclObjC.cpp
clang/lib/Sema/SemaObjCProperty.cpp
clang/test/SemaObjC/nullability.m