Home
last modified time | relevance | path

Searched full:uninitialized (Results 1 – 25 of 6642) sorted by relevance

12345678910>>...266

/aosp_15_r20/external/clang/test/SemaCXX/
H A Duninitialized.cpp22 // 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 …]
/aosp_15_r20/external/compiler-rt/test/msan/
H A Dchained_origin_limits.cc128 // 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 …]
/aosp_15_r20/external/clang/test/Sema/
H A Duninit-variables.c1 // 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 …]
/aosp_15_r20/external/clang/test/Analysis/
H A Duninit-const.c3 // 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 …]
H A Duninit-sometimes.cpp1 // 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 …]
H A Duninit-const.cpp2 // 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 …]
/aosp_15_r20/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
H A DDozeScreenBrightnessTest.java30 import static com.android.systemui.doze.DozeMachine.State.UNINITIALIZED;
168 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testInitialize_setsScreenBrightnessToValidValue_Int()
179 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testInitialize_setsScreenBrightnessToValidValue_Float()
190 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testAod_usesDebugValue_Int()
206 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testAod_usesDebugValue_Float()
229 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testAod_usesLightSensorRespectingUserSetting_Int()
243 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testAod_usesLightSensorRespectingUserSetting_Float()
259 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in initialBrightness_clampsToAutoBrightnessValue_Float()
275 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in initialBrightness_clampsToAutoBrightnessValue_Int()
284 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in doze_doesNotUseLightSensor_Int()
[all …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/optional/doc/
D11_development.qbk21 [*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 …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/clang/Analysis/Analyses/
DUninitializedValues.h1 //=- UninitializedValues.h - Finding uses of uninitialized values -*- C++ -*-=//
9 // 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
65 /// Get the expression containing the uninitialized use.
68 /// The kind of uninitialized use.
70 /// The use might be uninitialized.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/clang/Analysis/Analyses/
DUninitializedValues.h1 //=- UninitializedValues.h - Finding uses of uninitialized values -*- C++ -*-=//
9 // 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
65 /// Get the expression containing the uninitialized use.
68 /// The kind of uninitialized use.
70 /// The use might be uninitialized.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/clang/Analysis/Analyses/
DUninitializedValues.h1 //=- UninitializedValues.h - Finding uses of uninitialized values -*- C++ -*-=//
9 // 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
65 /// Get the expression containing the uninitialized use.
68 /// The kind of uninitialized use.
70 /// The use might be uninitialized.
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/clang/Analysis/Analyses/
DUninitializedValues.h1 //=- UninitializedValues.h - Finding uses of uninitialized values -*- C++ -*-=//
9 // 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
65 /// Get the expression containing the uninitialized use.
68 /// The kind of uninitialized use.
70 /// The use might be uninitialized.
[all …]
/aosp_15_r20/external/clang/include/clang/Analysis/Analyses/
H A DUninitializedValues.h1 //= 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 …]
/aosp_15_r20/external/clang/lib/Analysis/
H A DUninitializedValues.cpp1 //==- 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 …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/optional/test/
Doptional_test.cpp72 // '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 …]
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/move/include/boost/move/algo/detail/
Dmerge_sort.hpp84 , 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 …]
/aosp_15_r20/external/vboot_reference/tests/
H A Dvb2_secdata_kernel_tests.c240 /* 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 …]
H A Dvb2_secdata_firmware_tests.c132 /* 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 …]
/aosp_15_r20/external/clang/lib/StaticAnalyzer/Checkers/
H A DCallAndMessageChecker.cpp121 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 …]
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/doze/
H A DDozeScreenStateTest.java29 import static com.android.systemui.doze.DozeMachine.State.UNINITIALIZED;
111 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testScreen_offInDoze()
119 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testScreen_onInAod()
127 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testScreen_onInPulse()
138 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testScreen_offInRequestPulseWithoutAoD()
148 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testScreen_offInRequestPulseWithAoD()
158 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in testScreen_onInDockedAod()
168 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in test_initialScreenStatePostedToHandler()
184 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in test_noScreenStateSetAfterFinish()
202 mScreen.transitionTo(UNINITIALIZED, INITIALIZED); in test_holdsWakeLockWhenGoingToLowPowerDelayed()
[all …]
H A DDozeSuppressorTest.java27 import static com.android.systemui.doze.DozeMachine.State.UNINITIALIZED;
116 mDozeSuppressor.transitionTo(UNINITIALIZED, INITIALIZED); in testRegistersListenersOnInitialized_unregisteredOnFinish()
130 mDozeSuppressor.transitionTo(UNINITIALIZED, INITIALIZED); in testSuspendTriggersDoze_carMode()
141 mDozeSuppressor.transitionTo(UNINITIALIZED, INITIALIZED); in testSuspendTriggersDoze_enterCarMode()
156 mDozeSuppressor.transitionTo(UNINITIALIZED, INITIALIZED); in testDozeResume_exitCarMode()
171 mDozeSuppressor.transitionTo(UNINITIALIZED, INITIALIZED); in testDozeAoDResume_exitCarMode()
183 mDozeSuppressor.transitionTo(UNINITIALIZED, INITIALIZED); in testUiModeDoesNotChange_noStateTransition()
210 mDozeSuppressor.transitionTo(UNINITIALIZED, INITIALIZED); in testUiModeTypeChange_CarModeEnabledAndDozeMachineNotReady_suspendsTriggersAfter()
221 mDozeSuppressor.transitionTo(UNINITIALIZED, INITIALIZED); in testEndDoze_unprovisioned()
233 mDozeSuppressor.transitionTo(UNINITIALIZED, INITIALIZED); in testEndDoze_hasPendingUnlock()
[all …]
/aosp_15_r20/external/clang/include/clang/AST/
H A DAPValue.h35 /// 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 …]
/aosp_15_r20/external/pytorch/test/nn/
H A Dtest_lazy_modules.py32 # with an uninitialized one
34 with self.assertRaisesRegex(RuntimeError, "shape of an uninitialized"):
36 … # Uninitialized parameters are overriden when the state dict to be loaded contains a valid one
42 # Uninitialized parameters are left unchanged
61 # with an uninitialized one
63 with self.assertRaisesRegex(RuntimeError, "shape of an uninitialized"):
65 … # Uninitialized parameters are overriden when the state dict to be loaded contains a valid one
71 # Uninitialized parameters are left unchanged
103 with self.assertRaisesRegex(RuntimeError, "share memory on an uninitialized"):
111 with self.assertRaisesRegex(RuntimeError, "share memory on an uninitialized"):
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/core/src/mem/
H A Dmaybe_uninit.rs8 /// A wrapper type to construct uninitialized instances of `T`.
31 /// Similarly, entirely uninitialized memory may have any content, while a `bool` must
32 /// always be `true` or `false`. Hence, creating an uninitialized `bool` is undefined behavior:
38 /// let b: bool = unsafe { mem::uninitialized() }; // undefined behavior! ⚠️
43 /// Moreover, uninitialized memory is special in that it does not have a fixed value ("fixed"
44 /// meaning "it won't change without being written to"). Reading the same uninitialized byte
46 /// uninitialized data in a variable even if that variable has an integer type, which otherwise can
53 /// let x: i32 = unsafe { mem::uninitialized() }; // undefined behavior! ⚠️
69 /// `MaybeUninit<T>` serves to enable unsafe code to deal with uninitialized data.
76 /// // Create an explicitly uninitialized reference. The compiler knows that data inside
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/core/src/mem/
H A Dmaybe_uninit.rs8 /// A wrapper type to construct uninitialized instances of `T`.
31 /// Similarly, entirely uninitialized memory may have any content, while a `bool` must
32 /// always be `true` or `false`. Hence, creating an uninitialized `bool` is undefined behavior:
38 /// let b: bool = unsafe { mem::uninitialized() }; // undefined behavior! ⚠️
43 /// Moreover, uninitialized memory is special in that it does not have a fixed value ("fixed"
44 /// meaning "it won't change without being written to"). Reading the same uninitialized byte
46 /// uninitialized data in a variable even if that variable has an integer type, which otherwise can
53 /// let x: i32 = unsafe { mem::uninitialized() }; // undefined behavior! ⚠️
69 /// `MaybeUninit<T>` serves to enable unsafe code to deal with uninitialized data.
76 /// // Create an explicitly uninitialized reference. The compiler knows that data inside
[all …]

12345678910>>...266