PiotrZSL added a comment.
I don't know why but with latest version I still got false positive with
std::function on Clang 15.
using Functor= std::function<... something ...>;
std::unique_ptr Class::createSomething(::Functor&& functor) {
return std::make_unique<SomeType>(std::move(functor));
}
================
Comment at:
clang-tools-extra/clang-tidy/cppcoreguidelines/RvalueReferenceParamNotMovedCheck.cpp:41
+ unless(isMoveConstructor()),
+ isDefinition(), ToParam)
+ .bind("containing-ctor")),
----------------
duplicated isDefinition and ToParam
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141569/new/
https://reviews.llvm.org/D141569
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits