Lines Matching refs:t
58 A t; in checkThatConstMethodWithoutDefinitionDoesNotInvalidateObject() local
59 t.x = 3; in checkThatConstMethodWithoutDefinitionDoesNotInvalidateObject()
60 t.foo(); in checkThatConstMethodWithoutDefinitionDoesNotInvalidateObject()
61 clang_analyzer_eval(t.x == 3); // expected-warning{{TRUE}} in checkThatConstMethodWithoutDefinitionDoesNotInvalidateObject()
63 t.bar(); in checkThatConstMethodWithoutDefinitionDoesNotInvalidateObject()
64 clang_analyzer_eval(t.x); // expected-warning{{UNKNOWN}} in checkThatConstMethodWithoutDefinitionDoesNotInvalidateObject()
68 B t; in checkThatConstMethodDoesInvalidateMutableFields() local
69 t.mut = 4; in checkThatConstMethodDoesInvalidateMutableFields()
70 t.foo(); in checkThatConstMethodDoesInvalidateMutableFields()
71 clang_analyzer_eval(t.mut); // expected-warning{{UNKNOWN}} in checkThatConstMethodDoesInvalidateMutableFields()
76 C t; in checkThatConstMethodDoesInvalidatePointedAtMemory() local
77 t.p = &x; in checkThatConstMethodDoesInvalidatePointedAtMemory()
78 t.foo(); in checkThatConstMethodDoesInvalidatePointedAtMemory()
80 clang_analyzer_eval(t.p == &x); // expected-warning{{TRUE}} in checkThatConstMethodDoesInvalidatePointedAtMemory()
84 MutDerived t; in checkThatConstMethodDoesInvalidateInheritedMutableFields() local
85 t.b_mut = 4; in checkThatConstMethodDoesInvalidateInheritedMutableFields()
86 t.foo(); in checkThatConstMethodDoesInvalidateInheritedMutableFields()
87 clang_analyzer_eval(t.b_mut); // expected-warning{{UNKNOWN}} in checkThatConstMethodDoesInvalidateInheritedMutableFields()
92 PDerived t; in checkThatConstMethodDoesInvalidateInheritedPointedAtMemory() local
93 t.p = &x; in checkThatConstMethodDoesInvalidateInheritedPointedAtMemory()
94 t.foo(); in checkThatConstMethodDoesInvalidateInheritedPointedAtMemory()
96 clang_analyzer_eval(t.p == &x); // expected-warning{{TRUE}} in checkThatConstMethodDoesInvalidateInheritedPointedAtMemory()
101 Outer t; in checkThatConstMethodDoesInvalidateContainedPointedAtMemory() local
102 t.x = 2; in checkThatConstMethodDoesInvalidateContainedPointedAtMemory()
103 t.in.p = &x; in checkThatConstMethodDoesInvalidateContainedPointedAtMemory()
104 t.foo(); in checkThatConstMethodDoesInvalidateContainedPointedAtMemory()
106 clang_analyzer_eval(t.x == 2); // expected-warning{{TRUE}} in checkThatConstMethodDoesInvalidateContainedPointedAtMemory()
107 clang_analyzer_eval(t.in.p == &x); // expected-warning{{TRUE}} in checkThatConstMethodDoesInvalidateContainedPointedAtMemory()
111 Outer t; in checkThatContainedConstMethodDoesNotInvalidateObjects() local
112 t.x = 1; in checkThatContainedConstMethodDoesNotInvalidateObjects()
113 t.in.x = 2; in checkThatContainedConstMethodDoesNotInvalidateObjects()
114 t.in.bar(); in checkThatContainedConstMethodDoesNotInvalidateObjects()
115 clang_analyzer_eval(t.x == 1); // expected-warning{{TRUE}} in checkThatContainedConstMethodDoesNotInvalidateObjects()
116 clang_analyzer_eval(t.in.x == 2); // expected-warning{{TRUE}} in checkThatContainedConstMethodDoesNotInvalidateObjects()
164 D1 t; in checkThatInheritedConstMethodDoesNotInvalidateObject() local
165 t.x = 1; in checkThatInheritedConstMethodDoesNotInvalidateObject()
166 t.foo(); in checkThatInheritedConstMethodDoesNotInvalidateObject()
167 clang_analyzer_eval(t.x == 1); // expected-warning{{TRUE}} in checkThatInheritedConstMethodDoesNotInvalidateObject()
171 D2 t; in checkThatInheritedConstMethodDoesInvalidateMutableFields() local
172 t.mut = 1; in checkThatInheritedConstMethodDoesInvalidateMutableFields()
173 t.foo(); in checkThatInheritedConstMethodDoesInvalidateMutableFields()
174 clang_analyzer_eval(t.mut); // expected-warning{{UNKNOWN}} in checkThatInheritedConstMethodDoesInvalidateMutableFields()
179 D3 t; in checkThatInheritedConstMethodDoesInvalidatePointedAtMemory() local
180 t.p = &x; in checkThatInheritedConstMethodDoesInvalidatePointedAtMemory()
181 t.foo(); in checkThatInheritedConstMethodDoesInvalidatePointedAtMemory()
183 clang_analyzer_eval(t.p == &x); // expected-warning{{TRUE}} in checkThatInheritedConstMethodDoesInvalidatePointedAtMemory()
188 DOuter t; in checkThatInheritedConstMethodDoesInvalidateContainedPointedAtMemory() local
189 t.x = 2; in checkThatInheritedConstMethodDoesInvalidateContainedPointedAtMemory()
190 t.in.x = 3; in checkThatInheritedConstMethodDoesInvalidateContainedPointedAtMemory()
191 t.in.p = &x; in checkThatInheritedConstMethodDoesInvalidateContainedPointedAtMemory()
192 t.foo(); in checkThatInheritedConstMethodDoesInvalidateContainedPointedAtMemory()
194 clang_analyzer_eval(t.x == 2); // expected-warning{{TRUE}} in checkThatInheritedConstMethodDoesInvalidateContainedPointedAtMemory()
195 clang_analyzer_eval(t.in.x == 3); // expected-warning{{TRUE}} in checkThatInheritedConstMethodDoesInvalidateContainedPointedAtMemory()
196 clang_analyzer_eval(t.in.p == &x); // expected-warning{{TRUE}} in checkThatInheritedConstMethodDoesInvalidateContainedPointedAtMemory()
200 DOuter t; in checkThatInheritedContainedConstMethodDoesNotInvalidateObjects() local
201 t.x = 1; in checkThatInheritedContainedConstMethodDoesNotInvalidateObjects()
202 t.in.x = 2; in checkThatInheritedContainedConstMethodDoesNotInvalidateObjects()
203 t.in.foo(); in checkThatInheritedContainedConstMethodDoesNotInvalidateObjects()
204 clang_analyzer_eval(t.x == 1); // expected-warning{{TRUE}} in checkThatInheritedContainedConstMethodDoesNotInvalidateObjects()
205 clang_analyzer_eval(t.in.x == 2); // expected-warning{{TRUE}} in checkThatInheritedContainedConstMethodDoesNotInvalidateObjects()
267 Outer2 t; in checkThatConstMethodCallDoesInvalidateObjectForCircularReferences() local
268 t.x = 1; in checkThatConstMethodCallDoesInvalidateObjectForCircularReferences()
269 t.in.ref = &t; in checkThatConstMethodCallDoesInvalidateObjectForCircularReferences()
270 t.foo(); in checkThatConstMethodCallDoesInvalidateObjectForCircularReferences()
272 clang_analyzer_eval(t.x); // expected-warning{{TRUE}} in checkThatConstMethodCallDoesInvalidateObjectForCircularReferences()