Lines Matching full:auto
35 auto L = [](auto a) { return a; }; in foo()
38 auto L = [](auto a) -> void { in foo2()
39 auto M = [](char b) -> void { in foo2()
40 auto N = [](auto c) -> void { in foo2()
63 auto L = [](auto a, auto b) { in doit()
69 auto L2 = [](auto a, int i) { in doit()
76 auto B = []() { return ^{ return a; }; }; //expected-error{{cannot be implicitly capture}}\ in doit()
80 //auto X = ^{ return a; }; in doit()
82 //auto Y = []() -> auto { return 3; return 'c'; }; in doit()
94 auto L = [=](auto a) { in doit()
102 auto L = [](auto a) { //expected-note{{begins here}} in doit()
111 auto L = [=](auto a) { in doit()
113 return [](auto b) { in doit()
129 auto L = [=](auto a) { in doit()
137 auto L = [](auto a) { //expected-note{{begins here}} in doit()
143 auto L = [](auto a) { in doit()
146 return [](auto b) { in doit()
153 auto M = L(3); in doit()
154 auto N = M(5); in doit()
161 auto L = [=](auto a) { // <-- #A in doit()
163 return [](auto b) { // <-- #B in doit()
171 auto M_int = L(2); in doit()
177 auto L = [=](auto a) { in doit()
179 return [&,a](auto b) { in doit()
181 return [=](auto c) { in doit()
192 auto M = L(3)(3.5); in doit()
197 auto foo() { in foo()
199 auto L = [=](auto a) { in foo()
200 return [=](auto b) { in foo()
201 return [=](auto c) { in foo()
207 auto M = L(1); in foo()
208 auto N = M(2.14); in foo()
217 auto foo() { in foo()
219 auto L = [=](auto a) { in foo()
220 return [=](auto b) { in foo()
221 return [=](auto c) { in foo()
229 auto M_int = L(1); in foo()
230 auto N_int_int = M_int(2); in foo()
236 auto M_double = L(3.14); in foo()
241 auto run = foo();
253 auto L = [](auto a) { in foo()
254 return [=](auto b) { in foo()
255 return [=](auto c) { in foo()
261 auto M = L(t); in foo()
262 auto N = M('b'); in foo()
280 auto L = [](auto a) { in foo()
282 return [=](auto c) { in foo()
288 auto M = L(t); in foo()
289 auto N = M('b'); in foo()
305 auto L = [=](auto a) { in foo()
307 return [=](auto c) { in foo()
313 auto M = L(t); in foo()
314 auto N = M('b'); in foo()
331 auto L = [=](auto a) { in foo()
332 return [](auto b) { in foo()
334 return [=](auto c) { in foo()
341 auto M = L(t); in foo()
342 auto N = M('b'); in foo()
360 auto L = [=](auto a) { in foo()
362 return [](auto b) { in foo()
364 return [](auto c) { //expected-note 2{{lambda expression begins here}} in foo()
371 auto M = L(t); in foo()
372 auto N_char = M('b'); in foo()
374 auto N_double = M(3.14); in foo()
392 auto L = [=](auto a) { in foo()
393 return [=](auto b) { in foo()
394 return [=](auto c) { in foo()
400 auto M = L(t); in foo()
401 auto N = M('b'); in foo()
419 auto L = [](auto a) { in foo()
420 return [=](auto b) { in foo()
421 return [=](auto c) { in foo()
427 auto M = L(t); in foo()
428 auto N = M('b'); in foo()
446 auto L = [](auto a) { in foo()
448 return [=](auto c) { in foo()
454 auto M = L(t); in foo()
455 auto N = M('b'); in foo()
473 auto L = [=](auto a) { in foo()
475 return [=](auto c) { in foo()
481 auto M = L(t); in foo()
482 auto N = M('b'); in foo()
496 T t2 = ([](auto a) { return [](auto b) { return b; };})(t)(t); in __anon404c0fd63802()
497 T t3 = ([](auto a) { return a; })(t); in __anon404c0fd63a02()
504 auto L = [](auto a) { in foo()
505 return [](auto b, decltype(a) b2) -> decltype(a) { in foo()
509 auto M = L(3.14); in foo()
521 auto L = [=](auto a) { in foo()
528 auto L = [](auto a) { in foo()
537 auto L = [=](auto a) { in g()
539 return [=](auto b) { in g()
545 auto M = L(0.0); in g()
546 auto N = M(3); in g()
559 auto L = [=](auto a) { in g()
561 return [=](auto b) { in g()
567 auto M = L(0.0); in g()
568 auto N = M(3); in g()
583 auto L = [=](auto a) { in g()
584 return [](auto b) { in g()
591 auto M = L(0.0); // OK in g()
592 auto N = M(3.3); //OK in g()
593 auto M_int = L(0); //expected-note{{instantiation}} in g()
607 auto L = [=](auto a) { in g()
608 return [](auto b) { in g()
615 auto M_double = L(0.0); // OK in g()
616 auto N = M_double(3); //expected-note{{instantiation}} in g()
630 auto L = [=](auto a) { in g()
632 return [=](auto b) { in g()
638 auto M = L(0.0); in g()
639 auto N = M(3); in g()
653 auto L = [](auto a) { //expected-note{{begins}} in foo()
659 auto L = [](auto a) { in foo()
666 auto L = [=](auto a) { // <-- #A in foo()
668 return [](auto b) { //expected-note{{begins}} in foo()
689 auto L = [](int a) { in foo()
691 return [=](auto b) { in foo()
695 auto M = L(3); in foo()
700 auto L = [](int a) { in foo()
702 return [=](auto b) { in foo()
706 auto M = L(3); in foo()
712 auto L = [](auto a) { //expected-note {{declared here}} in foo()
715 return [=] (auto c) { in foo()
723 auto L = [](auto a) { in foo()
726 return [=] (auto c) { in foo()
739 auto foo(int i) { in foo()
744 return [](auto a) { return ref_j; }; // ok in foo()
748 auto foo2(T t) { in foo2()
753 return [](auto a) { return ref_j; }; // ok in foo2()
757 auto L = foo(3); in do_test()
758 auto L_int = L(3); in do_test()
759 auto L_char = L('a'); in do_test()
760 auto L1 = foo2(3.14); in do_test()
761 auto L1_int = L1(3); in do_test()
762 auto L1_char = L1('a'); in do_test()
772 T (*fp)(T) = [](auto a) { return a; }; in __anon404c0fd65d02()
779 void fooT(T t, T (*fp)(T) = [](auto a) { return a; }) { in __anon404c0fd65e02()
785 auto L = [](auto a) { return a; }; in test()
798 auto L = [](auto a) ->int { return a; }; //expected-note 2{{candidate template ignored}} in test()
805 auto L = [=](auto b, char c = 'x') { in test()
807 return [](auto a) ->decltype(a) { return a; }; in test()
821 auto L = [=](auto b) { in test()
822 return [](auto a) ->decltype(b)* { return (decltype(b)*)0; }; in test()
835 auto L = [=](auto b) { in test()
836 …return [](auto a) ->decltype(b)* { return (decltype(b)*)0; }; //expected-note{{candidate template … in test()
848 auto L = [=](auto b) { in test()
849 return [](auto a) { in test()
850 return [=](auto c) { in test()
851 return [](auto d) ->decltype(a + b + c + d) { return d; }; in test()
878 auto L = [=](auto a) { in foo()
879 return [=](auto b) { in foo()
900 auto lam = [=](auto a) { f(a); }; // captures 'this' in g()
906 auto lam = [](auto a) { f(a); }; // expected-error{{'this'}} in g2()
911 double (*fd)(double) = [](auto a) { f(a); return a; }; in __anon404c0fd66d02()
932 T t = [](auto a) { f(a); return a; }; in __anon404c0fd66e02()
933 T t2 = [=](auto b) { f(b); return b; }; in __anon404c0fd66f02()
940 T t = [](auto a) { f(a); return a; }; //expected-error{{'this'}} \ in __anon404c0fd67002()
942 T t2 = [=](auto b) { f(b); return b; }; in __anon404c0fd67102()
954 T t = [](auto a) { f(a); return a; }; in __anon404c0fd67202()
960 T t = [](auto a) { f(a); return a; }; //expected-error{{'this'}} in __anon404c0fd67302()
979 T t = [](auto a) { return x; }; //expected-error{{'this'}} in __anon404c0fd67402()
980 T t2 = [](auto b) { return d; }; in __anon404c0fd67502()
981 T t3 = [this](auto a) { in __anon404c0fd67602()
982 return [=](auto b) { in __anon404c0fd67602()
986 T t4 = [=](auto a) { in __anon404c0fd67802()
987 return [=](auto b) { in __anon404c0fd67802()
991 T t5 = [](auto a) { in __anon404c0fd67a02()
992 return [=](auto b) { in __anon404c0fd67a02()
1006 auto L = []() in foo_no_error()
1010 auto L = []() //expected-note 2{{begins here}} in foo()
1018 auto L = []() //expected-note{{begins here}} in foo()
1031 auto lam = [=](auto a) { f(a); }; in g()
1047 auto L = [=](auto a) { f(a); }; in g()
1049 auto L2 = [](auto a) { f(a); }; //expected-error {{cannot be implicitly captured}} in g()
1063 auto lam = [](auto a) { f(a, a); }; in g()
1078 auto L = [](auto a) { f(a); }; //expected-error{{'this'}} in g()
1097 auto L = [](auto a) { f(a); }; //expected-error{{'this'}} in g()
1112 auto L = [](auto a) { f(a); }; in g()
1129 auto L = [=](auto a) { in g()
1131 return [=](auto b) { in g()
1136 auto M = L(0); in g()
1137 auto N = M(); in g()
1154 auto L = [=](auto a) { in g()
1156 return [=](auto b) { in g()
1161 auto M = L(0); in g()
1162 auto N = M(); in g()
1181 auto L = [=](auto a) { in g()
1182 return [&](auto c) { in g()
1183 return [=](auto b) { in g()
1188 auto M = L(0); in g()
1189 auto N = M('a'); in g()
1207 auto L = [=](auto a) { in g()
1209 return [=](auto b) { in g()
1215 auto M = L(0.0); in g()
1216 auto N = M(3); in g()
1233 auto L = [](auto a) { in g()
1234 return [=](auto i) { in g()
1235 return [=](auto b) { in g()
1241 auto M = L(0.0); in g()
1242 auto N = M(3); in g()
1255 inline auto foo(int x) { in foo()
1257 auto lambda = [=](auto z) { return x + z; }; in foo()
1262 auto L = foo(3); in foo2()
1269 inline auto foo3(int x) { in foo3()
1271 auto L = [=](auto a) { in foo3()
1273 return [=](auto b) mutable { in foo3()
1274 auto n = b; in foo3()
1275 return [&, n](auto c) mutable { in foo3()
1281 auto M = L("foo-abc"); in foo3()
1282 auto N = M("foo-def"); in foo3()
1283 auto O = N("foo-ghi"); in foo3()
1289 auto L3 = foo3(3); in main()
1290 auto M3 = L3("L3-1"); in main()
1291 auto N3 = M3("M3-1"); in main()
1292 auto O3 = N3("N3-1"); in main()
1305 auto L = [=](auto N) -> int { in sum_array()
1323 auto L = [=](auto a) { in test()
1334 auto L = [](auto a) { return a; }; in foo()
1341 auto LC = [](auto a) { return a; }; in foo()
1344 auto L = [=](auto a) { in foo()
1345 return [=](auto b) { in foo()
1350 auto M = L(1); in foo()
1366 int n = [this](auto) { return m; }(20); in __anon404c0fd69f02()
1372 T n = [this](auto) { return m; }(20); in __anon404c0fd6a002()