Home
last modified time | relevance | path

Searched refs:nonnull (Results 1 – 25 of 72) sorted by relevance

123

/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/
H A Dnonnull-1.c8 extern void func1 (char *, char *, int) __attribute__((nonnull));
10 extern void func2 (char *, char *) __attribute__((nonnull(1)));
13 __attribute__((nonnull(1,3)));
15 extern void func4 (char *, char *) __attribute__((nonnull(1)))
16 __attribute__((nonnull(2)));
H A Dnonnull-2.c5 extern void func1 () __attribute__((nonnull)); /* { dg-error "without arguments" } */
7 extern void func2 (char *) __attribute__((nonnull(2))); /* { dg-error "out-of-range operand" } */
9 extern void func3 (char *) __attribute__((nonnull(foo))); /* { dg-error "invalid operand number" } …
11 extern void func4 (int) __attribute__((nonnull(1))); /* { dg-error "references non-pointer" } */
/openbsd-src/gnu/gcc/gcc/
H A Dbuiltin-attrs.def88 DEF_ATTR_IDENT (ATTR_NONNULL, "nonnull")
122 /* Functions whose pointer parameter(s) are all nonnull. */
124 /* Functions whose first parameter is a nonnull pointer. */
126 /* Functions whose second parameter is a nonnull pointer. */
131 /* Nothrow functions whose pointer parameter(s) are all nonnull. */
134 /* Nothrow functions whose first parameter is a nonnull pointer. */
137 /* Nothrow functions whose second parameter is a nonnull pointer. */
140 /* Nothrow functions whose third parameter is a nonnull pointer. */
143 /* Nothrow functions whose fourth parameter is a nonnull pointer. */
146 /* Nothrow functions whose fifth parameter is a nonnull pointer. */
[all …]
/openbsd-src/gnu/llvm/clang/docs/analyzer/developer-docs/
H A Dnullability.rst16 …p`` gets implicitly converted into nonnull pointer, for example, we are passing it to a function t…
32 **2) nonnull**
34 * Dereferencing a nonnull, or sending message to it is ok.
35 * Converting nonnull to nullable is Ok.
36 * When there is an explicit cast from nonnull to nullable I will trust the cast (it is probable the…
62 …* Even though the method might return a nonnull pointer, when it was sent to a nullable pointer th…
65 * Sending a message to a unspecified or nonnull pointer
74 …tly inside an inlined body. For example, consider these conversions from nonnull to nullable in pr…
86 …t view of the nullability of the same symbol). So the symbol will remain nonnull to avoid false po…
104 …gion a qualifier information would be attached which is either nullable, nonnull or null unspecifi…
[all …]
/openbsd-src/bin/pax/
H A Dextern.h296 __attribute__((nonnull(1), format(printf, 1, 2)));
299 __attribute__((nonnull(2), format(printf, 2, 3)));
301 __attribute__((nonnull(3), format(printf, 3, 4)));
/openbsd-src/gnu/llvm/compiler-rt/lib/ubsan/
H A Dubsan_checks.inc64 "returns-nonnull-attribute")
67 UBSAN_CHECK(InvalidNullArgument, "invalid-null-argument", "nonnull-attribute")
/openbsd-src/gnu/usr.bin/perl/regen/
H A Dembed.pl107 my @nonnull;
232 push( @nonnull, $n ) if $nn;
302 my $macro = grep($_ == $pat, @nonnull)
/openbsd-src/gnu/gcc/gcc/cp/
H A Dclass.c239 int nonnull) in build_base_path() argument
290 fixed_type_p = resolves_to_fixed_type_p (expr, &nonnull); in build_base_path()
297 if (want_pointer && !nonnull) in build_base_path()
495 convert_to_base (tree object, tree type, bool check_access, bool nonnull) in convert_to_base() argument
514 return build_base_path (PLUS_EXPR, object, binfo, nonnull); in convert_to_base()
5253 fixed_type_or_null (tree instance, int* nonnull, int* cdtorp) in fixed_type_or_null() argument
5262 nonnull, cdtorp); in fixed_type_or_null()
5268 if (nonnull) in fixed_type_or_null()
5269 *nonnull = 1; in fixed_type_or_null()
5278 if (nonnull) in fixed_type_or_null()
[all …]
H A Drtti.c290 int nonnull = 0; in build_typeid() local
301 && ! resolves_to_fixed_type_p (exp, &nonnull) in build_typeid()
302 && ! nonnull) in build_typeid()
/openbsd-src/gnu/usr.bin/gcc/gcc/cp/
H A Dclass.c249 build_base_path (code, expr, binfo, nonnull) in build_base_path() argument
253 int nonnull;
296 fixed_type_p = resolves_to_fixed_type_p (expr, &nonnull);
300 if (want_pointer && !nonnull)
5558 fixed_type_or_null (instance, nonnull, cdtorp) in fixed_type_or_null() argument
5560 int *nonnull;
5570 nonnull, cdtorp);
5576 if (nonnull)
5577 *nonnull = 1;
5586 if (nonnull)
[all …]
H A Drtti.c258 int nonnull = 0; local
269 && ! resolves_to_fixed_type_p (exp, &nonnull)
270 && ! nonnull)
/openbsd-src/sys/dev/pci/drm/i915/
H A Di915_request.h443 __attribute__((nonnull(1)));
448 __attribute__((nonnull(1)));
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DFixedMetadataKinds.def25 LLVM_FIXED_MD_KIND(MD_nonnull, "nonnull", 11)
H A DAttributes.td161 def NonNull : EnumAttr<"nonnull", [ParamAttr, RetAttr]>;
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DSanitizers.def92 SANITIZER("nonnull-attribute", NonnullAttribute)
102 SANITIZER("returns-nonnull-attribute", ReturnsNonnullAttribute)
/openbsd-src/gnu/llvm/clang/lib/Headers/
H A D__clang_hip_math.h73 uint64_t __make_mantissa_base8(const char *__tagp __attribute__((nonnull))) {
90 uint64_t __make_mantissa_base10(const char *__tagp __attribute__((nonnull))) {
107 uint64_t __make_mantissa_base16(const char *__tagp __attribute__((nonnull))) {
128 uint64_t __make_mantissa(const char *__tagp __attribute__((nonnull))) {
359 float nanf(const char *__tagp __attribute__((nonnull))) {
/openbsd-src/gnu/usr.bin/gcc/gcc/f/
H A Dlex.c240 static int nonnull; in ffelex_backslash_() local
271 nonnull = 0; in ffelex_backslash_()
384 nonnull = 1; in ffelex_backslash_()
390 if (! nonnull) in ffelex_backslash_()
556 int nonnull; in ffelex_cfebackslash_() local
565 nonnull = 0; in ffelex_cfebackslash_()
582 nonnull = 1; in ffelex_cfebackslash_()
584 if (! nonnull) in ffelex_cfebackslash_()
/openbsd-src/sys/dev/pci/drm/include/drm/
H A Ddrm_gem.h510 __attribute__((nonnull))
/openbsd-src/sys/dev/pci/drm/i915/gem/
H A Di915_gem_object.h133 __attribute__((nonnull))
141 __attribute__((nonnull))
/openbsd-src/usr.sbin/unbound/
H A Dltmain.sh5915 static const char *nonnull (const char *s);
6141 nonnull (lt_argv_zero));
6145 i, nonnull (newargz[i]));
6161 lt_argv_zero, nonnull (strerror (errno)));
6317 nonnull (strerror (errno)));
6343 nonnull (strerror (errno)));
6395 tmp_pathspec, nonnull (strerror (errno)));
6471 nonnull (const char *s)
6479 return (s && !*s) ? "(empty)" : nonnull (s);
6487 nonnull (nam
[all...]
/openbsd-src/gnu/llvm/llvm/utils/vim/syntax/
H A Dllvm.vim134 \ nonnull
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dbuiltin-attrs.def90 DEF_ATTR_IDENT (ATTR_NONNULL, "nonnull")
/openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Checkers/
H A DCheckerBase.td151 /// nonnull attribute, and StdLibraryFunctionsChecker as it models standard
/openbsd-src/gnu/llvm/clang/docs/
H A DUndefinedBehaviorSanitizer.rst123 - ``-fsanitize=nonnull-attribute``: Passing null pointer as a function
150 - ``-fsanitize=returns-nonnull-attribute``: Returning null pointer
/openbsd-src/gnu/llvm/llvm/docs/
H A DExceptionHandling.rst608 %call = invoke %struct.Cleanup* @"??0Cleanup@@QEAA@XZ"(%struct.Cleanup* nonnull %obj)
616 call void @"??_DCleanup@@QEAA@XZ"(%struct.Cleanup* nonnull %obj) nounwind
625 call void @"??1Cleanup@@QEAA@XZ"(%struct.Cleanup* nonnull %obj) nounwind

123