setup
checks.x86_64-linux.clang-tidy
· build #514
· raw
1this derivation will be built:2 /nix/store/drz0vpcn435jb08izlbvnnz7z6fr1a2g-nix-grpc-store-clang-tidy-0.1.0-beta.3.drv3error: Cannot build '/nix/store/drz0vpcn435jb08izlbvnnz7z6fr1a2g-nix-grpc-store-clang-tidy-0.1.0-beta.3.drv'.4 Reason: builder failed with exit code 1.5 Output paths:6 /nix/store/mxagrc2gsy6bvclacbj7bcfgnxfb5ynq-nix-grpc-store-clang-tidy-0.1.0-beta.37 Last 25 log lines:8 > | const9 > ../src/pump.hh:65:27: error: 2 adjacent parameters of 'readCoalesced' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters,-warnings-as-errors]10 > 65 | inline auto readCoalesced(int sourceFd, std::span<char> buf) -> ssize_t11 > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~12 > ../src/pump.hh:65:31: note: the first parameter in the range is 'sourceFd'13 > 65 | inline auto readCoalesced(int sourceFd, std::span<char> buf) -> ssize_t14 > | ^~~~~~~~15 > ../src/pump.hh:65:57: note: the last parameter in the range is 'buf'16 > 65 | inline auto readCoalesced(int sourceFd, std::span<char> buf) -> ssize_t17 > | ^~~18 > ../src/pump.hh:159:23: error: variable 'count' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors]19 > 159 | ssize_t const count = readCoalesced(sourceFd, input);20 > | ^21 > | = 022 > ../src/pump.hh:276:44: error: the parameter 'initial' of type 'std::string' (aka 'basic_string<char>') is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors]23 > 276 | static auto makeInitialMsg(std::string initial) -> Msg24 > | ^25 > | const &26 > >>> /nix/store/xvjhx2zrkdnccqgf9wbmzlbqqjnbjqdk-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/client/channel.cc27 > Errors encountered while running clang-tidy28 > [1/1] (1/2) Processing file /build/source/src/client/channel.cc.29 > [1/1] (2/2) Processing file /build/source/src/client/channel.cc.30 > FAILED: [code=1] meson-internal__clang-tidy31 > /nix/store/jaa89dphx07w3r26y7gh79a7b1mld5p4-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always32 > ninja: build stopped: subcommand failed.33 For full logs, run:34 nix log /nix/store/drz0vpcn435jb08izlbvnnz7z6fr1a2g-nix-grpc-store-clang-tidy-0.1.0-beta.3.drv