Home
last modified time | relevance | path

Searched refs:nullability (Results 1 – 25 of 49) 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/apache-http/api/
Dlint-baseline.txt11 Missing nullability on method `getCause` return
13 Missing nullability on parameter `key` in method `containsKey`
15 Missing nullability on parameter `b` in method `read`
17 Missing nullability on parameter `b` in method `read`
19 Missing nullability on parameter `b` in method `read`
21 Missing nullability on parameter `b` in method `read`
23 Missing nullability on parameter `b` in method `write`
25 Missing nullability on parameter `src` in method `write`
27 Missing nullability on parameter `b` in method `read`
29 Missing nullability on parameter `b` in method `read`
[all …]
/external/conscrypt/api/platform/
Dlint-baseline.txt7 Missing nullability on parameter `bindpoint` in method `bind`
9 Missing nullability on method `getChannel` return
11 Missing nullability on method `getInetAddress` return
13 Missing nullability on method `getInputStream` return
15 Missing nullability on method `getLocalAddress` return
17 Missing nullability on method `getLocalSocketAddress` return
19 Missing nullability on method `getOutputStream` return
21 Missing nullability on method `getRemoteSocketAddress` return
/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.
Dblock-omitted-return-type.m16 …void (^simpleBlock2)() = ^ _Nonnull void { //expected-error {{nullability specifier '_Nonnull' can…
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}}
/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/Analysis/
Dnullability_nullonly.mm1 … %clang_cc1 -analyze -fobjc-arc -analyzer-checker=core,nullability.NullPassedToNonnull,nullability
2 …-arc -analyzer-checker=core,nullability.NullPassedToNonnull,nullability.NullReturnedFromNonnull -a…
4 #include "Inputs/system-header-simulator-for-nullability.h"
Dnullability.mm1 // RUN: %clang_cc1 -fblocks -analyze -analyzer-checker=core,nullability -DNOSYSTEMHEADERS=0 -verify…
2 …UN: %clang_cc1 -fblocks -analyze -analyzer-checker=core,nullability -analyzer-config nullability:N…
4 #include "Inputs/system-header-simulator-for-nullability.h"
489 // Test to make sure the analyzer doesn't warn when an a nullability invariant
Dnullability-no-arc.mm1 // RUN: %clang_cc1 -analyze -analyzer-checker=core,nullability -verify %s
/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/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">;
/external/v8/src/wasm/
Dvalue-type.h187 static constexpr ValueType Ref(uint32_t heap_type, Nullability nullability) { in Ref() argument
190 KindField::encode(nullability == kNullable ? kOptRef : kRef) | in Ref()
193 static constexpr ValueType Ref(HeapType heap_type, Nullability nullability) { in Ref() argument
194 return Ref(heap_type.representation(), nullability); in Ref()
/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/angle/src/libANGLE/renderer/metal/
DBUILD.gn89 "-Wno-nullability-completeness",
/external/clang/lib/AST/
DDeclPrinter.cpp1015 if (auto nullability = AttributedType::stripOuterNullability(T)) in PrintObjCMethodType() local
1016 Out << getNullabilitySpelling(*nullability, true) << ' '; in PrintObjCMethodType()
1306 if (auto nullability = AttributedType::stripOuterNullability(T)) { in VisitObjCPropertyDecl() local
1307 if (*nullability == NullabilityKind::Unspecified && in VisitObjCPropertyDecl()
1313 << getNullabilitySpelling(*nullability, true); in VisitObjCPropertyDecl()
DASTDiagnostic.cpp76 if (auto nullability = AttributedType::stripOuterNullability(SugarRT)) { in Desugar() local
78 AttributedType::getNullabilityAttrKind(*nullability), RT, RT); in Desugar()
87 if (auto nullability = in Desugar() local
90 AttributedType::getNullabilityAttrKind(*nullability), PT, PT); in Desugar()
/external/clang/lib/Sema/
DSemaType.cpp3218 IdentifierInfo *Sema::getNullabilityKeyword(NullabilityKind nullability) { in getNullabilityKeyword() argument
3219 switch (nullability) { in getNullabilityKeyword()
5812 NullabilityKind nullability, in checkNullabilityTypeSpecifier() argument
5838 if (nullability == *existingNullability) { in checkNullabilityTypeSpecifier()
5840 << DiagNullabilityKind(nullability, isContextSensitive) in checkNullabilityTypeSpecifier()
5848 << DiagNullabilityKind(nullability, isContextSensitive) in checkNullabilityTypeSpecifier()
5861 if (nullability != *existingNullability) { in checkNullabilityTypeSpecifier()
5863 << DiagNullabilityKind(nullability, isContextSensitive) in checkNullabilityTypeSpecifier()
5886 << DiagNullabilityKind(nullability, isContextSensitive) << type; in checkNullabilityTypeSpecifier()
5899 << DiagNullabilityKind(nullability, true) in checkNullabilityTypeSpecifier()
[all …]
DSemaObjCProperty.cpp2217 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)) { in ProcessPropertyDecl() local
2218 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl()
2291 if (auto nullability = AttributedType::stripOuterNullability(modifiedTy)){ in ProcessPropertyDecl() local
2292 if (*nullability == NullabilityKind::Unspecified) in ProcessPropertyDecl()
2471 if (auto nullability = PropertyTy->getNullability(Context)) { in CheckObjCPropertyAttributes() local
2472 if (*nullability == NullabilityKind::NonNull) in CheckObjCPropertyAttributes()

12