compile
command_line: /usr/bin/ccache /usr/bin/clazy -I/home/dp/.cache/chorse/cmake/clazy/binary/Utilities -I/home/dp/.cache/chorse/cmake/clazy/binary/Source -I/home/dp/.cache/chorse/cmake/clazy/source/Source -I/home/dp/.cache/chorse/cmake/clazy/source/Source/LexerParser -isystem /home/dp/.cache/chorse/cmake/clazy/source/Utilities/std -isystem /home/dp/.cache/chorse/cmake/clazy/source/Utilities -Wnon-virtual-dtor -Wcast-align -Wchar-subscripts -Wall -W -Wshadow -Wpointer-arith -Wformat-security -Wundef -g -std=c++17 -Wno-deprecated-declarations -MD -MT Source/CMakeFiles/CMakeLib.dir/cmFileAPIConfigureLog.cxx.o -MF Source/CMakeFiles/CMakeLib.dir/cmFileAPIConfigureLog.cxx.o.d -o Source/CMakeFiles/CMakeLib.dir/cmFileAPIConfigureLog.cxx.o -c /home/dp/.cache/chorse/cmake/clazy/source/Source/cmFileAPIConfigureLog.cxx
working_directory: "/home/dp/.cache/chorse/cmake/clazy/binary"
Target: CMakeLib
Target Type: STATIC_LIBRARY
Source: /home/dp/.cache/chorse/cmake/clazy/source/Source/cmFileAPIConfigureLog.cxx
Language: C++
Config: Debug
stderr:
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmFileAPIConfigureLog.cxx:7:
/home/dp/.cache/chorse/cmake/clazy/source/Source/cmFileAPI.h:87:27: warning: operator<: Pass small and trivially-copyable type by value (const Object & l) [-Wclazy-function-args-by-value]
87 | friend bool operator<(Object const& l, Object const& r)
| ^~~~~~~~~~~~~~~
| Object l
/home/dp/.cache/chorse/cmake/clazy/source/Source/cmFileAPI.h:87:44: warning: operator<: Pass small and trivially-copyable type by value (const Object & r) [-Wclazy-function-args-by-value]
87 | friend bool operator<(Object const& l, Object const& r)
| ^~~~~~~~~~~~~~~
| Object r
/home/dp/.cache/chorse/cmake/clazy/source/Source/cmFileAPI.h:98:28: warning: operator!=: Pass small and trivially-copyable type by value (const Object & l) [-Wclazy-function-args-by-value]
98 | friend bool operator!=(Object const& l, Object const& r)
| ^~~~~~~~~~~~~~~
| Object l
/home/dp/.cache/chorse/cmake/clazy/source/Source/cmFileAPI.h:98:45: warning: operator!=: Pass small and trivially-copyable type by value (const Object & r) [-Wclazy-function-args-by-value]
98 | friend bool operator!=(Object const& l, Object const& r)
| ^~~~~~~~~~~~~~~
| Object r
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmFileAPIConfigureLog.cxx:9:
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmake.h:22:
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmGlobalGeneratorFactory.h:8:
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmGlobalGenerator.h:27:
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmLocalGenerator.h:21:
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmGeneratorTarget.h:24:
/home/dp/.cache/chorse/cmake/clazy/source/Source/cmStandardLevel.h:17:25: warning: operator<: Pass small and trivially-copyable type by value (const cmStandardLevel & l) [-Wclazy-function-args-by-value]
17 | friend bool operator<(cmStandardLevel const& l, cmStandardLevel const& r)
| ^~~~~~~~~~~~~~~~~~~~~~~~
| cmStandardLevel l
/home/dp/.cache/chorse/cmake/clazy/source/Source/cmStandardLevel.h:17:51: warning: operator<: Pass small and trivially-copyable type by value (const cmStandardLevel & r) [-Wclazy-function-args-by-value]
17 | friend bool operator<(cmStandardLevel const& l, cmStandardLevel const& r)
| ^~~~~~~~~~~~~~~~~~~~~~~~
| cmStandardLevel r
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmFileAPIConfigureLog.cxx:9:
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmake.h:26:
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmState.h:18:
In file included from /home/dp/.cache/chorse/cmake/clazy/source/Source/cmDefinitions.h:14:
/home/dp/.cache/chorse/cmake/clazy/source/Source/cmString.hxx:90:34: warning: cm::IntoString<char>::into_string: Pass small and trivially-copyable type by value (const char & c) [-Wclazy-function-args-by-value]
90 | static std::string into_string(char const& c) { return std::string(1, c); }
| ^~~~~~~~~~~~~
| char c
/home/dp/.cache/chorse/cmake/clazy/source/Source/cmString.hxx:145:27: warning: cm::AsStringView<char>::view: Pass small and trivially-copyable type by value (const char & s) [-Wclazy-function-args-by-value]
145 | static string_view view(char const& s) { return string_view(&s, 1); }
| ^~~~~~~~~~~~~
| char s
/home/dp/.cache/chorse/cmake/clazy/source/Source/cmString.hxx:151:27: warning: cm::AsStringView<std::basic_string_view<char>>::view: Pass small and trivially-copyable type by value (const string_view & s) [-Wclazy-function-args-by-value]
151 | static string_view view(string_view const& s) { return s; }
| ^~~~~~~~~~~~~~~~~~~~
| string_view s
/home/dp/.cache/chorse/cmake/clazy/source/Source/cmString.hxx:157:27: warning: cm::AsStringView<cm::static_string_view>::view: Pass small and trivially-copyable type by value (const static_string_view & s) [-Wclazy-function-args-by-value]
157 | static string_view view(static_string_view const& s) { return s; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| static_string_view s
10 warnings generated.