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
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -114,14 +114,18 @@ void f8() {
114
114
intf9() { returnM2(1); }
115
115
116
116
template <typename T>
117
-
T f10(constint x10) {
117
+
T f_unknown_target(constint x10) {
118
118
returnstd::move(x10);
119
-
// CHECK-MESSAGES: :[[@LINE-1]]:10: warning: std::move of the const variable 'x10' of the trivially-copyable type 'const int' has no effect; remove std::move() [performance-move-const-arg]
0 commit comments