Lines Matching full:inner

43     c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}}  in deref_after_scope_char()
44 d = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_scope_char()
45 …} // expected-note {{Inner buffer of 'std::string' deallocated by call to destructo… in deref_after_scope_char()
46 // expected-note@-1 {{Inner buffer of 'std::string' deallocated by call to destructor}} in deref_after_scope_char()
54 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
55 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
57 consume(d); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
58 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char()
66 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_scope_char_data_non_const()
67 …} // expected-note {{Inner buffer of 'std::string' deallocated by call to destructor… in deref_after_scope_char_data_non_const()
70 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char_data_non_const()
71 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char_data_non_const()
78 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::wstring' obtained here}} in deref_after_scope_wchar_t()
79 d = s.data(); // expected-note {{Pointer to inner buffer of 'std::wstring' obtained here}} in deref_after_scope_wchar_t()
80 …} // expected-note {{Inner buffer of 'std::wstring' deallocated by call to destruct… in deref_after_scope_wchar_t()
81 // expected-note@-1 {{Inner buffer of 'std::wstring' deallocated by call to destructor}} in deref_after_scope_wchar_t()
89 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t()
90 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t()
92 consume(d); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t()
93 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_wchar_t()
101 … c16 = s16.c_str(); // expected-note {{Pointer to inner buffer of 'std::u16string' obtained here}} in deref_after_scope_char16_t_cstr()
102 …} // expected-note {{Inner buffer of 'std::u16string' deallocated by call to de… in deref_after_scope_char16_t_cstr()
105 consume(c16); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char16_t_cstr()
106 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char16_t_cstr()
113 c32 = s32.data(); // expected-note {{Pointer to inner buffer of 'std::u32string' obtained here}} in deref_after_scope_char32_t_data()
114 …} // expected-note {{Inner buffer of 'std::u32string' deallocated by call to des… in deref_after_scope_char32_t_data()
117 consume(c32); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char32_t_data()
118 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_scope_char32_t_data()
125 c1 = s1.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in multiple_symbols()
126 d1 = s1.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in multiple_symbols()
129 …} // expected-note {{Inner buffer of 'std::string' deallocated by call to destruct… in multiple_symbols()
130 // expected-note@-1 {{Inner buffer of 'std::string' deallocated by call to destructor}} in multiple_symbols()
138 consume(c1); // expected-warning {{Inner pointer of container used after re/deallocation}} in multiple_symbols()
139 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in multiple_symbols()
141 consume(d1); // expected-warning {{Inner pointer of container used after re/deallocation}} in multiple_symbols()
142 } // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in multiple_symbols()
161 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_equals()
162 …s = "world"; // expected-note {{Inner buffer of 'std::string' reallocated by call to 'operator='… in deref_after_equals()
163 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_equals()
164 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_equals()
170 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_plus_equals()
171 …s += " world"; // expected-note {{Inner buffer of 'std::string' reallocated by call to 'operator+=… in deref_after_plus_equals()
172 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_plus_equals()
173 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_plus_equals()
179 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_clear()
180 s.clear(); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'clear'}} in deref_after_clear()
181 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_clear()
182 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_clear()
188 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_append()
189 …s.append(2, 'x'); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'append'… in deref_after_append()
190 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_append()
191 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_append()
197 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_assign()
198 …s.assign(4, 'a'); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'assign'… in deref_after_assign()
199 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_assign()
200 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_assign()
206 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_erase()
207 s.erase(0, 2); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'erase'}} in deref_after_erase()
208 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_erase()
209 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_erase()
215 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_insert()
216 …s.insert(0, 1, 'h'); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'inse… in deref_after_insert()
217 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_insert()
218 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_insert()
224 …c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained he… in deref_after_replace()
225 …s.replace(6, 5, "string"); // expected-note {{Inner buffer of 'std::string' reallocated by call to… in deref_after_replace()
226 …consume(c); // expected-warning {{Inner pointer of container used after re/dealloca… in deref_after_replace()
227 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_replace()
233 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_pop_back()
234 …s.pop_back(); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'pop_back'}} in deref_after_pop_back()
235 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_pop_back()
236 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_pop_back()
242 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_push_back()
243 …s.push_back('c'); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'push_ba… in deref_after_push_back()
244 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_push_back()
245 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_push_back()
251 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_reserve()
252 s.reserve(5); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'reserve'}} in deref_after_reserve()
253 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_reserve()
254 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_reserve()
260 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_resize()
261 s.resize(5); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'resize'}} in deref_after_resize()
262 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_resize()
263 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_resize()
269 c = s.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_shrink_to_fit()
270 …s.shrink_to_fit(); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'shrink… in deref_after_shrink_to_fit()
271 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_shrink_to_fit()
272 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_shrink_to_fit()
278 c = s1.data(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_swap()
279 s1.swap(s2); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'swap'}} in deref_after_swap()
280 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_swap()
281 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_swap()
287 c = std::data(s); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in deref_after_std_data()
288 …s.push_back('c'); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'push_ba… in deref_after_std_data()
289 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in deref_after_std_data()
290 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in deref_after_std_data()
296 return s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in name()
297 // expected-note@-1 {{Pointer to inner buffer of 'std::string' obtained here}} in name()
300 s.clear(); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'clear'}} in clear()
302 ~S() {} // expected-note {{Inner buffer of 'std::string' deallocated by call to destructor}} in ~S()
310 // expected-note@-1 {{Returning; inner buffer was reallocated}} in cleared_through_method()
311 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in cleared_through_method()
312 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in cleared_through_method()
320 // expected-note@-1 {{Returning; inner buffer was deallocated}} in destroyed_through_method()
321 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in destroyed_through_method()
322 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in destroyed_through_method()
332 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in STL_func_ref()
333 …std::func_ref(s); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'func_re… in STL_func_ref()
334 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in STL_func_ref()
335 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in STL_func_ref()
358 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in func_ptr_known()
359 …func_ptr(s); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'func_ref'}} in func_ptr_known()
360 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in func_ptr_known()
361 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in func_ptr_known()
375 c = s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in func_default_arg()
376 …default_arg(3, s); // expected-note {{Inner buffer of 'std::string' reallocated by call to 'defaul… in func_default_arg()
377 consume(c); // expected-warning {{Inner pointer of container used after re/deallocation}} in func_default_arg()
378 // expected-note@-1 {{Inner pointer of container used after re/deallocation}} in func_default_arg()
413 …return x.to_string().c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained… in escape_via_return_temp()
414 // expected-note@-1 {{Inner buffer of 'std::string' deallocated by call to destructor}} in escape_via_return_temp()
415 // expected-warning@-2 {{Inner pointer of container used after re/deallocation}} in escape_via_return_temp()
416 // expected-note@-3 {{Inner pointer of container used after re/deallocation}} in escape_via_return_temp()
421 return s.c_str(); // expected-note {{Pointer to inner buffer of 'std::string' obtained here}} in escape_via_return_local()
422 … // expected-note@-1 {{Inner buffer of 'std::string' deallocated by call to destructor}} in escape_via_return_local()
423 // expected-warning@-2 {{Inner pointer of container used after re/deallocation}} in escape_via_return_local()
424 // expected-note@-3 {{Inner pointer of container used after re/deallocation}} in escape_via_return_local()