Lines Matching defs:MoveSemantics
202 class MoveSemantics {
204 MoveSemantics();
205 MoveSemantics(MoveSemantics &&);
207 MoveSemantics &operator=(MoveSemantics &&);
210 using MoveSemanticsAlias = MoveSemantics;
212 void callByValue(MoveSemantics);
214 void callByRValueRef(MoveSemantics &&);
230 MoveSemantics move_semantics;
233 MoveSemantics other(std::move(move_semantics));
295 void fmovable(MoveSemantics);
298 auto f = [](MoveSemantics m) {
301 f(MoveSemantics());
316 function<void(MoveSemantics)> callback;
317 MoveSemantics m;
328 function<void(MoveSemantics)> callback;
330 auto f = [callback = std::move(callback)](MoveSemantics m) mutable {
331 // CHECK-MESSAGES: :[[@LINE-1]]:24: warning: std::move of the variable 'callback' of the trivially-copyable type 'function<void (MoveSemantics)>' has no effect; remove std::move()
332 // CHECK-FIXES: auto f = [callback = callback](MoveSemantics m) mutable {
335 f(MoveSemantics());
342 // CHECK-MESSAGES: :[[@LINE-1]]:24: warning: std::move of the variable 'callback' of the trivially-copyable type 'function<void (MoveSemanticsAlias)>' (aka 'function<void (MoveSemantics)>') has no effect; remove std::move() [performance-move-const-arg]