Home
last modified time | relevance | path

Searched refs:uninitialized (Results 1 – 25 of 164) sorted by relevance

1234567

/llvm-project-15.0.7/clang/test/Sema/
H A Dattr-uninitialized.c4 int dont_initialize_me __attribute((uninitialized)); in good()
8 …int im_bad __attribute((uninitialized("zero"))); // expected-error {{'uninitialized' attribute ta… in bad()
9 …static int im_baaad __attribute((uninitialized)); // expected-warning {{'uninitialized' attribute … in bad()
12 extern int come_on __attribute((uninitialized)); // expected-warning {{'uninitia…
13 int you_know __attribute((uninitialized)); // expected-warning {{'uninitia…
14 static int and_the_whole_world_has_to __attribute((uninitialized)); // expected-warning {{'uninitia…
16 void answer_right_now(void) __attribute((uninitialized)) {} // expected-warn… in answer_right_now()
17 void just_to_tell_you_once_again(__attribute((uninitialized)) int whos_bad) {} // expected-warning … in just_to_tell_you_once_again()
20 …__attribute((uninitialized)) int youre_doin_wrong; // expected-warning {{'uninitialized' attribute…
21 } __attribute((uninitialized)); // expected-warning {{'uninitialized' attribut…
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Posix/
H A Dsanitizer_set_death_callback_test.cpp23 void MaybeInit(int *uninitialized) { in MaybeInit() argument
25 *uninitialized = 1; in MaybeInit()
37 int uninitialized; in main() local
39 MaybeInit(&uninitialized); in main()
40 if (uninitialized) // trigger msan report. in main()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/clang-analyzer/
H A Dcore.uninitialized.ArraySubscript.rst1 .. title:: clang-tidy - clang-analyzer-core.uninitialized.ArraySubscript
3 …:http-equiv=refresh: 5;URL=https://clang.llvm.org/docs/analyzer/checkers.html#core-uninitialized-a…
5 clang-analyzer-core.uninitialized.ArraySubscript
8 The clang-analyzer-core.uninitialized.ArraySubscript check is an alias, please see
9 …ble Checkers <https://clang.llvm.org/docs/analyzer/checkers.html#core-uninitialized-arraysubscript…
H A Dcore.uninitialized.UndefReturn.rst1 .. title:: clang-tidy - clang-analyzer-core.uninitialized.UndefReturn
3 …:http-equiv=refresh: 5;URL=https://clang.llvm.org/docs/analyzer/checkers.html#core-uninitialized-u…
5 clang-analyzer-core.uninitialized.UndefReturn
8 The clang-analyzer-core.uninitialized.UndefReturn check is an alias, please see
9 …able Checkers <https://clang.llvm.org/docs/analyzer/checkers.html#core-uninitialized-undefreturn>`_
H A Dcore.uninitialized.Assign.rst1 .. title:: clang-tidy - clang-analyzer-core.uninitialized.Assign
3 …:http-equiv=refresh: 5;URL=https://clang.llvm.org/docs/analyzer/checkers.html#core-uninitialized-a…
5 clang-analyzer-core.uninitialized.Assign
8 The clang-analyzer-core.uninitialized.Assign check is an alias, please see
9 …Available Checkers <https://clang.llvm.org/docs/analyzer/checkers.html#core-uninitialized-assign>`_
H A Dcore.uninitialized.Branch.rst1 .. title:: clang-tidy - clang-analyzer-core.uninitialized.Branch
3 …:http-equiv=refresh: 5;URL=https://clang.llvm.org/docs/analyzer/checkers.html#core-uninitialized-b…
5 clang-analyzer-core.uninitialized.Branch
8 The clang-analyzer-core.uninitialized.Branch check is an alias, please see
9 …Available Checkers <https://clang.llvm.org/docs/analyzer/checkers.html#core-uninitialized-branch>`_
H A Dcore.uninitialized.CapturedBlockVariable.rst1 .. title:: clang-tidy - clang-analyzer-core.uninitialized.CapturedBlockVariable
3 clang-analyzer-core.uninitialized.CapturedBlockVariable
6 Check for blocks that capture uninitialized values
/llvm-project-15.0.7/clang/test/Analysis/
H A Dobjc-subscript.m51 if (o[self]) // expected-warning {{Subscript access on an uninitialized object pointer}}
54 if (o[0]) // expected-warning {{Subscript access on an uninitialized object pointer}}
66 self[0] = o; // expected-warning {{Argument for subscript setter is an uninitialized value}}
69 self[i] = input; // expected-warning {{Subscript index is an uninitialized value}}
72 (void)self[i]; // expected-warning {{Subscript index is an uninitialized value}}
75 self[input] = o; // expected-warning {{Argument for subscript setter is an uninitialized value}}
78 self[o] = input; // expected-warning {{Subscript index is an uninitialized value}}
81 (void)self[o]; // expected-warning {{Subscript index is an uninitialized value}}
H A Dobjcpp-uninitialized-object.mm7 myBlock z; // expected-note{{uninitialized field 'this->z'}}
12 …StructWithBlock(int pA) : a(pA) {} // expected-warning{{1 uninitialized field at the end of the co…
26 id z; // expected-note{{uninitialized pointer 'this->z'}}
27 …StructWithId() : a(0) {} // expected-warning{{1 uninitialized field at the end of the constructor …
H A Duninit-vals.m29 // Test uninitialized value due to part of the structure being uninitialized.
63 …aux(x); // expected-warning{{Passed-by-value struct argument contains uninitialized data (e.g., fi…
72 …[o passVal:x]; // expected-warning{{Passed-by-value struct argument contains uninitialized data (e…
73 …// expected-note@-1{{Passed-by-value struct argument contains uninitialized data (e.g., field: 'x'…
76 // Test case from <rdar://problem/7780304>. That shows an uninitialized value
86 // The flip side of PR10163 -- float arrays that are actually uninitialized
90 test_PR10163(x[1]); // expected-warning{{uninitialized value}}
91 // expected-note@-1{{1st function call argument is an uninitialized value}}
270 // This generated an "uninitialized 'size' field" warning for a (short) while.
299 useInt(b.y); // expected-warning{{uninitialized}}
[all …]
H A Dctu-on-demand-parsing.c71 int uninitialized; in testImplicit() local
72 h(uninitialized); // expected-warning{{1st function call argument is an uninitialized value}} in testImplicit()
H A Dcall-and-message.m67 …return [aString length]; // expected-warning {{Receiver in message expression is an uninitialized
84 …if (y && o.x) // expected-warning {{Property access on an uninitialized object pointer [core.CallA…
92 …return o; // expected-warning {{Undefined or garbage value returned to caller [core.uninitialized.…
119 …if (o[self]) // expected-warning {{Subscript access on an uninitialized object pointer [core.CallA…
122 …if (o[0]) // expected-warning {{Subscript access on an uninitialized object pointer [core.CallAn…
H A Dctu-main.c85 int uninitialized; in testImplicit() local
86 h(uninitialized); // newctu-warning{{1st function call argument is an uninitialized value}} in testImplicit()
H A Dexceptions.mm17 int a; // uninitialized
31 int a; // uninitialized
H A Dunions-region.m11 // false positive of a 'pass-by-value argument is uninitialized'
34 // false positive of a 'pass-by-value argument is uninitialized'
H A Dmalloc.m11 // the check that malloc() returns uninitialized memory.
32 …579586(buffer->str_c); // expected-warning {{1st function call argument is an uninitialized value}}
H A Dmisc-ps.c176 int uninitialized; in sinkAfterRegularNode() local
177 context->callback(uninitialized); // expected-warning {{uninitialized}} in sinkAfterRegularNode()
/llvm-project-15.0.7/llvm/test/Verifier/
H A Dallockind.ll9 ; CHECK: 'allockind("free")' doesn't allow uninitialized, zeroed, or aligned modifiers.
12 ; CHECK: 'allockind()' can't be both zeroed and uninitialized
13 declare i8* @d(i32, i32*) allockind("realloc,uninitialized,zeroed")
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dtrivial-auto-var-init-attribute.cpp21 [[clang::uninitialized]] int i; in test_attribute_uninitialized()
25 #pragma clang attribute push([[clang::uninitialized]], apply_to = variable(is_local))
/llvm-project-15.0.7/clang/test/Parser/
H A Dpragma-attribute.cpp183 #pragma clang attribute push([[clang::uninitialized]], apply_to = variable(is_local))
185 #pragma clang attribute push([[clang::uninitialized]], apply_to = function) // expected-error {{att…
187 #pragma clang attribute push([[clang::uninitialized]], apply_to = variable) // expected-error {{att…
189 #pragma clang attribute push([[clang::uninitialized]], apply_to = variable(is_thread_local)) // exp…
191 #pragma clang attribute push([[clang::uninitialized]], apply_to = variable(is_global)) // expected-…
193 #pragma clang attribute push([[clang::uninitialized]], apply_to = any(variable(is_parameter), varia…
207 #pragma clang attribute push([[clang::uninitialized]], apply_to=any) // expected-error {{expected '…
208 #pragma clang attribute push([[clang::uninitialized]], apply_to = any()) // expected-error {{expect…
/llvm-project-15.0.7/compiler-rt/test/msan/
H A Ddtls_test.c31 long uninitialized; in Thread1() local
35 *x = uninitialized; in Thread1()
/llvm-project-15.0.7/compiler-rt/lib/cfi/
H A Dcfi_ignorelist.txt3 # uninitialized T* (libstdc++, MSVC stdlib).
15 # This ctor is used by std::make_shared and needs to cast to uninitialized T*
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dout-of-tree-allocator-optimizes-away.ll18 …ust_alloc(i64, i64 allocalign) nounwind allocsize(0) allockind("alloc,uninitialized,aligned") "all…
20 …ptr, i64, i64 allocalign, i64) nounwind allocsize(3) allockind("alloc,uninitialized,aligned") "all…
/llvm-project-15.0.7/clang/docs/
H A DMemorySanitizer.rst11 MemorySanitizer is a detector of uninitialized reads. It consists of a
56 WARNING: MemorySanitizer: use-of-uninitialized-value
83 attribute ``no_sanitize("memory")`` to disable uninitialized checks in a
102 checks for certain source files and functions. All "Use of uninitialized value"
118 MemorySanitizer can track origins of uninitialized values, similar to
140 WARNING: MemorySanitizer: use-of-uninitialized-value
153 intermediate stores the uninitialized value went through. Origin
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Duninit-variables.m18 return x; // expected-warning{{variable 'x' is uninitialized when used here}}
55 return x; // expected-warning {{variable 'x' is uninitialized when used here}}

1234567