Skip to content

Commit cf9b563

Browse files
committed
more formatting nits
1 parent 4729a1e commit cf9b563

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/viam/examples/modules/complex/summation/api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ grpc::Status SummationServer::Sum(grpc::ServerContext* context,
5858
SummationClient::SummationClient(std::string name, std::shared_ptr<grpc::Channel> channel)
5959
: Summation(std::move(name)),
6060
stub_(SummationService::NewStub(channel)),
61-
channel_(std::move(channel)) {};
61+
channel_(std::move(channel)) {}
6262

6363
double SummationClient::sum(std::vector<double> numbers) {
6464
return make_client_helper(this, *stub_, &StubType::Sum)

src/viam/sdk/tests/mocks/generic_mocks.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MockGenericComponent : public GenericComponent {
2626

2727
class MockGenericService : public GenericService {
2828
public:
29-
MockGenericService(std::string name) : GenericService(std::move(name)) {};
29+
MockGenericService(std::string name) : GenericService(std::move(name)) {}
3030
ProtoStruct do_command(const ProtoStruct& command) override;
3131

3232
static std::shared_ptr<MockGenericService> get_mock_generic();

src/viam/sdk/tests/test_mlmodel.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ namespace {
5656
using namespace ::viam::sdk;
5757
using namespace ::viam::sdktests;
5858

59-
// clang-format off: correctness varies too much by clang-format version
59+
// Disable clang format for this structure, as correctness varies too
60+
// much by clang-format version.
61+
//
62+
// clang-format off
6063
const struct MLModelService::metadata test_metadata {
6164
// `name`
6265
"my model",

0 commit comments

Comments
 (0)