Lines Matching full:auto
33 auto captures_nothing = [] {}; in test()
35 auto captures_nothing_by_value = [=] {}; in test()
36 auto captures_nothing_by_reference = [&] {}; in test()
38 auto implicit_by_value = [=]() mutable { i++; }; in test()
39 auto implicit_by_reference = [&] { i++; }; in test()
41 auto explicit_by_value_used = [i] { return i + 1; }; in test()
42 auto explicit_by_value_used_void = [i] { (void)i; }; in test()
43 auto explicit_by_value_unused = [i] {}; // expected-warning{{lambda capture 'i' is not used}} in test()
44 …auto explicit_by_value_unused_sizeof = [i] { return sizeof(i); }; // expected-warning{{lambda capt… in test()
45 …auto explicit_by_value_unused_decltype = [i] { decltype(i) j = 0; }; // expected-warning{{lambda c… in test()
46 …auto explicit_by_value_unused_const = [k] { return k + 1; }; // expected-warning{{lambda c… in test()
48 auto explicit_by_reference_used = [&i] { i++; }; in test()
49 auto explicit_by_reference_unused = [&i] {}; // expected-warning{{lambda capture 'i' is not used}} in test()
51 auto explicit_initialized_reference_used = [&j = i] { return j + 1; }; in test()
52 …auto explicit_initialized_reference_unused = [&j = i]{}; // expected-warning{{lambda capture 'j' i… in test()
54 auto explicit_initialized_value_used = [j = 1] { return j + 1; }; in test()
55 …auto explicit_initialized_value_unused = [j = 1] {}; // expected-warning{{lambda capture 'j' is no… in test()
56 auto explicit_initialized_value_non_trivial_constructor = [j = NonTrivialConstructor()]{}; in test()
57 auto explicit_initialized_value_non_trivial_destructor = [j = NonTrivialDestructor()]{}; in test()
58 …auto explicit_initialized_value_trivial_init = [j = Trivial()]{}; // expected-warning{{lambda capt… in test()
59 auto explicit_initialized_value_non_trivial_init = [j = Trivial(42)]{}; in test()
60 auto explicit_initialized_value_with_side_effect = [j = side_effect()]{}; in test()
62 auto nested = [&i] { in test()
63 auto explicit_by_value_used = [i] { return i + 1; }; in test()
64 auto explicit_by_value_unused = [i] {}; // expected-warning{{lambda capture 'i' is not used}} in test()
68 …auto explicit_by_value_trivial = [trivial] {}; // expected-warning{{lambda capture 'trivial' is no… in test()
71 …auto explicit_by_value_non_trivial_constructor = [cons] {}; // expected-warning{{lambda capture 'c… in test()
74 auto explicit_by_value_non_trivial_copy_constructor = [copy_cons] {}; in test()
77 auto explicit_by_value_non_trivial_destructor = [dest] {}; in test()
80 auto explicit_by_value_volatile = [v] {}; in test()
85 auto explicit_this_used = [this] { return i; }; in test()
86 auto explicit_this_used_void = [this] { (void)this; }; in test()
87 auto explicit_this_unused = [this] {}; // expected-warning{{lambda capture 'this' is not used}} in test()
88 auto explicit_star_this_used = [*this] { return i; }; in test()
89 auto explicit_star_this_used_void = [*this] { (void)this; }; in test()
90 …auto explicit_star_this_unused = [*this] {}; // expected-warning{{lambda capture 'this' is not use… in test()
97 auto explicit_this_used = [this] { return i; }; in test()
98 auto explicit_this_used_void = [this] { (void)this; }; in test()
99 auto explicit_this_unused = [this] {}; // expected-warning{{lambda capture 'this' is not used}} in test()
100 auto explicit_star_this_used = [*this] { return i; }; in test()
101 auto explicit_star_this_used_void = [*this] { (void)this; }; in test()
102 …auto explicit_star_this_unused = [*this] {}; // expected-warning{{lambda capture 'this' is not use… in test()
109 auto explicit_this_used = [this] { return i; }; in test()
110 auto explicit_this_used_void = [this] { (void)this; }; in test()
111 auto explicit_this_unused = [this] {}; // expected-warning{{lambda capture 'this' is not used}} in test()
112 auto explicit_star_this_used = [*this] { return i; }; in test()
113 auto explicit_star_this_used_void = [*this] { (void)this; }; in test()
114 auto explicit_star_this_unused = [*this] {}; in test()
121 auto explicit_this_used = [this] { return i; }; in test()
122 auto explicit_this_used_void = [this] { (void)this; }; in test()
123 auto explicit_this_unused = [this] {}; // expected-warning{{lambda capture 'this' is not used}} in test()
124 auto explicit_star_this_used = [*this] { return i; }; in test()
125 auto explicit_star_this_used_void = [*this] { (void)this; }; in test()
126 auto explicit_star_this_unused = [*this] {}; in test()
136 auto captures_nothing = [] {}; in test_templated()
138 auto captures_nothing_by_value = [=] {}; in test_templated()
139 auto captures_nothing_by_reference = [&] {}; in test_templated()
141 auto implicit_by_value = [=]() mutable { i++; }; in test_templated()
142 auto implicit_by_reference = [&] { i++; }; in test_templated()
144 auto explicit_by_value_used = [i] { return i + 1; }; in test_templated()
145 auto explicit_by_value_used_generic = [i](auto c) { return i + 1; }; in test_templated()
146 auto explicit_by_value_used_void = [i] { (void)i; }; in test_templated()
148 auto explicit_by_value_unused = [i] {}; // expected-warning{{lambda capture 'i' is not used}} in test_templated()
149 …auto explicit_by_value_unused_sizeof = [i] { return sizeof(i); }; // expected-warning{{lambda capt… in test_templated()
150 …auto explicit_by_value_unused_decltype = [i] { decltype(i) j = 0; }; // expected-warning{{lambda c… in test_templated()
151 …auto explicit_by_value_unused_const = [k] { return k + 1; }; // expected-warning{{lambda c… in test_templated()
152 …auto explicit_by_value_unused_const_generic = [k](auto c) { return k + 1; }; // expected-warning{{… in test_templated()
154 auto explicit_by_reference_used = [&i] { i++; }; in test_templated()
155 auto explicit_by_reference_unused = [&i] {}; // expected-warning{{lambda capture 'i' is not used}} in test_templated()
157 auto explicit_initialized_reference_used = [&j = i] { return j + 1; }; in test_templated()
158 …auto explicit_initialized_reference_unused = [&j = i]{}; // expected-warning{{lambda capture 'j' i… in test_templated()
160 auto explicit_initialized_value_used = [j = 1] { return j + 1; }; in test_templated()
161 …auto explicit_initialized_value_unused = [j = 1] {}; // expected-warning{{lambda capture 'j' is no… in test_templated()
162 auto explicit_initialized_value_non_trivial_constructor = [j = NonTrivialConstructor()]{}; in test_templated()
163 auto explicit_initialized_value_non_trivial_destructor = [j = NonTrivialDestructor()]{}; in test_templated()
164 …auto explicit_initialized_value_trivial_init = [j = Trivial()]{}; // expected-warning{{lambda capt… in test_templated()
165 auto explicit_initialized_value_non_trivial_init = [j = Trivial(42)]{}; in test_templated()
166 auto explicit_initialized_value_with_side_effect = [j = side_effect()]{}; in test_templated()
167 auto explicit_initialized_value_generic_used = [i = 1](auto c) mutable { i++; }; in test_templated()
168 …auto explicit_initialized_value_generic_unused = [i = 1](auto c) mutable {}; // expected-warning{{… in test_templated()
170 auto nested = [&i] { in test_templated()
171 auto explicit_by_value_used = [i] { return i + 1; }; in test_templated()
172 auto explicit_by_value_unused = [i] {}; // expected-warning{{lambda capture 'i' is not used}} in test_templated()
176 …auto explicit_by_value_trivial = [trivial] {}; // expected-warning{{lambda capture 'trivial' is no… in test_templated()
179 …auto explicit_by_value_non_trivial_constructor = [cons] {}; // expected-warning{{lambda capture 'c… in test_templated()
182 auto explicit_by_value_non_trivial_copy_constructor = [copy_cons] {}; in test_templated()
185 auto explicit_by_value_non_trivial_destructor = [dest] {}; in test_templated()
188 auto explicit_by_value_volatile = [v] {}; in test_templated()
199 auto vla_used = [&c] { return c[0]; }; in b()
200 auto vla_unused = [&c] {}; // expected-warning{{lambda capture 'c' is not used}} in b()