Skip to content

Commit 3a667c9

Browse files
committed
fix trailing semis that various versions of clang format treat differently
1 parent 2399896 commit 3a667c9

31 files changed

+38
-38
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ API API::traits<Gizmo>::api() {
2424
return {"viam", "component", "gizmo"};
2525
}
2626

27-
Gizmo::Gizmo(std::string name) : Component(std::move(name)){};
27+
Gizmo::Gizmo(std::string name) : Component(std::move(name)) {}
2828

2929
/* Gizmo server methods */
3030

3131
GizmoServer::GizmoServer(std::shared_ptr<ResourceManager> manager)
32-
: ResourceServer(std::move(manager)){};
32+
: ResourceServer(std::move(manager)) {}
3333

3434
grpc::Status GizmoServer::DoOne(grpc::ServerContext* context,
3535
const DoOneRequest* request,
@@ -170,7 +170,7 @@ grpc::Status GizmoServer::DoTwo(::grpc::ServerContext* context,
170170
/* Gizmo client methods */
171171

172172
GizmoClient::GizmoClient(std::string name, std::shared_ptr<grpc::Channel> channel)
173-
: Gizmo(std::move(name)), stub_(GizmoService::NewStub(channel)), channel_(std::move(channel)){};
173+
: Gizmo(std::move(name)), stub_(GizmoService::NewStub(channel)), channel_(std::move(channel)) {}
174174

175175
bool GizmoClient::do_one(std::string arg1) {
176176
return make_client_helper(this, *stub_, &StubType::DoOne)

src/viam/examples/modules/complex/gizmo/impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ using namespace viam::sdk;
1414
// `validate` method that checks config validity.
1515
class MyGizmo : public Gizmo, public Reconfigurable {
1616
public:
17-
MyGizmo(std::string name, std::string arg1) : Gizmo(std::move(name)), arg1_(std::move(arg1)){};
17+
MyGizmo(std::string name, std::string arg1) : Gizmo(std::move(name)), arg1_(std::move(arg1)) {}
1818
MyGizmo(const Dependencies& deps, const ResourceConfig& cfg) : Gizmo(cfg.name()) {
1919
this->reconfigure(deps, cfg);
20-
};
20+
}
2121
void reconfigure(const Dependencies& deps, const ResourceConfig& cfg) override;
2222
static std::vector<std::string> validate(ResourceConfig cfg);
2323

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ API API::traits<Summation>::api() {
2424
return {"viam", "service", "summation"};
2525
}
2626

27-
Summation::Summation(std::string name) : Service(std::move(name)){};
27+
Summation::Summation(std::string name) : Service(std::move(name)) {}
2828

2929
/* Summation server methods */
3030

3131
SummationServer::SummationServer(std::shared_ptr<ResourceManager> manager)
32-
: ResourceServer(std::move(manager)){};
32+
: ResourceServer(std::move(manager)) {}
3333

3434
grpc::Status SummationServer::Sum(grpc::ServerContext* context,
3535
const SumRequest* request,
@@ -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/examples/modules/complex/summation/impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ using namespace viam::sdk;
1313
class MySummation : public Summation, public Reconfigurable {
1414
public:
1515
MySummation(std::string name, bool subtract)
16-
: Summation(std::move(name)), subtract_(subtract){};
16+
: Summation(std::move(name)), subtract_(subtract) {}
1717
MySummation(const Dependencies& deps, const ResourceConfig& cfg) : Summation(cfg.name()) {
1818
this->reconfigure(deps, cfg);
19-
};
19+
}
2020
void reconfigure(const Dependencies& deps, const ResourceConfig& cfg) override;
2121
static std::vector<std::string> validate(ResourceConfig cfg);
2222

src/viam/sdk/components/base.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ bool operator==(const Base::properties& lhs, const Base::properties& rhs) {
2424
lhs.turning_radius_meters == rhs.turning_radius_meters;
2525
}
2626

27-
Base::Base(std::string name) : Component(std::move(name)){};
27+
Base::Base(std::string name) : Component(std::move(name)) {}
2828

2929
} // namespace sdk
3030
} // namespace viam

src/viam/sdk/components/board.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ API API::traits<Board>::api() {
1616
return {kRDK, kComponent, "board"};
1717
}
1818

19-
Board::Board(std::string name) : Component(std::move(name)){};
19+
Board::Board(std::string name) : Component(std::move(name)) {}
2020

2121
bool operator==(const Board::status& lhs, const Board::status& rhs) {
2222
return (lhs.analog_reader_values == rhs.analog_reader_values &&

src/viam/sdk/components/camera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ std::string Camera::normalize_mime_type(const std::string& str) {
130130
return mime_type;
131131
}
132132

133-
Camera::Camera(std::string name) : Component(std::move(name)){};
133+
Camera::Camera(std::string name) : Component(std::move(name)) {}
134134

135135
bool operator==(const Camera::point_cloud& lhs, const Camera::point_cloud& rhs) {
136136
return lhs.mime_type == rhs.mime_type && lhs.pc == rhs.pc;

src/viam/sdk/components/encoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ API API::traits<Encoder>::api() {
1515
return {kRDK, kComponent, "encoder"};
1616
}
1717

18-
Encoder::Encoder(std::string name) : Component(std::move(name)){};
18+
Encoder::Encoder(std::string name) : Component(std::move(name)) {}
1919

2020
bool operator==(const Encoder::position& lhs, const Encoder::position& rhs) {
2121
return (lhs.value == rhs.value && lhs.type == rhs.type);

src/viam/sdk/components/generic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ API API::traits<GenericComponent>::api() {
1111
return {kRDK, kComponent, "generic"};
1212
}
1313

14-
GenericComponent::GenericComponent(std::string name) : Component(std::move(name)){};
14+
GenericComponent::GenericComponent(std::string name) : Component(std::move(name)) {}
1515

1616
} // namespace sdk
1717
} // namespace viam

src/viam/sdk/components/motor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ API API::traits<Motor>::api() {
1616
return {kRDK, kComponent, "motor"};
1717
}
1818

19-
Motor::Motor(std::string name) : Component(std::move(name)){};
19+
Motor::Motor(std::string name) : Component(std::move(name)) {}
2020

2121
bool operator==(const Motor::power_status& lhs, const Motor::power_status& rhs) {
2222
return (lhs.is_on == rhs.is_on && lhs.power_pct == rhs.power_pct);

0 commit comments

Comments
 (0)