Lines Matching defs:Copy
617 const ExpensiveToCopyType Copy = freeFunctionWithArg(Orig);
621 const ExpensiveToCopyType Copy = freeFunctionWithDefaultArg();
626 const ExpensiveToCopyType Copy = freeFunctionWithDefaultArg(&Orig);
647 std::function<int()> Copy = Orig;
655 Functor Copy = Orig;
663 TypedefFunc Copy = Orig;
678 auto Copy = F;
679 // CHECK-MESSAGES: [[@LINE-1]]:8: warning: local copy 'Copy' of the variable 'F' is never modified;
680 // CHECK-FIXES: const auto& Copy = F;
681 Copy.constMethod();
689 auto Copy = Orig.reference();
690 // CHECK-MESSAGES: [[@LINE-1]]:8: warning: the variable 'Copy' is copy-constructed from a const reference
691 // CHECK-FIXES: const auto& Copy = Orig.reference();
692 Update(Copy);
698 auto Copy = Orig.reference();
699 Update(Copy);
777 const auto Copy = Element;
778 // CHECK-MESSAGES: [[@LINE-1]]:16: warning: local copy 'Copy'
779 // CHECK-FIXES: const auto& Copy = Element;
781 Copy.constMethod();
787 const auto Copy = Element;
788 // CHECK-MESSAGES: [[@LINE-1]]:18: warning: local copy 'Copy'
789 // CHECK-FIXES: const auto& Copy = Element;
791 Copy.constMethod();
799 const auto Copy = Element;
801 Copy.constMethod();
807 const auto Copy = Element;
809 Copy.constMethod();
920 auto Copy = Orig;
921 Copy.Member.nonConstMethod();
924 auto Copy = Orig;
925 mutate(Copy.Member);
928 auto Copy = Orig;
929 mutate(&Copy.Member);