summaryrefslogtreecommitdiff
path: root/include/clang/Basic/Specifiers.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2015-06-19 18:14:38 +0000
committerDouglas Gregor <dgregor@apple.com>2015-06-19 18:14:38 +0000
commite3a960065dd25adbb9ce2ef49194afd791132db5 (patch)
treefaedc6da3308d5e97bf314a4eb01d2cb5f4d54d4 /include/clang/Basic/Specifiers.h
parent1bfd760890a3349d7350ae87e53f9700e1e924f8 (diff)
downloadclang-e3a960065dd25adbb9ce2ef49194afd791132db5.tar.gz
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
Diffstat (limited to 'include/clang/Basic/Specifiers.h')
-rw-r--r--include/clang/Basic/Specifiers.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/Specifiers.h b/include/clang/Basic/Specifiers.h
index 2a872b277e..5ce56c0ee1 100644
--- a/include/clang/Basic/Specifiers.h
+++ b/include/clang/Basic/Specifiers.h
@@ -16,6 +16,7 @@
#ifndef LLVM_CLANG_BASIC_SPECIFIERS_H
#define LLVM_CLANG_BASIC_SPECIFIERS_H
+#include "llvm/ADT/StringRef.h"
#include "llvm/Support/DataTypes.h"
namespace clang {
@@ -254,6 +255,9 @@ namespace clang {
/// though it has been considered.
Unspecified
};
+
+ /// Retrieve the spelling of the given nullability kind.
+ llvm::StringRef getNullabilitySpelling(NullabilityKind kind);
} // end namespace clang
#endif // LLVM_CLANG_BASIC_SPECIFIERS_H