Lines Matching full:auto
38 auto L = [](auto a) { return a; }; in foo()
41 auto L = [](auto a) -> void { in foo2()
42 auto M = [](char b) -> void { in foo2()
43 auto N = [](auto c) -> void { in foo2()
66 auto L = [](auto a, auto b) { in doit()
72 auto L2 = [](auto a, int i) { in doit()
79 auto B = []() { return ^{ return a; }; }; //expected-error{{cannot be implicitly capture}}\ in doit()
83 //auto X = ^{ return a; }; in doit()
85 //auto Y = []() -> auto { return 3; return 'c'; }; in doit()
97 auto L = [=](auto a) { in doit()
105 auto L = [](auto a) { //expected-note{{begins here}} in doit()
114 auto L = [=](auto a) { in doit()
116 return [](auto b) { in doit()
132 auto L = [=](auto a) { in doit()
140 auto L = [](auto a) { //expected-note{{begins here}} in doit()
146 auto L = [](auto a) { in doit()
149 return [](auto b) { in doit()
156 auto M = L(3); in doit()
157 auto N = M(5); in doit()
164 auto L = [=](auto a) { // <-- #A in doit()
166 return [](auto b) { // <-- #B in doit()
174 auto M_int = L(2); in doit()
180 auto L = [=](auto a) { in doit()
182 return [&,a](auto b) { in doit()
186 return [=](auto c) { in doit()
197 auto M = L(3)(3.5); // #call in doit()
202 auto foo() { in foo()
204 auto L = [=](auto a) { in foo()
205 return [=](auto b) { in foo()
206 return [=](auto c) { in foo()
212 auto M = L(1); in foo()
213 auto N = M(2.14); in foo()
222 auto foo() { in foo()
224 auto L = [=](auto a) { in foo()
225 return [=](auto b) { in foo()
226 return [=](auto c) { in foo()
234 auto M_int = L(1); in foo()
235 auto N_int_int = M_int(2); in foo()
241 auto M_double = L(3.14); in foo()
246 auto run = foo();
258 auto L = [](auto a) { in foo()
259 return [=](auto b) { in foo()
260 return [=](auto c) { in foo()
266 auto M = L(t); in foo()
267 auto N = M('b'); in foo()
285 auto L = [](auto a) { in foo()
287 return [=](auto c) { in foo()
293 auto M = L(t); in foo()
294 auto N = M('b'); in foo()
310 auto L = [=](auto a) { in foo()
312 return [=](auto c) { in foo()
318 auto M = L(t); in foo()
319 auto N = M('b'); in foo()
336 auto L = [=](auto a) { in foo()
337 return [](auto b) { in foo()
339 return [=](auto c) { in foo()
346 auto M = L(t); in foo()
347 auto N = M('b'); in foo()
365 auto L = [=](auto a) { in foo()
367 return [](auto b) { in foo()
369 return [](auto c) { //expected-note 2{{lambda expression begins here}} in foo()
376 auto M = L(t); in foo()
377 auto N_char = M('b'); in foo()
379 auto N_double = M(3.14); in foo()
397 auto L = [=](auto a) { in foo()
398 return [=](auto b) { in foo()
399 return [=](auto c) { in foo()
405 auto M = L(t); in foo()
406 auto N = M('b'); in foo()
424 auto L = [](auto a) { in foo()
425 return [=](auto b) { in foo()
426 return [=](auto c) { in foo()
432 auto M = L(t); in foo()
433 auto N = M('b'); in foo()
451 auto L = [](auto a) { in foo()
453 return [=](auto c) { in foo()
459 auto M = L(t); in foo()
460 auto N = M('b'); in foo()
478 auto L = [=](auto a) { in foo()
480 return [=](auto c) { in foo()
486 auto M = L(t); in foo()
487 auto N = M('b'); in foo()
501 T t2 = ([](auto a) { return [](auto b) { return b; };})(t)(t); in __anon8024ab043802()
502 T t3 = ([](auto a) { return a; })(t); in __anon8024ab043a02()
509 auto L = [](auto a) { in foo()
510 return [](auto b, decltype(a) b2) -> decltype(a) { in foo()
514 auto M = L(3.14); in foo()
526 auto L = [=](auto a) { in foo()
533 auto L = [](auto a) { in foo()
542 auto L = [=](auto a) { in g()
544 return [=](auto b) { in g()
550 auto M = L(0.0); in g()
551 auto N = M(3); in g()
564 auto L = [=](auto a) { in g()
566 return [=](auto b) { in g()
572 auto M = L(0.0); in g()
573 auto N = M(3); in g()
588 auto L = [=](auto a) { in g()
589 return [](auto b) { in g()
596 auto M = L(0.0); // OK in g()
597 auto N = M(3.3); //OK in g()
598 auto M_int = L(0); //expected-note{{instantiation}} in g()
612 auto L = [=](auto a) { in g()
613 return [](auto b) { in g()
620 auto M_double = L(0.0); // OK in g()
621 auto N = M_double(3); //expected-note{{instantiation}} in g()
635 auto L = [=](auto a) { in g()
637 return [=](auto b) { in g()
643 auto M = L(0.0); in g()
644 auto N = M(3); in g()
658 auto L = [](auto a) { //expected-note{{begins}} in foo()
664 auto L = [](auto a) { in foo()
671 auto L = [=](auto a) { // <-- #A in foo()
673 return [](auto b) { //expected-note{{begins}} in foo()
694 auto L = [](int a) { in foo()
696 return [=](auto b) { in foo()
700 auto M = L(3); in foo()
705 auto L = [](int a) { in foo()
707 return [=](auto b) { in foo()
711 auto M = L(3); in foo()
717 auto L = [](auto a) { //expected-note {{declared here}} in foo()
720 return [=] (auto c) { in foo()
728 auto L = [](auto a) { in foo()
731 return [=] (auto c) { in foo()
744 auto foo(int i) { in foo()
749 return [](auto a) { return ref_j; }; // ok in foo()
753 auto foo2(T t) { in foo2()
758 return [](auto a) { return ref_j; }; // ok in foo2()
762 auto L = foo(3); in do_test()
763 auto L_int = L(3); in do_test()
764 auto L_char = L('a'); in do_test()
765 auto L1 = foo2(3.14); in do_test()
766 auto L1_int = L1(3); in do_test()
767 auto L1_char = L1('a'); in do_test()
777 T (*fp)(T) = [](auto a) { return a; }; in __anon8024ab045d02()
784 void fooT(T t, T (*fp)(T) = [](auto a) { return a; }) { in __anon8024ab045e02()
790 auto L = [](auto a) { return a; }; in test()
803 auto L = [](auto a) ->int { return a; }; //expected-note 2{{candidate template ignored}} in test()
810 auto L = [=](auto b, char c = 'x') { in test()
812 return [](auto a) ->decltype(a) { return a; }; in test()
826 auto L = [=](auto b) { in test()
827 return [](auto a) ->decltype(b)* { return (decltype(b)*)0; }; in test()
840 auto L = [=](auto b) { in test()
841 …return [](auto a) ->decltype(b)* { return (decltype(b)*)0; }; //expected-note{{candidate template … in test()
853 auto L = [=](auto b) { in test()
854 return [](auto a) { in test()
855 return [=](auto c) { in test()
856 return [](auto d) ->decltype(a + b + c + d) { return d; }; in test()
883 auto L = [=](auto a) { in foo()
884 return [=](auto b) { in foo()
905 auto lam = [=](auto a) { f(a); }; // captures 'this' in g()
911 auto lam = [](auto a) { f(a); }; // expected-error{{'this'}} in g2()
916 double (*fd)(double) = [](auto a) { f(a); return a; }; in __anon8024ab046d02()
937 T t = [](auto a) { f(a); return a; }; in __anon8024ab046e02()
938 T t2 = [=](auto b) { f(b); return b; }; in __anon8024ab046f02()
945 T t = [](auto a) { f(a); return a; }; //expected-error{{'this'}} \ in __anon8024ab047002()
947 T t2 = [=](auto b) { f(b); return b; }; in __anon8024ab047102()
959 T t = [](auto a) { f(a); return a; }; in __anon8024ab047202()
965 T t = [](auto a) { f(a); return a; }; //expected-error{{'this'}} in __anon8024ab047302()
984 T t = [](auto a) { return x; }; //expected-error{{'this'}} in __anon8024ab047402()
985 T t2 = [](auto b) { return d; }; in __anon8024ab047502()
986 T t3 = [this](auto a) { in __anon8024ab047602()
987 return [=](auto b) { in __anon8024ab047602()
991 T t4 = [=](auto a) { in __anon8024ab047802()
992 return [=](auto b) { in __anon8024ab047802()
996 T t5 = [](auto a) { in __anon8024ab047a02()
997 return [=](auto b) { in __anon8024ab047a02()
1011 auto L = []() in foo_no_error()
1015 auto L = []() //expected-note 2{{begins here}} in foo()
1023 auto L = []() //expected-note{{begins here}} in foo()
1036 auto lam = [=](auto a) { f(a); }; in g()
1052 auto L = [=](auto a) { f(a); }; in g()
1054 auto L2 = [](auto a) { f(a); }; //expected-error {{cannot be implicitly captured}} in g()
1068 auto lam = [](auto a) { f(a, a); }; in g()
1083 auto L = [](auto a) { f(a); }; //expected-error{{'this'}} in g()
1102 auto L = [](auto a) { f(a); }; //expected-error{{'this'}} in g()
1117 auto L = [](auto a) { f(a); }; in g()
1134 auto L = [=](auto a) { in g()
1136 return [=](auto b) { in g()
1141 auto M = L(0); in g()
1142 auto N = M(); in g()
1159 auto L = [=](auto a) { in g()
1161 return [=](auto b) { in g()
1166 auto M = L(0); in g()
1167 auto N = M(); in g()
1186 auto L = [=](auto a) { in g()
1187 return [&](auto c) { in g()
1188 return [=](auto b) { in g()
1193 auto M = L(0); in g()
1194 auto N = M('a'); in g()
1212 auto L = [=](auto a) { in g()
1214 return [=](auto b) { in g()
1220 auto M = L(0.0); in g()
1221 auto N = M(3); in g()
1238 auto L = [](auto a) { in g()
1239 return [=](auto i) { in g()
1240 return [=](auto b) { in g()
1246 auto M = L(0.0); in g()
1247 auto N = M(3); in g()
1260 inline auto foo(int x) { in foo()
1262 auto lambda = [=](auto z) { return x + z; }; in foo()
1267 auto L = foo(3); in foo2()
1274 inline auto foo3(int x) { in foo3()
1276 auto L = [=](auto a) { in foo3()
1278 return [=](auto b) mutable { in foo3()
1279 auto n = b; in foo3()
1280 return [&, n](auto c) mutable { in foo3()
1286 auto M = L("foo-abc"); in foo3()
1287 auto N = M("foo-def"); in foo3()
1288 auto O = N("foo-ghi"); in foo3()
1294 auto L3 = foo3(3); in main()
1295 auto M3 = L3("L3-1"); in main()
1296 auto N3 = M3("M3-1"); in main()
1297 auto O3 = N3("N3-1"); in main()
1310 auto L = [=](auto N) -> int { in sum_array()
1328 auto L = [=](auto a) { in test()
1339 auto L = [](auto a) { return a; }; in foo()
1346 auto LC = [](auto a) { return a; }; in foo()
1349 auto L = [=](auto a) { in foo()
1350 return [=](auto b) { in foo()
1355 auto M = L(1); in foo()
1371 int n = [this](auto) { return m; }(20); in __anon8024ab049f02()
1377 T n = [this](auto) { return m; }(20); in __anon8024ab04a002()
1386 …[&](auto) { static_assert(&i != nullptr, ""); }(0); // expected-warning 2{{always true}} expected-… in PR33318() argument
1401 auto f() { in f()
1402 auto L = [=] { in f()
1426 auto f() { in f()
1427 auto L = [=](auto a) { in f()
1452 auto f() { in f()
1453 auto L = [=](auto a) { in f()
1480 auto f() { in f()
1481 auto L = [=](auto a) { in f()
1508 auto f() { in f()
1509 auto L = [&](auto a) { in f()
1533 auto v =
1534 [](auto ...a) { in __anon8024ab04a702()
1535 [&](auto ...b) { in __anon8024ab04a702()