Lines Matching full:pointer
35 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_scope_char()
36 d = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_scope_char()
46 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
47 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
49 consume(d); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
50 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
58 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_scope_char_data_non_const()
62 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char_data_non_const()
63 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char_data_non_const()
70 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::wstring' obtained here}} in deref_after_scope_wchar_t()
71 d = s.data(); // expected-note {{Pointer to inner buffer of 'std::wstring' obtained here}} in deref_after_scope_wchar_t()
81 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t()
82 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t()
84 consume(d); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t()
85 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t()
93 … c16 = s16.c_str(); // expected-note {{Pointer to inner buffer of 'std::u16string' obtained here}} in deref_after_scope_char16_t_cstr()
97 consume(c16); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char16_t_cstr()
98 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char16_t_cstr()
105 c32 = s32.data(); // expected-note {{Pointer to inner buffer of 'std::u32string' obtained here}} in deref_after_scope_char32_t_data()
109 consume(c32); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char32_t_data()
110 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char32_t_data()
117 c1 = s1.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in multiple_symbols()
118 d1 = s1.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in multiple_symbols()
130 consume(c1); // expected-warning {{Inner pointer of container used after re/deallocation}} in multiple_symbols()
131 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in multiple_symbols()
133 consume(d1); // expected-warning {{Inner pointer of container used after re/deallocation}} in multiple_symbols()
134 } // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in multiple_symbols()
153 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_equals()
155 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_equals()
156 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_equals()
162 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_plus_equals()
164 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_plus_equals()
165 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_plus_equals()
171 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_clear()
173 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_clear()
174 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_clear()
180 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_append()
182 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_append()
183 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_append()
189 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_assign()
191 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_assign()
192 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_assign()
198 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_erase()
200 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_erase()
201 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_erase()
207 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_insert()
209 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_insert()
210 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_insert()
216 …c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained he… in deref_after_replace()
218 …consume(c); // expected-warning {{Inner pointer of container used after re/dealloca… in deref_after_replace()
219 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_replace()
225 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_pop_back()
227 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_pop_back()
228 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_pop_back()
234 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_push_back()
236 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_push_back()
237 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_push_back()
243 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_reserve()
245 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_reserve()
246 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_reserve()
252 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_resize()
254 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_resize()
255 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_resize()
261 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_shrink_to_fit()
263 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_shrink_to_fit()
264 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_shrink_to_fit()
270 c = s1.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_swap()
272 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_swap()
273 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_swap()
279 return s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in name()
280 // expected-note@-1 {{Pointer to inner buffer of 'std::string' obtained here}} in name()
294 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in cleared_through_method()
295 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in cleared_through_method()
304 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in destroyed_through_method()
305 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in destroyed_through_method()
315 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in STL_func_ref()
317 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in STL_func_ref()
318 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in STL_func_ref()
341 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in func_ptr_known()
343 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in func_ptr_known()
344 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in func_ptr_known()
358 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in func_default_arg()
360 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in func_default_arg()
361 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in func_default_arg()
372 …return x.to_string().c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained… in escape_via_return_temp()
374 // expected-warning@-2 {{Inner pointer of container used after re/deallocation}} in escape_via_return_temp()
375 // expected-note@-3 {{Inner pointer of container used after re/deallocation}} in escape_via_return_temp()
380 return s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in escape_via_return_local()
382 // expected-warning@-2 {{Inner pointer of container used after re/deallocation}} in escape_via_return_local()
383 // expected-note@-3 {{Inner pointer of container used after re/deallocation}} in escape_via_return_local()