]> granicus.if.org Git - clang/commit
Extend type nullability qualifiers for Objective-C.
authorDouglas Gregor <dgregor@apple.com>
Fri, 19 Jun 2015 18:14:38 +0000 (18:14 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 19 Jun 2015 18:14:38 +0000 (18:14 +0000)
commite3a960065dd25adbb9ce2ef49194afd791132db5
treefaedc6da3308d5e97bf314a4eb01d2cb5f4d54d4
parent1bfd760890a3349d7350ae87e53f9700e1e924f8
Extend type nullability qualifiers for Objective-C.

Introduce context-sensitive, non-underscored nullability specifiers
(nonnull, nullable, null_unspecified) for Objective-C method return
types, method parameter types, and properties.

Introduce Objective-C-specific semantics, including computation of the
nullability of the result of a message send, merging of nullability
information from the @interface of a class into its @implementation,
etc .

This is the Objective-C part of rdar://problem/18868820.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240154 91177308-0d34-0410-b5e6-96231b3b80d8
30 files changed:
include/clang/AST/ASTContext.h
include/clang/AST/DeclBase.h
include/clang/AST/DeclObjC.h
include/clang/Basic/DiagnosticCommonKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Basic/Specifiers.h
include/clang/Parse/Parser.h
include/clang/Sema/AttributeList.h
include/clang/Sema/DeclSpec.h
include/clang/Sema/Sema.h
lib/AST/ASTImporter.cpp
lib/AST/DeclObjC.cpp
lib/AST/DeclPrinter.cpp
lib/Basic/IdentifierTable.cpp
lib/Parse/ParseObjc.cpp
lib/Parse/Parser.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclObjC.cpp
lib/Sema/SemaExprObjC.cpp
lib/Sema/SemaObjCProperty.cpp
lib/Sema/SemaType.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriterDecl.cpp
test/Index/comment-objc-decls.m
test/SemaObjC/arc-property-decl-attrs.m
test/SemaObjC/arc-unavailable-for-weakref.m
test/SemaObjC/nullability.m
test/SemaObjC/nullable-weak-property.m [new file with mode: 0644]
test/SemaObjC/override-nullability.m [new file with mode: 0644]