Lines Matching full:bar
20 struct Bar { struct
21 Bar(Foo);
22 Bar(int);
37 // int <=> Bar
38 // double => Bar
39 // Foo => Bar
45 // int => Bar
47 // Bar => Bar
48 // Bar => int
50 // Foo => Bar
54 // double => Bar
57 // Foo => Bar
59 // Bar => Bar
60 // Bar => int
65 Container<Bar&> bar_container; in test0()
75 for (const Bar x : bar_container) {} in test0()
76 … expected-warning@-1 {{loop variable 'x' of type 'const Bar' creates a copy from type 'const Bar'}} in test0()
77 // expected-note@-2 {{use reference type 'const Bar &' to prevent copying}} in test0()
103 for (const Bar &x : A) {} in test1()
105 // expected-note@-2 {{'Bar'}} in test1()
106 for (const Bar x : A) {} in test1()
108 //for (Bar &x : A) {} in test1()
110 for (Bar x : A) {} in test1()
135 for (const Bar &x : B) {} in test2()
137 // expected-note@-2 {{'Bar'}} in test2()
138 for (const Bar x : B) {} in test2()
139 //for (Bar &x : B) {} in test2()
141 for (Bar x : B) {} in test2()
146 Container<Bar> C; in test3()
148 for (const Bar &x : C) {} in test3()
150 // expected-note@-2 {{'Bar'}} in test3()
151 for (const Bar x : C) {} in test3()
153 //for (Bar &x : C) {} in test3()
155 for (Bar x : C) {} in test3()
170 Container<Bar&> D; in test4()
172 for (const Bar &x : D) {} in test4()
174 for (const Bar x : D) {} in test4()
176 // expected-note@-2 {{'const Bar &'}} in test4()
177 for (Bar &x : D) {} in test4()
179 for (Bar x : D) {} in test4()
184 // expected-note-re@-2 {{'int'{{.*}}'const Bar &'}} in test4()
196 for (const Bar &x : E) {} in test5()
198 // expected-note@-2 {{'Bar'}} in test5()
199 for (const Bar x : E) {} in test5()
201 //for (Bar &x : E) {} in test5()
203 for (Bar x : E) {} in test5()
210 for (const Bar &x : F) {} in test6()
212 // expected-note-re@-2 {{'Bar'{{.*}}'const Foo &'}} in test6()
213 for (const Bar x : F) {} in test6()
215 //for (Bar &x : F) {} in test6()
217 for (Bar x : F) {} in test6()
243 for (const Bar &x : G) {} in test7()
245 // expected-note-re@-2 {{'Bar'{{.*}}'const double &'}} in test7()
246 for (const Bar x : G) {} in test7()
248 //for (int &Bar : G) {} in test7()
250 for (int Bar : G) {} in test7() local
266 for (const Bar &x : H) {} in test8()
268 // expected-note-re@-2 {{'Bar'{{.*}}'const Foo &'}} in test8()
269 for (const Bar x : H) {} in test8()
271 //for (Bar &x: H) {} in test8()
273 for (Bar x: H) {} in test8()
278 Bar I[2] = {1,2}; in test9()
280 for (const Bar &x : I) {} in test9()
282 for (const Bar x : I) {} in test9()
284 // expected-note@-2 {{'const Bar &'}} in test9()
285 for (Bar &x : I) {} in test9()
287 for (Bar x : I) {} in test9()
292 // expected-note-re@-2 {{'int'{{.*}}'const Bar &'}} in test9()