Home
last modified time | relevance | path

Searched hist:df3ab7c96ef8fc2f485876d3b0ce7a591b080027 (Results 1 – 2 of 2) sorted by relevance

/openbmc/phosphor-led-manager/manager/lamptest/
H A Dlamptest.cppdf3ab7c96ef8fc2f485876d3b0ce7a591b080027 Thu Aug 22 06:05:27 CDT 2024 George Liu <liuxiwei@ieisystem.com> clang-tidy: Enable performance-move-const-arg check

The check warns:
- if std::move() is called with a constant argument.
- if std::move() is called with an argument of a trivially-copyable
type.
- if the result of std::move() is passed as a const reference
argument.

In all three cases, the check will suggest a fix that removes the
std::move().

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Ibaf1050b39bbcaddd27473c6f2009adbfb96125f
/openbmc/phosphor-led-manager/
H A D.clang-tidydf3ab7c96ef8fc2f485876d3b0ce7a591b080027 Thu Aug 22 06:05:27 CDT 2024 George Liu <liuxiwei@ieisystem.com> clang-tidy: Enable performance-move-const-arg check

The check warns:
- if std::move() is called with a constant argument.
- if std::move() is called with an argument of a trivially-copyable
type.
- if the result of std::move() is passed as a const reference
argument.

In all three cases, the check will suggest a fix that removes the
std::move().

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Ibaf1050b39bbcaddd27473c6f2009adbfb96125f