You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang-tools-extra/test/clang-tidy/checkers/performance/move-const-arg.cpp
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -546,3 +546,17 @@ void testAlsoNonMoveable() {
546
546
}
547
547
548
548
} // namespace issue_62550
549
+
550
+
namespaceGH111450 {
551
+
structStatus;
552
+
553
+
structError {
554
+
Error(const Status& S);
555
+
};
556
+
557
+
structResult {
558
+
Error E;
559
+
Result(Status&& S) : E(std::move(S)) {}
560
+
// CHECK-MESSAGES: :[[@LINE-1]]:{{[0-9]+}}: warning: passing result of std::move() as a const reference argument; no move will actually happen [performance-move-const-arg]
0 commit comments