Skip to content

Commit c3053bc

Browse files
committed
add clang-format version print
1 parent a639c31 commit c3053bc

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/clang-format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ jobs:
1010
- uses: actions/checkout@v4
1111
- name: Analyze
1212
run: |
13+
clang-format --version
1314
clang-format --dry-run --Werror -style=file $(find ./ -name '*.cc' -print)
1415
clang-format --dry-run --Werror -style=file $(find ./ -name '*.hh' -print)

include/reactor-cpp/multiport.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected:
5151

5252
public:
5353
explicit BaseMultiport(std::string name)
54-
: multiport_name_(std::move(name)){};
54+
: multiport_name_(std::move(name)) {};
5555
~BaseMultiport() = default;
5656
[[nodiscard]] auto name() const -> std::string { return multiport_name_; }
5757
};
@@ -73,7 +73,7 @@ public:
7373
using const_iterator = typename std::vector<T>::const_iterator;
7474

7575
explicit Multiport(const std::string& name) noexcept
76-
: BaseMultiport(name){};
76+
: BaseMultiport(name) {};
7777
~Multiport() noexcept = default;
7878

7979
auto operator==(const Multiport& other) const noexcept -> bool {

include/reactor-cpp/mutations/bank.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ public:
3030
, desired_size_(other.desired_size_)
3131
, size_before_application_(other.size_before_application_)
3232
, reactor_(other.reactor_)
33-
, create_lambda_(other.create_lambda_){};
33+
, create_lambda_(other.create_lambda_) {};
3434
MutationChangeBankSize(MutationChangeBankSize&& other) noexcept
3535
: bank_(other.bank_)
3636
, desired_size_(other.desired_size_)
3737
, size_before_application_(other.size_before_application_)
3838
, reactor_(other.reactor_)
39-
, create_lambda_(other.create_lambda_){};
39+
, create_lambda_(other.create_lambda_) {};
4040
explicit MutationChangeBankSize(std::vector<T>* bank, Reactor* reactor, std::size_t size,
4141
std::function<T(Reactor* parent_reactor, std::size_t index)> create_lambda);
4242
~MutationChangeBankSize() override = default;

0 commit comments

Comments
 (0)