Skip to content

Commit 25c5ed2

Browse files
committed
fixing clang version
1 parent 133c4e0 commit 25c5ed2

12 files changed

Lines changed: 17 additions & 17 deletions

File tree

.github/workflows/cpp-formatter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
uses: actions/checkout@v4
1111

1212
- name: Clang Formatter
13-
uses: DoozyX/clang-format-lint-action@v0.18.1
13+
uses: DoozyX/clang-format-lint-action@v0.18.2
1414
with:
15-
clangFormatVersion: 14
15+
clangFormatVersion: 18
1616
source: "."

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,8 +2286,8 @@ int main(int argc, char *argv[]) {
22862286
"defaulted",
22872287
yasmin::Concurrence::OutcomeMap{
22882288
{"outcome1",
2289-
yasmin::Concurrence::StateOutcomeMap{
2290-
{"FOO", "outcome1"}, {"BAR", "outcome3"}}},
2289+
yasmin::Concurrence::StateOutcomeMap{{"FOO", "outcome1"},
2290+
{"BAR", "outcome3"}}},
22912291
{"outcome2", yasmin::Concurrence::StateOutcomeMap{
22922292
{"FOO", "outcome2"}, {"BAR", "outcome3"}}}});
22932293

yasmin/include/yasmin/blackboard/blackboard_value_interface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace blackboard {
3232
class BlackboardValueInterface {
3333
public:
3434
/** @brief Virtual destructor for the interface. */
35-
virtual ~BlackboardValueInterface(){};
35+
virtual ~BlackboardValueInterface() {};
3636

3737
/**
3838
* @brief Convert the value to a string representation.

yasmin_demos/src/action_client_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class FibonacciState : public yasmin_ros::ActionState<Fibonacci> {
8080
"/fibonacci",
8181
std::bind(&FibonacciState::create_goal_handler, this, _1),
8282
std::bind(&FibonacciState::response_handler, this, _1, _2),
83-
std::bind(&FibonacciState::print_feedback, this, _1, _2)){};
83+
std::bind(&FibonacciState::print_feedback, this, _1, _2)) {};
8484

8585
/**
8686
* @brief Callback for creating the Fibonacci action goal.

yasmin_demos/src/bar_state.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* This state logs the value from the blackboard and provides
3434
* a single outcome to transition.
3535
*/
36-
BarState::BarState() : yasmin::State({"outcome3"}){};
36+
BarState::BarState() : yasmin::State({"outcome3"}) {};
3737

3838
/**
3939
* @brief Executes the Bar state logic.
@@ -54,6 +54,6 @@ BarState::execute(std::shared_ptr<yasmin::blackboard::Blackboard> blackboard) {
5454
return "outcome3";
5555
};
5656

57-
BarState::~BarState(){};
57+
BarState::~BarState() {};
5858

5959
PLUGINLIB_EXPORT_CLASS(BarState, yasmin::State)

yasmin_demos/src/concurrence_demo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class FooState : public yasmin::State {
4242
* @brief Constructs a FooState object, initializing the counter.
4343
*/
4444
FooState()
45-
: yasmin::State({"outcome1", "outcome2", "outcome3"}), counter(0){};
45+
: yasmin::State({"outcome1", "outcome2", "outcome3"}), counter(0) {};
4646

4747
/**
4848
* @brief Executes the Foo state logic.
@@ -159,8 +159,8 @@ int main(int argc, char *argv[]) {
159159
"defaulted",
160160
yasmin::Concurrence::OutcomeMap{
161161
{"outcome1",
162-
yasmin::Concurrence::StateOutcomeMap{
163-
{"FOO", "outcome1"}, {"BAR", "outcome3"}}},
162+
yasmin::Concurrence::StateOutcomeMap{{"FOO", "outcome1"},
163+
{"BAR", "outcome3"}}},
164164
{"outcome2", yasmin::Concurrence::StateOutcomeMap{
165165
{"FOO", "outcome2"}, {"BAR", "outcome3"}}}});
166166

yasmin_demos/src/foo_state.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ FooState::execute(std::shared_ptr<yasmin::blackboard::Blackboard> blackboard) {
6262
}
6363
};
6464

65-
FooState::~FooState(){};
65+
FooState::~FooState() {};
6666

6767
PLUGINLIB_EXPORT_CLASS(FooState, yasmin::State)

yasmin_demos/src/parameters_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class FooState : public yasmin::State {
4141
/**
4242
* @brief Constructs a FooState object, initializing the counter.
4343
*/
44-
FooState() : yasmin::State({"outcome1", "outcome2"}), counter(0){};
44+
FooState() : yasmin::State({"outcome1", "outcome2"}), counter(0) {};
4545

4646
/**
4747
* @brief Executes the Foo state logic.

yasmin_demos/src/publisher_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class PublishIntState
5050
"count", // topic name
5151
std::bind(&PublishIntState::create_int_msg, this,
5252
_1) // create msg handler callback
53-
){};
53+
) {};
5454

5555
/**
5656
* @brief Create a new Int message.

yasmin_demos/src/remap_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class FooState : public yasmin::State {
3434
/**
3535
* @brief Constructs a FooState object, initializing the counter.
3636
*/
37-
FooState() : yasmin::State({yasmin_ros::basic_outcomes::SUCCEED}){};
37+
FooState() : yasmin::State({yasmin_ros::basic_outcomes::SUCCEED}) {};
3838

3939
/**
4040
* @brief Executes the Foo state logic.

0 commit comments

Comments
 (0)