summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_engine/traverser/traverser.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-27 11:14:38 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-27 11:40:40 +0200
commitbc39ecc0385dd7e0cb9e1df84628e4c6dde34ab5 (patch)
tree4556b3f5f5898ef56316fc1612a04402b79903ef /src/buildtool/execution_engine/traverser/traverser.hpp
parent340f3478dc2bffe1a75496e5c120e88274fee698 (diff)
downloadjustbuild-bc39ecc0385dd7e0cb9e1df84628e4c6dde34ab5.tar.gz
Reformat code to comply with clang-format 18
... while keeping our .clang-format file.
Diffstat (limited to 'src/buildtool/execution_engine/traverser/traverser.hpp')
-rw-r--r--src/buildtool/execution_engine/traverser/traverser.hpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/buildtool/execution_engine/traverser/traverser.hpp b/src/buildtool/execution_engine/traverser/traverser.hpp
index e99c2565..8cfb991f 100644
--- a/src/buildtool/execution_engine/traverser/traverser.hpp
+++ b/src/buildtool/execution_engine/traverser/traverser.hpp
@@ -31,10 +31,8 @@ template <class T>
concept Runnable = requires(T const r,
DependencyGraph::ActionNode const* action,
DependencyGraph::ArtifactNode const* artifact) {
- { r.Process(action) }
- ->same_as<bool>;
- { r.Process(artifact) }
- ->same_as<bool>;
+ { r.Process(action) } -> same_as<bool>;
+ { r.Process(artifact) } -> same_as<bool>;
};
/// \brief Class to traverse the dependency graph executing necessary actions
@@ -67,9 +65,8 @@ class Traverser {
// Traverse starting by the artifacts with the given identifiers, avoiding
// executing actions that are not strictly needed to build the given
// artifacts
- [[nodiscard]] auto Traverse(
- std::unordered_set<ArtifactIdentifier> const& target_ids) noexcept
- -> bool;
+ [[nodiscard]] auto Traverse(std::unordered_set<ArtifactIdentifier> const&
+ target_ids) noexcept -> bool;
private:
Executor const& runner_{};