[PATCH] D141569: [clang-tidy] Implement CppCoreGuideline F.18
Piotr Zegar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 20 07:25:54 PST 2023
PiotrZSL added inline comments.
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/rvalue-reference-param-not-moved.cpp:301
+ }
+ void never_moves(T&& t) {}
+ // CHECK-MESSAGES: :[[@LINE-1]]:24: warning: rvalue reference parameter 't' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved]
----------------
that's not always rvalue, if T would be for example int&, then this going to be lvalue...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141569/new/
https://reviews.llvm.org/D141569
More information about the cfe-commits
mailing list