/external/kmod/libkmod/ |
D | libkmod-internal.h | 51 const char *format, ...) __attribute__((format(printf, 6, 7))) __attribute__((nonnull(1, 3, 5))); 62 …mod_list_append(struct kmod_list *list, const void *data) _must_check_ __attribute__((nonnull(2))); 63 …od_list_prepend(struct kmod_list *list, const void *data) _must_check_ __attribute__((nonnull(2))); 66 const void *data) _must_check_ __attribute__((nonnull(2))); 69 …list *kmod_list_insert_after(struct kmod_list *list, const void *data) __attribute__((nonnull(2))); 70 …ist *kmod_list_insert_before(struct kmod_list *list, const void *data) __attribute__((nonnull(2))); 88 …struct kmod_ctx *ctx, const char *name, struct kmod_list **list) __attribute__((nonnull(1, 2, 3))); 89 …struct kmod_ctx *ctx, const char *name, struct kmod_list **list) __attribute__((nonnull(1, 2, 3))); 90 …struct kmod_ctx *ctx, const char *name, struct kmod_list **list) __attribute__((nonnull(1, 2, 3))); 91 …struct kmod_ctx *ctx, const char *name, struct kmod_list **list) __attribute__((nonnull(1, 2, 3))); [all …]
|
/external/clang/test/Analysis/ |
D | nonnull.m | 4 - (void)takePointer:(void *)ptr __attribute__((nonnull(1))); argument 5 - (void)takePointerArg:(void *)__attribute__((nonnull)) ptr; argument 12 [obj takePointer:p]; // expected-warning{{nonnull}} 17 // [[nonnull]] is an inherited attribute. 24 [obj takePointer:p]; // expected-warning{{nonnull}} 30 [obj takePointerArg:p]; // expected-warning{{nonnull}} 73 extern void rdar16153464_check(union rdar16153464_pub_ctx_t outer) __attribute((nonnull(1))); 76 rdar16153464_check(0); // expected-warning{{nonnull}} 80 void multipleAttributes_1(char *p, char *q) __attribute((nonnull(1))) __attribute((nonnull(2))); 89 multipleAttributes_1(0, &c); // expected-warning{{nonnull}} [all …]
|
/external/clang/test/Sema/ |
D | nonnull.c | 12 __attribute__((nonnull(1))) void Class_init(Instance this, char *str) { in Class_init() 22 void foo(const char *str) __attribute__((nonnull("foo"))); // expected-error{{'nonnull' attribute r… 23 void bar(int i) __attribute__((nonnull(1))); // expected-warning {{'nonnull' attribute only applies… 25 void baz(__attribute__((nonnull)) const char *str); 26 void baz2(__attribute__((nonnull(1))) const char *str); // expected-warning {{'nonnull' attribute w… 27 void baz3(__attribute__((nonnull)) int x); // expected-warning {{'nonnull' attribute only applies t… 39 int i __attribute__((nonnull)); // expected-warning {{'nonnull' attribute only applies to functions… 49 void PR18795(int (*g)(const char *h, ...) __attribute__((nonnull(1))) __attribute__((nonnull))) { in PR18795() 56 void vararg1(int n, ...) __attribute__((nonnull(2))); 64 void vararg2(int n, ...) __attribute__((nonnull, nonnull, nonnull)); [all …]
|
/external/compiler-rt/test/ubsan/TestCases/Misc/ |
D | nonnull-arg.cpp | 19 C(int *null, __attribute__((nonnull)) int *nonnull) in C() argument 20 : null_(null), nonnull_(nonnull) {} in C() 22 int method(int *nonnull, int *null) __attribute__((nonnull(2))) { in method() argument 23 return *nonnull_ + *nonnull; in method() 27 __attribute__((nonnull)) int func(int *nonnull) { return *nonnull; } in func() argument 30 __attribute__((nonnull)) int variadic(int x, ...) { in variadic() 33 int *nonnull = va_arg(args, int*); in variadic() local 34 int res = *nonnull; in variadic()
|
/external/grpc-grpc/src/objective-c/GRPCClient/private/ |
D | GRPCChannel.h | 31 @property(nonatomic, readonly, nonnull) struct grpc_channel *unmanagedChannel; 40 + (nullable GRPCChannel *)secureChannelWithHost:(nonnull NSString *)host; 46 + (nullable GRPCChannel *)secureCronetChannelWithHost:(nonnull NSString *)host 47 channelArgs:(nonnull NSDictionary *)channelArgs; 53 + (nonnull GRPCChannel *)secureChannelWithHost:(nonnull NSString *)host 55 (nonnull struct grpc_channel_credentials *)credentials 61 + (nonnull GRPCChannel *)insecureChannelWithHost:(nonnull NSString *)host 64 - (nullable grpc_call *)unmanagedCallWithPath:(nonnull NSString *)path 65 serverName:(nonnull NSString *)serverName 67 completionQueue:(nonnull GRPCCompletionQueue *)queue;
|
/external/clang/test/CodeGen/ |
D | nonnull.c | 4 void foo(int * __attribute__((nonnull)) x) { in foo() 9 void bar(int * x) __attribute__((nonnull(1))) { in bar() 14 void bar2(int * x, int * y) __attribute__((nonnull(2))) { in bar2() 25 int bar4(int n, int *p) __attribute__((nonnull)) { in bar4() 30 int bar5(int n, int *p) __attribute__((nonnull(1, 2))) { in bar5() 41 int bar6(TransparentUnion tu) __attribute__((nonnull(1))) { in bar6() 46 void bar7(int *a, int *b) __attribute__((nonnull(1))) in bar7() 47 __attribute__((nonnull(2))) {} in bar7() 50 void bar8(int *a, int *b) __attribute__((nonnull)) in bar8() 51 __attribute__((nonnull(1))) {} in bar8()
|
/external/clang/test/SemaCXX/ |
D | attr-nonnull.cpp | 3 S(const char *) __attribute__((nonnull(2))); 5 static void f(const char*, const char*) __attribute__((nonnull(1))); 9 void g(const char*, const char*, const char*) __attribute__((nonnull(3))); 11 void h(const char*) __attribute__((nonnull(1))); // \ 25 __attribute__((nonnull)) void f0(int *&p); 26 __attribute__((nonnull)) void f1(int * const &p); 27 __attribute__((nonnull(2))) void f2(int i, int * const &p); 36 __attribute__((nonnull(1))) void f(void *ptr); 46 bool operator!=(const void *) const __attribute__((nonnull(2))); 48 bool operator==(const X&, const void *) __attribute__((nonnull(2)));
|
D | nullability.cpp | 79 void *_Nonnull nonnull; in AssignAndInitNonNull() local 80 …nonnull = nullable; // expected-warning{{implicit conversion from nullable pointer 'void * _Nullab… in AssignAndInitNonNull() 81 …nonnull = {nullable}; // expected-warning{{implicit conversion from nullable pointer 'void * _Null… in AssignAndInitNonNull() 84 TakeNonnull(nonnull); // OK in AssignAndInitNonNull() 94 void *_Nonnull nonnull; in AssignAndInitNonNullFromFn() local 95 …nonnull = ReturnNullable(); // expected-warning{{implicit conversion from nullable pointer 'void *… in AssignAndInitNonNullFromFn() 96 …nonnull = {ReturnNullable()}; // expected-warning{{implicit conversion from nullable pointer 'void… in AssignAndInitNonNullFromFn()
|
/external/clang/test/SemaObjC/ |
D | nonnull.m | 1 #include "nonnull.h" 10 int f2(int *x) __attribute__ ((nonnull (1))); 11 int f3(int *x) __attribute__ ((nonnull (0))); // expected-error {{'nonnull' attribute parameter 1 i… 12 int f4(int *x, int *y) __attribute__ ((nonnull (1,2))); 13 int f5(int *x, int *y) __attribute__ ((nonnull (2,1))); 14 int f6(NSObject *x) __attribute__ ((nonnull (1))); // no-warning 15 int f7(NSObject *x) __attribute__ ((nonnull)); // no-warning 18 extern void func1 (void (^block1)(), void (^block2)(), int) __attribute__((nonnull)); 21 __attribute__((nonnull(1,3))); 23 extern void func4 (void (^block1)(), void (^block2)()) __attribute__((nonnull(1))) [all …]
|
D | nullability.m | 35 - (nonnull NSFoo *)methodWithFoo:(nonnull NSFoo *)foo; 37 - (nonnull NSFoo **)invalidMethod1; // expected-error{{nullability keyword 'nonnull' cannot be appl… 39 - (nonnull NSFoo * _Nullable)conflictingMethod1; // expected-error{{nullability specifier '_Nullabl… 40 - (nonnull NSFoo * _Nonnull)redundantMethod1; // expected-warning{{duplicate nullability specifier … 42 @property(nonnull,retain) NSFoo *property1; 46 @property(retain,nonnull) NSFoo * _Nonnull redundantProperty1; // expected-warning{{duplicate nulla… 53 @property(nonnull,retain) NSFoo *property2; category 57 @property(retain,nonnull) NSFoo * _Nonnull redundantProperty2; // expected-warning{{duplicate nulla… 70 // Check returning nil from a nonnull-returning method. 72 - (nonnull NSFoo *)methodWithFoo:(nonnull NSFoo *)foo { [all …]
|
D | override-nullability.m | 7 - (nonnull id)bad:(nullable id)obj; // expected-note 2 {{previous declaration is here}} 8 - (nullable id)notAsBad:(nonnull id)obj; 12 …bad:(nonnull id)obj; // expected-warning {{conflicting nullability specifier on return types, 'nul… 13 …xpected-warning {{conflicting nullability specifier on parameter types, 'nonnull' conflicts with e… 14 - (nonnull id)notAsBad:(nullable id)obj;
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/FunctionAttrs/ |
D | nonnull.ll | 1 ; RUN: opt -S -functionattrs -enable-nonnull-arg-prop %s | FileCheck %s 2 ; RUN: opt -S -passes=function-attrs -enable-nonnull-arg-prop %s | FileCheck %s 4 declare nonnull i8* @ret_nonnull() 6 ; Return a pointer trivially nonnull (call return attribute) 8 ; CHECK: define nonnull i8* @test1 13 ; Return a pointer trivially nonnull (argument attribute) 14 define i8* @test2(i8* nonnull %p) { 15 ; CHECK: define nonnull i8* @test2 19 ; Given an SCC where one of the functions can not be marked nonnull, 20 ; can we still mark the other one which is trivially nonnull [all …]
|
/external/llvm/test/Transforms/FunctionAttrs/ |
D | nonnull.ll | 2 declare nonnull i8* @ret_nonnull() 4 ; Return a pointer trivially nonnull (call return attribute) 6 ; CHECK: define nonnull i8* @test1 11 ; Return a pointer trivially nonnull (argument attribute) 12 define i8* @test2(i8* nonnull %p) { 13 ; CHECK: define nonnull i8* @test2 17 ; Given an SCC where one of the functions can not be marked nonnull, 18 ; can we still mark the other one which is trivially nonnull 26 ; CHECK: define nonnull i8* @test3 33 ; nonnull if neither can ever return null. (In this case, they [all …]
|
/external/kmod/shared/ |
D | util.h | 18 void *memdup(const void *p, size_t n) __attribute__((nonnull(1))); 24 …st char *alias, char buf[static PATH_MAX], size_t *len) _must_check_ __attribute__((nonnull(1,2))); 26 …malize(const char *modname, char buf[static PATH_MAX], size_t *len) __attribute__((nonnull(1, 2))); 27 …h_to_modname(const char *path, char buf[static PATH_MAX], size_t *len) __attribute__((nonnull(2))); 28 bool path_ends_with_kmod_ext(const char *path, size_t len) __attribute__((nonnull(1))); 32 ssize_t read_str_safe(int fd, char *buf, size_t buflen) _must_check_ __attribute__((nonnull(2))); 33 ssize_t write_str_safe(int fd, const char *buf, size_t buflen) __attribute__((nonnull(2))); 34 int read_str_long(int fd, long *value, int base) _must_check_ __attribute__((nonnull(2))); 35 int read_str_ulong(int fd, unsigned long *value, int base) _must_check_ __attribute__((nonnull(2))); 36 char *freadline_wrapped(FILE *fp, unsigned int *linenum) __attribute__((nonnull(1))); [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/ |
D | MMO-flags-assertion.ll | 17 call void @_Z3fn11F(%class.F* byval nonnull align 8 %p1) 18 %call = call signext i32 @_ZN1F11isGlobalRegEv(%class.F* nonnull %p1) 27 call void @llvm.lifetime.start.p0i8(i64 96, i8* nonnull %0) 28 call void @_Z10EmitLValuev(%class.F* nonnull sret %XLValue) 30 call void @llvm.lifetime.start.p0i8(i64 96, i8* nonnull %1) 31 …call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 8 nonnull %1, i8* align 8 nonnull %0, i64 96, i1 fa… 32 call void @_Z3fn11F(%class.F* byval nonnull align 8 %XLValue) 33 %call.i = call signext i32 @_ZN1F11isGlobalRegEv(%class.F* nonnull %agg.tmp1) 34 call void @llvm.lifetime.end.p0i8(i64 96, i8* nonnull %1) 35 call void @llvm.lifetime.end.p0i8(i64 96, i8* nonnull %0)
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/CodeExtractor/ |
D | cost.ll | 11 %tmp2 = tail call i32 @foo(i32* nonnull %arg) 12 %tmp3 = tail call i32 @foo(i32* nonnull %arg) 13 %tmp4 = tail call i32 @foo(i32* nonnull %arg) 14 %tmp5 = tail call i32 @foo(i32* nonnull %arg) 15 %tmp6 = tail call i32 @foo(i32* nonnull %arg) 16 %tmp7 = tail call i32 @foo(i32* nonnull %arg) 32 %tmp2 = tail call i32 @foo(i32* nonnull %arg) 33 %tmp3 = tail call i32 @foo(i32* nonnull %arg) 34 %tmp4 = tail call i32 @foo(i32* nonnull %arg) 35 %tmp5 = tail call i32 @foo(i32* nonnull %arg) [all …]
|
D | cost_meta.ll | 11 %tmp2 = tail call i32 @foo(i32* nonnull %arg) 12 %tmp3 = tail call i32 @foo(i32* nonnull %arg) 13 %tmp4 = tail call i32 @foo(i32* nonnull %arg) 14 %tmp5 = tail call i32 @foo(i32* nonnull %arg) 15 %tmp6 = tail call i32 @foo(i32* nonnull %arg) 16 %tmp7 = tail call i32 @foo(i32* nonnull %arg)
|
/external/grpc-grpc/src/objective-c/GRPCClient/ |
D | GRPCCall+ChannelArg.h | 37 + (void)setUserAgentPrefix:(nonnull NSString *)userAgentPrefix forHost:(nonnull NSString *)host; 40 + (void)setResponseSizeLimit:(NSUInteger)limit forHost:(nonnull NSString *)host; 47 + (void)setDefaultCompressMethod:(GRPCCompressAlgorithm)algorithm forhost:(nonnull NSString *)host; 56 forHost:(nonnull NSString *)host; 61 + (void)enableRetry:(BOOL)enabled forHost:(nonnull NSString *)host; 71 forHost:(nonnull NSString *)host;
|
D | GRPCCall+ChannelArg.m | 27 + (void)setUserAgentPrefix:(nonnull NSString *)userAgentPrefix forHost:(nonnull NSString *)host { 32 + (void)setResponseSizeLimit:(NSUInteger)limit forHost:(nonnull NSString *)host { 41 + (void)setDefaultCompressMethod:(GRPCCompressAlgorithm)algorithm forhost:(nonnull NSString *)host { 61 forHost:(nonnull NSString *)host { 67 + (void)enableRetry:(BOOL)enabled forHost:(nonnull NSString *)host { 75 forHost:(nonnull NSString *)host {
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Thumb/ |
D | frame-access.ll | 34 %call = call i32 @g(i32* nonnull %arraydecay, i32 %a, i32 %b, i32 %c, i32 %d, i32 %e) 58 call void @llvm.va_start(i8* nonnull %1) 60 %call = call i32 @g(i32* nonnull %arraydecay, i32 %a, i32 0, i32 0, i32 0, i32 0) 82 %call = call i32 @g(i32* nonnull %arraydecay, i32 %a, i32 %b, i32 %c, i32 %d, i32 %e) 113 call void @llvm.va_start(i8* nonnull %1) 115 %call = call i32 @g(i32* nonnull %arraydecay, i32 %a, i32 0, i32 0, i32 0, i32 0) 141 %call = call i32 @g(i32* nonnull %vla, i32 %a, i32 %b, i32 %c, i32 %d, i32 %e) 167 call void @llvm.va_start(i8* nonnull %0) 168 %call = call i32 @g(i32* nonnull %vla, i32 %a, i32 0, i32 0, i32 0, i32 0) 193 …%call = call i32 @f(i32* nonnull %arraydecay, i32 %a, i32 %add1, i32 %e, %struct.S* byval nonnull … [all …]
|
/external/grpc-grpc/test/core/util/ |
D | ubsan_suppressions.txt | 2 nonnull-attribute:bn_wexpand 3 nonnull-attribute:CBB_add_bytes 4 nonnull-attribute:rsa_blinding_get 5 nonnull-attribute:ssl_copy_key_material 9 nonnull-attribute:google::protobuf::* 11 nonnull-attribute:_tr_stored_block
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Hexagon/ |
D | memops-stack.ll | 13 call void @foo(i32* nonnull %x) #3 17 call void @foo(i32* nonnull %x) #3 29 call void @foo(i32* nonnull %x) #3 33 call void @foo(i32* nonnull %x) #3 45 call void @foo(i32* nonnull %x) #3 49 call void @foo(i32* nonnull %x) #3 61 call void @foo(i32* nonnull %x) #3 65 call void @foo(i32* nonnull %x) #3 77 call void @foo(i32* nonnull %x) #3 81 call void @foo(i32* nonnull %x) #3 [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LCSSA/ |
D | avoid-intrinsics-in-catchswitch.ll | 31 call void (...) @llvm.localescape(%class.f* nonnull %s, i32* nonnull %status) 40 %call = call %class.f* @"\01??0f@@QEAA@H@Z"(%class.f* nonnull %s, i32 %7) 50 …nonnull %db, i32* nonnull %c, i32 undef, i32* nonnull %r, i8** nonnull %q, i64* nonnull %u, i64* n… 74 call void @"\01??1b@@QEAA@XZ"(%class.b* nonnull %g.i) [ "funclet"(token %14) ] 80 call void @"\01??1b@@QEAA@XZ"(%class.b* nonnull %g.i32) 105 call void @"\01??1b@@QEAA@XZ"(%class.b* nonnull %g.i) 111 call void @"\01??1b@@QEAA@XZ"(%class.b* nonnull %g.i2) [ "funclet"(token %9) ]
|
/external/llvm/test/CodeGen/ARM/ |
D | interval-update-remat.ll | 49 …3MockReadWritejS1_j(%class.StaticSocketDataProvider.6.231.281.1306.2331* nonnull %socket_data, %st… 50 …230.280.1305.2330* @_ZN11MockConnectC1Ev(%struct.MockConnect.5.230.280.1305.2330* nonnull %agg.tmp) 51 …cSocketDataProvider.6.231.281.1306.2331* nonnull %socket_data, %struct.MockConnect.5.230.280.1305.… 52 …N22TestCompletionCallbackC1Ev(%class.TestCompletionCallback.9.234.284.1309.2334* nonnull %callback) 55 …call void @_Z11CmpHelperEQPcS_xx(%class.AssertionResult.24.249.299.1324.2349* nonnull sret %gtest_… 64 …__1_basic_stringIciiE5m_fn1Ev(%class.Trans_NS___1_basic_string.18.243.293.1318.2343* nonnull undef) 69 …2335* @_ZN12AssertHelperC1EPKc(%class.AssertHelper.10.235.285.1310.2335* nonnull %temp.lvalue, i8*… 70 …age.13.238.288.1313.2338* @_ZN7MessageC1Ev(%class.Message.13.238.288.1313.2338* nonnull %agg.tmp10) 71 …(%class.AssertHelper.10.235.285.1310.2335* nonnull %temp.lvalue, %class.Message.13.238.288.1313.23… 82 …5.1310.2335* @_ZN12AssertHelperD1Ev(%class.AssertHelper.10.235.285.1310.2335* nonnull %temp.lvalue) [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/ |
D | interval-update-remat.ll | 49 …3MockReadWritejS1_j(%class.StaticSocketDataProvider.6.231.281.1306.2331* nonnull %socket_data, %st… 50 …230.280.1305.2330* @_ZN11MockConnectC1Ev(%struct.MockConnect.5.230.280.1305.2330* nonnull %agg.tmp) 51 …cSocketDataProvider.6.231.281.1306.2331* nonnull %socket_data, %struct.MockConnect.5.230.280.1305.… 52 …N22TestCompletionCallbackC1Ev(%class.TestCompletionCallback.9.234.284.1309.2334* nonnull %callback) 55 …call void @_Z11CmpHelperEQPcS_xx(%class.AssertionResult.24.249.299.1324.2349* nonnull sret %gtest_… 64 …__1_basic_stringIciiE5m_fn1Ev(%class.Trans_NS___1_basic_string.18.243.293.1318.2343* nonnull undef) 69 …2335* @_ZN12AssertHelperC1EPKc(%class.AssertHelper.10.235.285.1310.2335* nonnull %temp.lvalue, i8*… 70 …age.13.238.288.1313.2338* @_ZN7MessageC1Ev(%class.Message.13.238.288.1313.2338* nonnull %agg.tmp10) 71 …(%class.AssertHelper.10.235.285.1310.2335* nonnull %temp.lvalue, %class.Message.13.238.288.1313.23… 82 …5.1310.2335* @_ZN12AssertHelperD1Ev(%class.AssertHelper.10.235.285.1310.2335* nonnull %temp.lvalue) [all …]
|