Home
last modified time | relevance | path

Searched refs:nullability (Results 1 – 25 of 37) sorted by relevance

12

/external/clang/test/SemaObjCXX/
Dnullability-consistency.mm1 // RUN: %clang_cc1 -fsyntax-only -fblocks -I %S/Inputs -isystem %S/Inputs/nullability-consistency-s…
2 // RUN: %clang_cc1 -fsyntax-only -fblocks -I %S/Inputs -isystem %S/Inputs/nullability-consistency-s…
4 #include "nullability-consistency-1.h"
5 #include "nullability-consistency-3.h"
6 #include "nullability-consistency-4.h"
7 #include "nullability-consistency-5.h"
8 #include "nullability-consistency-5.h"
9 #include "nullability-consistency-6.h"
10 #include "nullability-consistency-7.h"
11 #include "nullability-consistency-8.h"
[all …]
Dnullability-pragmas.mm3 #include "nullability-pragmas-1.h"
4 #include "nullability-pragmas-2.h"
5 #include "nullability-pragmas-generics-1.h"
16 f1(0); // okay: no nullability annotations
/external/clang/test/SemaObjC/
Dnullability.m1 // RUN: %clang_cc1 -fsyntax-only -fblocks -Woverriding-method-mismatch -Wno-nullability-declspec %s…
17 // Conflicts from nullability moving into Objective-C pointer type.
32 // Context-sensitive keywords and property attributes for nullability.
37 - (nonnull NSFoo **)invalidMethod1; // expected-error{{nullability keyword 'nonnull' cannot be appl…
38 // expected-note@-1{{use nullability type specifier '_Nonnull' to affect the innermost pointer type…
39 - (nonnull NSFoo * _Nullable)conflictingMethod1; // expected-error{{nullability specifier '_Nullabl…
40 - (nonnull NSFoo * _Nonnull)redundantMethod1; // expected-warning{{duplicate nullability specifier …
43 @property(nullable,assign) NSFoo ** invalidProperty1; // expected-error{{nullability keyword 'nulla…
44 // expected-note@-1{{use nullability type specifier '_Nullable' to affect the innermost pointer typ…
45 …ied,retain) NSFoo * _Nullable conflictingProperty1; // expected-error{{nullability specifier '_Nul…
[all …]
Doverride-nullability.m12 - (nullable id)bad:(nonnull id)obj; // expected-warning {{conflicting nullability specifier on retu…
13 …// expected-warning {{conflicting nullability specifier on parameter types, 'nonnull' conflicts wi…
Dnullability-arc.m7 // ARC qualifiers stacked with nullability.
Dparameterized_classes_subst.m117 …error{{type parameter 'ViewType' bound 'NSView * _Nullable' cannot explicitly specify nullability}}
134 …ullControl2; // expected-error{{type argument 'NSControl *' cannot explicitly specify nullability}}
Dkindof.m294 // __kindof + nullability
/external/clang/docs/analyzer/
Dnullability.rst48 …t warn about any nullability issues in that branch? Probably not, it is ok to break the nullabilit…
57 …- If the pointer is not assumed to be nil, we should be optimistic and use the nullability implied…
73nullability information from the arguments after inlining is not robust enough (for example there …
78nullability qualifiers would be needed to be tracked for each symbol. This is not a big caveat, si…
91 - Unannotated pointers are treated the same way as pointers annotated with nullability unspecified …
92 … a callback for entry points to top level functions, where the pointer nullability assumptions wou…
/external/clang/test/Parser/
Dnullability.c10 #if !__has_feature(nullability)
14 #if !__has_extension(nullability)
/external/clang/test/Sema/
Dnon-null-warning.c4 #if __has_feature(nullability)
6 # error nullability feature should be defined
Dnullability.c3 #if __has_feature(nullability)
5 # error nullability feature should be defined
/external/clang/test/SemaCXX/
Dnullability.cpp3 #if __has_feature(nullability)
5 # error nullability feature should be defined
/external/clang/test/Analysis/
Dnullability_nullonly.mm1 // RUN: %clang_cc1 -analyze -analyzer-checker=core,nullability.NullPassedToNonnull,nullability.Null…
Dnullability.mm1 // RUN: %clang_cc1 -analyze -analyzer-checker=core,nullability -verify %s
/external/chromium-trace/catapult/third_party/closure_linter/closure_linter/
Dtypeannotation.py215 nullability = sub_type.GetNullability()
216 if nullability == self.NULLABILITY_UNKNOWN:
217 maybe_nullable = nullability
218 elif nullability:
/external/clang/include/clang/Basic/
DDiagnosticCommonKinds.td109 "duplicate nullability specifier %0">,
113 "conflicting nullability specifier on return types, %0 "
118 "conflicting nullability specifier on parameter types, %0 "
123 "nullability specifier %0 conflicts with existing specifier %1">;
DAttrDocs.td1648nullability attributes indicate whether a particular pointer can be null or not, which makes APIs …
1650nullability (type) qualifiers express whether a value of a given pointer type can be null (the ``_…
1665 In Objective-C, there is an alternate spelling for the nullability qualifiers that can be used in O…
1680 The ``_Nonnull`` nullability qualifier indicates that null is not a meaningful value for a value of…
1693 The ``_Nullable`` nullability qualifier indicates that a value of the ``_Nullable`` pointer type ca…
1706nullability qualifier indicates that neither the ``_Nonnull`` nor ``_Nullable`` qualifiers make se…
DDiagnosticGroups.td265 def Nullability : DiagGroup<"nullability">;
266 def NullabilityDeclSpec : DiagGroup<"nullability-declspec">;
268 def NullabilityCompleteness : DiagGroup<"nullability-completeness">;
/external/clang/lib/Basic/
DDiagnostic.cpp28 DiagNullabilityKind nullability) { in operator <<() argument
30 switch (nullability.first) { in operator <<()
32 string = nullability.second ? "'nonnull'" : "'_Nonnull'"; in operator <<()
36 string = nullability.second ? "'nullable'" : "'_Nullable'"; in operator <<()
40 string = nullability.second ? "'null_unspecified'" : "'_Null_unspecified'"; in operator <<()
/external/clang/lib/AST/
DDeclPrinter.cpp997 if (auto nullability = AttributedType::stripOuterNullability(T)) in PrintObjCMethodType() local
998 Out << getNullabilitySpelling(*nullability, true) << ' '; in PrintObjCMethodType()
1288 if (auto nullability = AttributedType::stripOuterNullability(T)) { in VisitObjCPropertyDecl() local
1289 if (*nullability == NullabilityKind::Unspecified && in VisitObjCPropertyDecl()
1295 << getNullabilitySpelling(*nullability, true); in VisitObjCPropertyDecl()
DASTDiagnostic.cpp75 if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) { in Desugar() local
77 AttributedType::getNullabilityAttrKind(*nullability), RT, RT); in Desugar()
86 if (auto nullability = in Desugar() local
89 AttributedType::getNullabilityAttrKind(*nullability), PT, PT); in Desugar()
/external/clang/lib/Sema/
DSemaType.cpp2981 IdentifierInfo *Sema::getNullabilityKeyword(NullabilityKind nullability) { in getNullabilityKeyword() argument
2982 switch (nullability) { in getNullabilityKeyword()
5502 NullabilityKind nullability, in checkNullabilityTypeSpecifier() argument
5528 if (nullability == *existingNullability) { in checkNullabilityTypeSpecifier()
5530 << DiagNullabilityKind(nullability, isContextSensitive) in checkNullabilityTypeSpecifier()
5538 << DiagNullabilityKind(nullability, isContextSensitive) in checkNullabilityTypeSpecifier()
5551 if (nullability != *existingNullability) { in checkNullabilityTypeSpecifier()
5553 << DiagNullabilityKind(nullability, isContextSensitive) in checkNullabilityTypeSpecifier()
5576 << DiagNullabilityKind(nullability, isContextSensitive) << type; in checkNullabilityTypeSpecifier()
5589 << DiagNullabilityKind(nullability, true) in checkNullabilityTypeSpecifier()
[all …]
DSemaObjCProperty.cpp2143 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) { in ProcessPropertyDecl() local
2144 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl()
2213 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){ in ProcessPropertyDecl() local
2214 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl()
2386 if (auto nullability = PropertyTy->getNullability(Context)) { in CheckObjCPropertyAttributes() local
2387 if (*nullability == NullabilityKind::NonNull) in CheckObjCPropertyAttributes()
DSemaExprObjC.cpp1256 if (auto nullability = AttributedType::stripOuterNullability(T)) { in stripObjCInstanceType() local
1259 AttributedType::getNullabilityAttrKind(*nullability), in stripObjCInstanceType()
1293 if (auto nullability = Method->getSendResultType(ReceiverType) in getBaseMessageSendResultType() local
1300 AttributedType::getNullabilityAttrKind(*nullability), in getBaseMessageSendResultType()
1359 if (auto nullability = ReceiverType->getNullability(Context)) in getMessageSendResultType() local
1360 receiverNullabilityIdx = 1 + static_cast<unsigned>(*nullability); in getMessageSendResultType()
1363 if (auto nullability = resultType->getNullability(Context)) in getMessageSendResultType() local
1364 resultNullabilityIdx = 1 + static_cast<unsigned>(*nullability); in getMessageSendResultType()
/external/clang/lib/Parse/
DParseObjc.cpp395 NullabilityKind nullability, in addContextSensitiveTypeNullability() argument
401 P.getNullabilityKeyword(nullability), in addContextSensitiveTypeNullability()
831 NullabilityKind nullability, in diagnoseRedundantPropertyNullability() argument
833 if (DS.getNullability() == nullability) { in diagnoseRedundantPropertyNullability()
835 << DiagNullabilityKind(nullability, true) in diagnoseRedundantPropertyNullability()
841 << DiagNullabilityKind(nullability, true) in diagnoseRedundantPropertyNullability()

12