https://bugs.kde.org/show_bug.cgi?id=450019
Bug ID: 450019 Summary: function-args-by-ref warns about pass by value even when caller uses std::move Product: clazy Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: unassigned-b...@kde.org Reporter: fa...@kde.org CC: smart...@kde.org Target Milestone: --- SUMMARY This testcase: int f(QVector<int> vec) { return vec.size(); } void m() { QVector<int> myvec = {1, 2, 3}; qDebug() << f(std::move(myvec)); } leads to: OBSERVED RESULT Warning: Missing reference on non-trivial type (QVector<int>) [clazy-function-args-by-ref] EXPECTED RESULT No warning SOFTWARE/OS VERSIONS clazy version 1.10 LLVM (http://llvm.org/): LLVM version 12.0.1 -- You are receiving this mail because: You are watching all bug changes.