HomeSort by relevance Sort by last modified time
    Searched refs:nonnull (Results 1 - 25 of 54) sorted by null

1 2 3

  /external/clang/test/SemaObjC/
nonnull.h 2 #define NONNULL_ATTR __attribute__((nonnull))
  /external/compiler-rt/test/ubsan/TestCases/Misc/
nonnull-arg.cpp 1 // RUN: %clangxx -fsanitize=nonnull-attribute -fno-sanitize-recover=all %s -O3 -o %t
19 C(int *null, __attribute__((nonnull)) int *nonnull)
20 : null_(null), nonnull_(nonnull) {}
22 int method(int *nonnull, int *null) __attribute__((nonnull(2))) {
23 return *nonnull_ + *nonnull;
27 __attribute__((nonnull)) int func(int *nonnull) { return *nonnull; }
33 int *nonnull = va_arg(args, int*); local
    [all...]
  /external/clang/test/CodeGen/
nonnull.c 3 // CHECK: define void @foo(i32* nonnull %x)
4 void foo(int * __attribute__((nonnull)) x) {
8 // CHECK: define void @bar(i32* nonnull %x)
9 void bar(int * x) __attribute__((nonnull(1))) {
13 // CHECK: define void @bar2(i32* %x, i32* nonnull %y)
14 void bar2(int * x, int * y) __attribute__((nonnull(2))) {
19 // CHECK: define nonnull i32* @bar3()
24 // CHECK: define i32 @bar4(i32 %n, i32* nonnull %p)
25 int bar4(int n, int *p) __attribute__((nonnull)) {
29 // CHECK: define i32 @bar5(i32 %n, i32* nonnull %p
    [all...]
catch-undef-behavior.c 1 // RUN: %clang_cc1 -fsanitize=alignment,null,object-size,shift-base,shift-exponent,return,signed-integer-overflow,vla-bound,float-cast-overflow,integer-divide-by-zero,bool,returns-nonnull-attribute,nonnull-attribute -fsanitize-recover=alignment,null,object-size,shift-base,shift-exponent,signed-integer-overflow,vla-bound,float-cast-overflow,integer-divide-by-zero,bool,returns-nonnull-attribute,nonnull-attribute -emit-llvm %s -o - -triple x86_64-linux-gnu | opt -instnamer -S | FileCheck %s --check-prefix=CHECK-COMMON --check-prefix=CHECK-UBSAN
2 // RUN: %clang_cc1 -fsanitize-trap=alignment,null,object-size,shift-base,shift-exponent,return,signed-integer-overflow,vla-bound,float-cast-overflow,integer-divide-by-zero,bool,returns-nonnull-attribute,nonnull-attribute -fsanitize-recover=alignment,null,object-size,shift-base,shift-exponent,signed-integer-overflow,vla-bound,float-cast-overflow,integer-divide-by-zero,bool,returns-nonnull-attribute,nonnull-attribute -fsanitize=alignment,null,object-size,shift-base,shift-exponent,return,signed-integer-overflow,vla-bound,float-cast-overflow,integer-divide-by-zero,bool,returns-nonnull-attribute,nonnull-attribute -fsanitize-recover=alignment,null,object-size,shift-base,shift-exponent,signed-integer-o (…)
    [all...]
  /external/clang/test/SemaCXX/
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)))
    [all...]
nullability.cpp 1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wno-nullability-declspec %s -verify -Wnullable-to-nonnull-conversion
79 void *_Nonnull nonnull; local
80 nonnull = nullable; // expected-warning{{implicit conversion from nullable pointer 'void * _Nullable' to non-nullable pointer type 'void * _Nonnull'}}
81 nonnull = {nullable}; // expected-warning{{implicit conversion from nullable pointer 'void * _Nullable' to non-nullable pointer type 'void * _Nonnull'}}
84 TakeNonnull(nonnull); // OK
94 void *_Nonnull nonnull; local
95 nonnull = ReturnNullable(); // expected-warning{{implicit conversion from nullable pointer 'void * _Nullable' to non-nullable pointer type 'void * _Nonnull'}}
96 nonnull = {ReturnNullable()}; // expected-warning{{implicit conversion from nullable pointer 'void * _Nullable' to non-nullable pointer type 'void * _Nonnull'}}
nonnull.cpp 17 template<typename T> __attribute__((nonnull)) void f(T t);
value-dependent-exprs.cpp 29 __attribute__((nonnull(1 + I)))
cxx11-gnu-attrs.cpp 55 void nonnull [[gnu::nonnull]] (); // expected-warning {{applied to function with no pointer arguments}}
  /external/clang/test/Misc/
attr-source-range.cpp 12 void i(int j) __attribute__((nonnull(1)));
15 void j(__attribute__((nonnull)) int i);
  /external/clang/test/Sema/
nonnull.c 12 __attribute__((nonnull(1))) void Class_init(Instance this, char *str) {
22 void foo(const char *str) __attribute__((nonnull("foo"))); // expected-error{{'nonnull' attribute requires parameter 1 to be an integer constant}}
23 void bar(int i) __attribute__((nonnull(1))); // expected-warning {{'nonnull' attribute only applies to pointer arguments}} expected-warning {{'nonnull' attribute applied to function with no pointer arguments}}
25 void baz(__attribute__((nonnull)) const char *str);
26 void baz2(__attribute__((nonnull(1))) const char *str); // expected-warning {{'nonnull' attribute when used on parameters takes no arguments}}
27 void baz3(__attribute__((nonnull)) int x); // expected-warning {{'nonnull' attribute only applies to pointer arguments}
    [all...]
attr-nonnull.c 5 int *a15, int *a16) __attribute__((nonnull(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)));
7 void f2(void) __attribute__((nonnull())); // expected-warning {{'nonnull' attribute applied to function with no pointer arguments}}
  /external/clang/test/SemaObjCXX/Inputs/
nullability-consistency-2.h 12 @property (retain,nonnull) id property1;
15 - (void)method2:(nonnull SomeClass *)param;
  /external/autotest/client/tests/cyclictest/src/
Makefile 3 FLAGS= -Wall -Wno-nonnull -O2
  /external/clang/test/Parser/
attributes.c 67 int testFundef1(int *a) __attribute__((nonnull(1))) { // \
68 // expected-warning {{GCC does not allow 'nonnull' attribute in this position on a function definition}}
78 int testFundef3(int *a) __attribute__((nonnull(1), // \
79 // expected-warning {{GCC does not allow 'nonnull' attribute in this position on a function definition}}
85 int testFundef4(int *a) __attribute__((nonnull(1))) // \
86 // expected-warning {{GCC does not allow 'nonnull' attribute in this position on a function definition}}
  /ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/
predicate_result.hpp 44 struct dummy { void nonnull() {}; }; function in struct:boost::test_tools::predicate_result::dummy
59 operator safe_bool() const { return !!p_predicate_value ? &dummy::nonnull : 0; }
  /external/clang/test/Analysis/
null-deref-ps.c 88 int bar(int* p, int q) __attribute__((nonnull));
91 return !p ? bar(p, 1) // expected-warning {{Null pointer passed as an argument to a 'nonnull' parameter}}
95 int bar2(int* p, int q) __attribute__((nonnull(1)));
98 return !p ? bar2(p, 1) // expected-warning {{Null pointer passed as an argument to a 'nonnull' parameter}}
102 int bar3(int*p, int q, int *r) __attribute__((nonnull(1,3)));
105 return !p ? bar3(q, 2, p) // expected-warning {{Null pointer passed as an argument to a 'nonnull' parameter}}
285 void pr4759_aux(int *p) __attribute__((nonnull));
uninit-vals-ps.c 85 // PR 4630 - false warning with nonnull attribute
88 // the nonnull attribute.
89 void pr_4630_aux(char *x, int *y) __attribute__ ((nonnull (1)));
  /external/libmicrohttpd/src/testcurl/https/
test_https_get_parallel_threads.c 58 static int nonnull; local
68 return &nonnull;
test_https_get_parallel.c 57 static int nonnull; local
67 return &nonnull;
  /external/parameter-framework/upstream/bindings/c/
ParameterFramework.h 53 * Such arguments are marked NONNULL.
56 #define NONNULL __attribute__((nonnull))
57 #define NONNULL_(...) __attribute__((nonnull(__VA_ARGS__)))
61 // equivalent of nonnull
62 #define NONNULL
149 void pfwDestroy(PfwHandler *handle) NONNULL;
176 const char *pfwGetLastError(const PfwHandler *handle) NONNULL;
195 bool pfwSetCriterion(PfwHandler *handle, const char name[], int value) NONNULL USERESULT;
202 bool pfwGetCriterion(const PfwHandler *handle, const char name[], int *value) NONNULL USERESULT
    [all...]
  /external/clang/test/Analysis/inlining/
inline-defensive-checks.cpp 42 Ty notNullArg(Ty cf) __attribute__((nonnull));
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/X11/
Xfuncproto.h 134 #define _X_NONNULL(args...) __attribute__((nonnull(args)))
  /external/jemalloc/include/jemalloc/
jemalloc_protos.h 17 size_t alignment, size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(nonnull(1));
jemalloc_protos_jet.h 17 size_t alignment, size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(nonnull(1));

Completed in 554 milliseconds

1 2 3