Lines Matching full:this
21 (void)[ *this, this ]{}; //expected-error{{'this' can appear only once}} in foo()
22 (void)[this] { ++x; }; in foo()
23 (void)[*this] { ++x; }; //expected-error{{read-only variable}} in foo()
24 (void)[*this]() mutable { ++x; }; in foo()
26 (void)[&, this ] { return x; }; in foo()
27 (void)[ =, *this ] { return x; }; in foo()
28 (void)[&, *this ] { return x; }; in foo()
38 (void)[this] { return x; }; in foo()
39 (void)[*this] { return x; }; //expected-error{{call to deleted}} in foo()
53 (void)[this] { return x; }; in foo()
54 (void)[*this] { return x; }; //expected-error2{{call to deleted}} in foo()
71 const auto &L = [*this](auto a) mutable { //expected-error{{call to deleted}} in foo()
73 return [this](auto b) { return d += b; }; in foo()
95 auto L = [*this]() mutable { in foo()
96 static_assert(is_same<decltype(this), const X *>); in foo()
97 auto M = [this] { in foo()
98 static_assert(is_same<decltype(this), const X *>); in foo()
100 static_assert(is_same<decltype(this), const X *>); in foo()
105 auto L1 = [*this] { in foo()
106 static_assert(is_same<decltype(this), const X *>); in foo()
107 auto M = [this]() mutable { in foo()
108 static_assert(is_same<decltype(this), const X *>); in foo()
110 static_assert(is_same<decltype(this), const X *>); in foo()
113 auto M2 = [*this]() mutable { in foo()
114 static_assert(is_same<decltype(this), const X *>); in foo()
116 static_assert(is_same<decltype(this), const X *>); in foo()
121 auto GL1 = [*this](auto a) { in foo()
122 static_assert(is_same<decltype(this), const X *>); in foo()
123 auto M = [this](auto b) mutable { in foo()
124 static_assert(is_same<decltype(this), const X *>); in foo()
126 static_assert(is_same<decltype(this), const X *>); in foo()
131 auto M2 = [*this](auto a) mutable { in foo()
132 static_assert(is_same<decltype(this), const X *>); in foo()
134 static_assert(is_same<decltype(this), const X *>); in foo()
144 auto L2 = [this]() mutable { in foo()
145 static_assert(is_same<decltype(this), const X *>); in foo()
148 auto GL = [*this](auto a) mutable { in foo()
149 static_assert(is_same<decltype(this), const X *>); in foo()
150 auto M = [this](auto b) { in foo()
151 static_assert(is_same<decltype(this), const X *>); in foo()
153 static_assert(is_same<decltype(this), const X *>); in foo()
162 auto L = [this]() { in foo()
163 static_assert(is_same<decltype(this), const volatile X *>); in foo()
164 auto M = [*this]() mutable { in foo()
165 static_assert(is_same<decltype(this), const volatile X *>); in foo()
166 auto N = [this] { in foo()
167 static_assert(is_same<decltype(this), const volatile X *>); in foo()
169 static_assert(is_same<decltype(this), const volatile X *>); in foo()
172 auto N2 = [*this] { in foo()
173 static_assert(is_same<decltype(this), const volatile X *>); in foo()
176 auto M2 = [*this]() { in foo()
177 static_assert(is_same<decltype(this), const volatile X *>); in foo()
178 auto N = [this] { in foo()
179 static_assert(is_same<decltype(this), const volatile X *>); in foo()
191 auto L = [*this]() mutable { in foo()
193 auto N = [this] { in foo()
194 static_assert(is_same<decltype(this), const X *>); in foo()
195 auto O = [*this] { in foo()
196 static_assert(is_same<decltype(this), const X *>); in foo()
200 static_assert(is_same<decltype(this), const X *>); in foo()
223 const auto &&L = [*this]{}; in foo()
246 (void)[this] { in member_foo()
247 (void)[this] { in member_foo()
249 [this](auto X) { in member_foo()
250 auto L = [this](auto Y) { member_foo(); }; in member_foo()
254 [this](auto) { member_foo(); }); in member_foo()
268 (void)[&] { f(this->data); }; in mem2()
276 (void)[this] { in member_foo()
277 (void)[this] { in member_foo()
279 [this](auto X) { in member_foo()
280 auto L = [this](auto Y) { member_foo(); }; in member_foo()
284 [this](auto) { member_foo(); }); in member_foo()
290 return [this] { return [] () -> decltype(data){ return 0; }; }; in m2()
307 auto z = [*this](auto z2, decltype(z2(this)) z3){}; in f()
321 [*this]() mutable { f(this); }(); // expected-error {{call to deleted function}} in g()