Skip to content

Commit

Permalink
add clang-format version print
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Dec 17, 2024
1 parent a639c31 commit c3053bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ jobs:
- uses: actions/checkout@v4
- name: Analyze
run: |
clang-format --version
clang-format --dry-run --Werror -style=file $(find ./ -name '*.cc' -print)
clang-format --dry-run --Werror -style=file $(find ./ -name '*.hh' -print)
4 changes: 2 additions & 2 deletions include/reactor-cpp/multiport.hh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected:

public:
explicit BaseMultiport(std::string name)
: multiport_name_(std::move(name)){};
: multiport_name_(std::move(name)) {};
~BaseMultiport() = default;
[[nodiscard]] auto name() const -> std::string { return multiport_name_; }
};
Expand All @@ -73,7 +73,7 @@ public:
using const_iterator = typename std::vector<T>::const_iterator;

explicit Multiport(const std::string& name) noexcept
: BaseMultiport(name){};
: BaseMultiport(name) {};
~Multiport() noexcept = default;

auto operator==(const Multiport& other) const noexcept -> bool {
Expand Down
4 changes: 2 additions & 2 deletions include/reactor-cpp/mutations/bank.hh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ public:
, desired_size_(other.desired_size_)
, size_before_application_(other.size_before_application_)
, reactor_(other.reactor_)
, create_lambda_(other.create_lambda_){};
, create_lambda_(other.create_lambda_) {};
MutationChangeBankSize(MutationChangeBankSize&& other) noexcept
: bank_(other.bank_)
, desired_size_(other.desired_size_)
, size_before_application_(other.size_before_application_)
, reactor_(other.reactor_)
, create_lambda_(other.create_lambda_){};
, create_lambda_(other.create_lambda_) {};
explicit MutationChangeBankSize(std::vector<T>* bank, Reactor* reactor, std::size_t size,
std::function<T(Reactor* parent_reactor, std::size_t index)> create_lambda);
~MutationChangeBankSize() override = default;
Expand Down

0 comments on commit c3053bc

Please sign in to comment.