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
// CHECK-MESSAGES: :[[@LINE-1]]:17: warning: rvalue reference parameter 'x' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved]
345
+
346
+
template <typename T>
347
+
voidf4([[maybe_unused]] T&& x) {}
348
+
349
+
template <typename T>
350
+
voidf5(__attribute((unused)) T&& x) {}
351
+
352
+
template<typename T>
353
+
voidf6(T&& x) {}
354
+
355
+
voidf7([[maybe_unused]] int&& x) { x += 1; }
356
+
// CHECK-MESSAGES: :[[@LINE-1]]:34: warning: rvalue reference parameter 'x' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved]
357
+
358
+
voidf8(__attribute__((unused)) int&& x) { x += 1; }
359
+
// CHECK-MESSAGES: :[[@LINE-1]]:41: warning: rvalue reference parameter 'x' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved]
0 commit comments