/external/clang/test/SemaCXX/ |
D | uninitialized.cpp | 22 // uninitialized. 24 int b = b + 1; // expected-warning {{variable 'b' is uninitialized when used within its own initial… 25 int c = (c + c); // expected-warning 2 {{variable 'c' is uninitialized when used within its own ini… 26 int e = static_cast<long>(e) + 1; // expected-warning {{variable 'e' is uninitialized when used wit… 27 int f = foo(f); // expected-warning {{variable 'f' is uninitialized when used within its own initia… 37 int l = k ? l : l; // expected-warning 2{{variable 'l' is uninitialized when used within its own i… 38 int m = 1 + (k ? m : m); // expected-warning 2{{variable 'm' is uninitialized when used within its… 39 int n = -n; // expected-warning {{variable 'n' is uninitialized when used within its own initializ… 40 int o = std::move(o); // expected-warning {{variable 'o' is uninitialized when used within its own … 41 const int p = std::move(p); // expected-warning {{variable 'p' is uninitialized when used within it… [all …]
|
D | uninit-variables.cpp | 30 (void)typeid(*a); // expected-warning{{variable 'a' is uninitialized when used here}} in polymorphic_test() 58 return x; // expected-warning{{variable 'x' is uninitialized when used here}} in test3_c() 66 return a; // expected-warning{{variable 'a' is uninitialized when used here}} in test4() 101 // Don't warn about uninitialized variables in unreachable code. 130 int y = (int&)x; // expected-warning {{uninitialized when used here}} in test_noop_cast2() 141 int y = (float &)x; // expected-warning {{uninitialized when used here}} in test_bitcasts_2() 148 return n; // expected-warning {{uninitialized when used here}} in test_const_ref()
|
/external/compiler-rt/test/msan/ |
D | chained_origin_limits.cc | 128 // CHECK7: WARNING: MemorySanitizer: use-of-uninitialized-value 129 // CHECK7-NOT: Uninitialized value was stored to memory at 130 // CHECK7: Uninitialized value was stored to memory at 131 // CHECK7-NOT: Uninitialized value was stored to memory at 132 // CHECK7: Uninitialized value was stored to memory at 133 // CHECK7-NOT: Uninitialized value was stored to memory at 134 // CHECK7: Uninitialized value was stored to memory at 135 // CHECK7-NOT: Uninitialized value was stored to memory at 136 // CHECK7: Uninitialized value was stored to memory at 137 // CHECK7-NOT: Uninitialized value was stored to memory at [all …]
|
/external/clang/test/Analysis/ |
D | uninit-const.c | 3 // Passing uninitialized const data to function 27 …ToConstInt(tp); // expected-warning {{Function call argument is a pointer to uninitialized value}} in f_1() 28 … // expected-note@-1 {{Function call argument is a pointer to uninitialized value}} in f_1() 35 …oConstInt(tp2); // expected-warning {{Function call argument is a pointer to uninitialized value}} in f_1_1() 36 … // expected-note@-1 {{Function call argument is a pointer to uninitialized value}} in f_1_1() 48 …rToConstInt(tp); // expected-warning {{Function call argument is a pointer to uninitialized value}} in f_2() 49 … // expected-note@-1 {{Function call argument is a pointer to uninitialized value}} in f_2() 65 …ToConstInt(tp); // expected-warning {{Function call argument is a pointer to uninitialized value}} in f_5() 66 … // expected-note@-1 {{Function call argument is a pointer to uninitialized value}} in f_5() 71 …ToConstInt(ta); // expected-warning {{Function call argument is a pointer to uninitialized value}} in f_5_1() [all …]
|
D | uninit-const.cpp | 2 // Passing uninitialized const data to unknown function 69 doStuff6(q); //expected-warning {{Function call argument is an uninitialized value}} in f6_2() 70 //expected-note@-1 {{Function call argument is an uninitialized value}} in f6_2() 81 doStuff6_3(q,ptr); //expected-warning {{Function call argument is an uninitialized value}} in f6_3() 82 //expected-note@-1 {{Function call argument is an uninitialized value}} in f6_3() 88 doStuff6(k); // expected-warning {{Function call argument is an uninitialized value}} in f6() 89 // expected-note@-1 {{Function call argument is an uninitialized value}} in f6() 98 …doStuff_uninit(tp); // expected-warning {{Function call argument is a pointer to uninitialized va… in f5() 99 … // expected-note@-1 {{Function call argument is a pointer to uninitialized value}} in f5() 105 doStuff4(y); // expected-warning {{Function call argument is an uninitialized value}} in f4() [all …]
|
D | uninit-sometimes.cpp | 1 // RUN: %clang_cc1 -std=gnu++11 -Wsometimes-uninitialized -verify %s 2 // RUN: %clang_cc1 -std=gnu++11 -Wsometimes-uninitialized -fdiagnostics-parseable-fixits %s 2>&1 | … 11 return x; // expected-note {{uninitialized use}} in test_if_false() 23 return x; // expected-note {{uninitialized use}} in test_if_true() 39 return x; // expected-note {{uninitialized use}} in test_while_false() 51 return x; // expected-note {{uninitialized use}} in test_while_true() 70 return x; // expected-note {{uninitialized use}} in test_do_while_false() 82 return x; // expected-note {{uninitialized use}} in test_do_while_true() 105 return x; // expected-note {{uninitialized use}} in test_for_false() 120 return x; // expected-note {{uninitialized use}} in test_for_true() [all …]
|
D | objc-subscript.m | 51 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}}
|
D | uninit-vals-ps-region.m | 20 // Test uninitialized value due to part of the structure being uninitialized. 51 …aux(x); // expected-warning{{Passed-by-value struct argument contains uninitialized data (e.g., fi… 59 …[o passVal:x]; // expected-warning{{Passed-by-value struct argument contains uninitialized data (e… 62 // Test case from <rdar://problem/7780304>. That shows an uninitialized value 67 …b.x |= 1; // expected-warning{{The left expression of the compound assignment is an uninitialized … 71 // The flip side of PR10163 -- float arrays that are actually uninitialized 76 test_PR10163(x[1]); // expected-warning{{uninitialized value}}
|
/external/clang/test/Sema/ |
D | uninit-variables.c | 1 // RUN: %clang_cc1 -fsyntax-only -Wuninitialized -Wconditional-uninitialized -fsyntax-only -fblocks… 8 return x; // expected-warning{{variable 'x' is uninitialized when used here}} in test1() 24 ++x; // expected-warning{{variable 'x' is uninitialized when used here}} in test4() 30 x = y; // expected-warning{{variable 'y' is uninitialized when used here}} in test5() 36 x += 2; // expected-warning{{variable 'x' is uninitialized when used here}} in test6() 42 …if (y) // expected-warning{{variable 'x' is used uninitialized whenever 'if' condition is false}} \ in test7() 45 return x; // expected-note{{uninitialized use occurs here}} in test7() 52 // Warn with "may be uninitialized" here (not "is sometimes uninitialized"), in test7b() 55 return x; // expected-warning{{variable 'x' may be uninitialized when used here}} in test7b() 74 return x; // expected-warning{{variable 'x' may be uninitialized when used here}} in test9() [all …]
|
/external/clang/include/clang/Analysis/Analyses/ |
D | UninitializedValues.h | 1 //= UninitializedValues.h - Finding uses of uninitialized values -*- C++ -*-==// 10 // This file defines APIs for invoking and reported uninitialized values 29 /// A use of a variable, which might be uninitialized. 41 /// Is this use uninitialized whenever the function is called? 44 /// Is this use uninitialized whenever the variable declaration is reached? 47 /// Does this use always see an uninitialized value? 50 /// This use is always uninitialized if it occurs after any of these branches 66 /// Get the expression containing the uninitialized use. 69 /// The kind of uninitialized use. 71 /// The use might be uninitialized. [all …]
|
/external/sdv/vsomeip/third_party/boost/optional/doc/ |
D | 11_development.qbk | 21 [*uninitialized]. Its actual value exist but has an ['indeterminate initial value] 25 that access to the value of an uninitialized object is undefined behavior. That 27 the variable is ['formally] uninitialized. A formally uninitialized optional object 29 is formally ['undefined behavior] to try to access the value of an uninitialized 30 optional. An uninitialized optional can be assigned a value, in which case its initialization state… 32 reset an optional to ['uninitialized]. 34 In C++ there is no formal notion of uninitialized objects, which means that 54 uninitialized objects and, while a special extended value can be used to convey 68 possibly uninitialized—objects. 78 * If the variant's current type is not `T`, it is modeling an ['uninitialized] [all …]
|
/external/mesa3d/src/compiler/glsl/tests/warnings/ |
D | 030-array-as-function-parameter.vert.expected | 1 0:11(20): warning: `undefinedIndex' used uninitialized 2 0:11(51): warning: `undefinedIndex' used uninitialized 3 0:11(82): warning: `undefinedIndex' used uninitialized 4 0:11(6): warning: `willBeDefined' used uninitialized 5 0:14(20): warning: `undefinedIndex' used uninitialized 6 0:14(51): warning: `undefinedIndex' used uninitialized 7 0:14(82): warning: `undefinedIndex' used uninitialized
|
D | 028-conditional.vert.expected | 1 0:11(34): warning: `undefinedInt' used uninitialized 2 0:12(21): warning: `undefinedInt' used uninitialized 3 0:14(11): warning: `undefined' used uninitialized 4 0:14(36): warning: `undefinedInt' used uninitialized 5 0:15(11): warning: `undefined' used uninitialized 6 0:15(23): warning: `undefinedInt' used uninitialized
|
D | 019-array.vert.expected | 1 0:13(17): warning: `undefinedIndex' used uninitialized 2 0:17(17): warning: `undefinedIndex' used uninitialized 3 0:17(32): warning: `undefinedIndex2' used uninitialized 4 0:21(8): warning: `undefinedIndex2' used uninitialized 5 0:21(33): warning: `undefinedIndex' used uninitialized
|
/external/sdv/vsomeip/third_party/boost/move/include/boost/move/algo/detail/ |
D | merge_sort.hpp | 84 , RandItRaw uninitialized in merge_sort_uninitialized_copy() argument 92 insertion_sort_uninitialized_copy(first, last, uninitialized, comp); in merge_sort_uninitialized_copy() 96 merge_sort_uninitialized_copy(first + half, last, uninitialized + half, comp); in merge_sort_uninitialized_copy() 97 destruct_n<value_type, RandItRaw> d(uninitialized+half); in merge_sort_uninitialized_copy() 102 , uninitialized, uninitialized+half, uninitialized+count in merge_sort_uninitialized_copy() 110 , RandItRaw uninitialized) in merge_sort() argument 125 merge_sort_uninitialized_copy(half_it, last, uninitialized, comp); in merge_sort() 126 destruct_n<value_type, RandItRaw> d(uninitialized); in merge_sort() 130 ( uninitialized, uninitialized + rest in merge_sort() 191 RandRawIt uninitialized, in stable_sort_adaptive_ONlogN2() argument [all …]
|
/external/vboot_reference/tests/ |
D | vb2_secdata_firmware_tests.c | 132 /* Read/write uninitialized data fails */ in secdata_firmware_test() 136 "Get uninitialized"); in secdata_firmware_test() 137 test_changed(ctx, 0, "Get uninitialized doesn't change data"); in secdata_firmware_test() 140 "Set uninitialized"); in secdata_firmware_test() 141 test_changed(ctx, 0, "Set uninitialized doesn't change data"); in secdata_firmware_test() 143 /* Read/write uninitialized in recovery mode */ in secdata_firmware_test() 146 "Get uninitialized (recmode)"); in secdata_firmware_test() 147 test_changed(ctx, 0, "Get uninitialized (recmode) doesn't change data"); in secdata_firmware_test() 150 test_changed(ctx, 0, "Set uninitialized (recmode) doesn't change data"); in secdata_firmware_test() 156 "Get uninitialized (phase1)"); in secdata_firmware_test() [all …]
|
D | vb2_secdata_kernel_tests.c | 240 /* Read/write uninitialized data fails */ in secdata_kernel_access_test_v10() 243 "Get uninitialized"); in secdata_kernel_access_test_v10() 244 test_changed(ctx, 0, "Get uninitialized doesn't change data"); in secdata_kernel_access_test_v10() 247 "Set uninitialized"); in secdata_kernel_access_test_v10() 248 test_changed(ctx, 0, "Set uninitialized doesn't change data"); in secdata_kernel_access_test_v10() 250 /* Read/write uninitialized in recovery mode */ in secdata_kernel_access_test_v10() 253 "Get uninitialized (recmode)"); in secdata_kernel_access_test_v10() 254 test_changed(ctx, 0, "Get uninitialized (recmode) doesn't change data"); in secdata_kernel_access_test_v10() 257 test_changed(ctx, 0, "Set uninitialized (recmode) doesn't change data"); in secdata_kernel_access_test_v10() 263 "Get uninitialized (phase1)"); in secdata_kernel_access_test_v10() [all …]
|
/external/toolchain-utils/compiler_wrapper/testdata/cros_gcc_host_golden/ |
D | gcc_maincc_target_specific.json | 7 "-Wno-maybe-uninitialized", 32 "-Wno-maybe-uninitialized", 57 "-Wno-maybe-uninitialized", 82 "-Wno-maybe-uninitialized", 107 "-Wno-maybe-uninitialized", 132 "-Wno-maybe-uninitialized", 157 "-Wno-maybe-uninitialized", 182 "-Wno-maybe-uninitialized", 207 "-Wno-maybe-uninitialized",
|
/external/compiler-rt/test/sanitizer_common/TestCases/Posix/ |
D | sanitizer_set_death_callback_test.cc | 19 void MaybeInit(int *uninitialized) { in MaybeInit() argument 21 *uninitialized = 1; in MaybeInit() 30 int uninitialized; in main() local 32 MaybeInit(&uninitialized); in main() 33 if (uninitialized) // trigger msan report. in main()
|
/external/clang/tools/scan-build/man/ |
D | scan-build.1 | 179 … errors for function calls and Objective-C message expressions (e.g., uninitialized arguments, nul… 197 .It core.uninitialized.ArraySubscript 198 Check for uninitialized values used as array subscripts. 199 .It core.uninitialized.Assign 200 Check for assigning uninitialized values. 201 .It core.uninitialized.Branch 202 Check for uninitialized values used as branch conditions. 203 .It core.uninitialized.CapturedBlockVariable 204 Check for blocks that capture uninitialized values. 205 .It core.uninitialized.UndefReturn [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | CallAndMessageChecker.cpp | 121 return "Argument in message expression is an uninitialized value"; in describeUninitializedArgumentInCall() 124 return "Argument for property setter is an uninitialized value"; in describeUninitializedArgumentInCall() 127 return "Argument for subscript setter is an uninitialized value"; in describeUninitializedArgumentInCall() 128 return "Subscript index is an uninitialized value"; in describeUninitializedArgumentInCall() 133 return "Block call argument is an uninitialized value"; in describeUninitializedArgumentInCall() 135 return "Function call argument is an uninitialized value"; in describeUninitializedArgumentInCall() 155 // pointing to undefined symbol value (uninitialized memory). in uninitRefOrPointer() 159 Message = "Function call argument is a pointer to uninitialized value"; in uninitRefOrPointer() 161 Message = "Function call argument is an uninitialized value"; in uninitRefOrPointer() 197 const char *BD = "Uninitialized argument value"; in PreVisitProcessArg() [all …]
|
/external/sdv/vsomeip/third_party/boost/optional/test/ |
D | optional_test.cpp | 72 // 'def' state is Uninitialized. in test_basics() 94 // Value-Assignment upon Uninitialized optional. in test_basics() 139 // Uninitializing Assignment upon Uninitialized Optional in test_basics() 155 // Deinitialization of Uninitialized Optional in test_basics() 280 // Test Uninitialized access assert 292 // This should throw because 'def' is uninitialized in test_uninitialized_access() 303 // This should throw because 'def' is uninitialized in test_uninitialized_access() 316 // This should throw because 'def' is uninitialized in test_uninitialized_access() 326 // This should throw because 'def' is uninitialized in test_uninitialized_access() 386 // Test Value Assignment to an Uninitialized optional for a T with a throwing copy-ctor [all …]
|
/external/clang/include/clang/AST/ |
D | APValue.h | 35 /// APValue - This class implements a discriminated union of [uninitialized] 43 Uninitialized, enumerator 120 APValue() : Kind(Uninitialized) {} in APValue() 121 explicit APValue(APSInt I) : Kind(Uninitialized) { in APValue() 124 explicit APValue(APFloat F) : Kind(Uninitialized) { in APValue() 127 explicit APValue(const APValue *E, unsigned N) : Kind(Uninitialized) { in APValue() 130 APValue(APSInt R, APSInt I) : Kind(Uninitialized) { in APValue() 133 APValue(APFloat R, APFloat I) : Kind(Uninitialized) { in APValue() 137 APValue(APValue &&RHS) : Kind(Uninitialized) { swap(RHS); } in APValue() 139 : Kind(Uninitialized) { in APValue() [all …]
|
/external/clang/lib/Analysis/ |
D | UninitializedValues.cpp | 1 //==- UninitializedValues.cpp - Find Uninitialized Values -------*- C++ --*-==// 10 // This file implements uninitialized values analysis for source-level CFGs. 93 Uninitialized = 0x2, /* 10 */ enumerator 97 return v >= Uninitialized; in isUninitialized() 100 return v == Uninitialized; in isAlwaysUninit() 421 // whether a variable is uninitialized, and there's no point counting it as a in VisitBinaryOperator() 477 // Squelch any detected load of an uninitialized value if in VisitCastExpr() 486 // Transfer function for uninitialized values analysis. 534 // the variable, we can say something stronger than 'may be uninitialized': in getUninitUse() 535 // we can say 'either it's used uninitialized or you have dead code'. in getUninitUse() [all …]
|
/external/toolchain-utils/compiler_wrapper/testdata/cros_nonhardened_golden/ |
D | gcc_maincc_target_specific.json | 9 "-Wno-maybe-uninitialized", 43 "-Wno-maybe-uninitialized", 77 "-Wno-maybe-uninitialized", 111 "-Wno-maybe-uninitialized", 145 "-Wno-maybe-uninitialized", 178 "-Wno-maybe-uninitialized", 212 "-Wno-maybe-uninitialized", 246 "-Wno-maybe-uninitialized", 279 "-Wno-maybe-uninitialized",
|