Skip to content

Commit

Permalink
style: re-run clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSeemaier committed Dec 26, 2024
1 parent bba497e commit 7b95c2c
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 24 deletions.
2 changes: 1 addition & 1 deletion apps/io/shm_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ namespace remapping {

void write(const std::string &filename, std::span<const NodeID> partition);

} // namespace partition
} // namespace remapping

} // namespace kaminpar::shm::io
5 changes: 1 addition & 4 deletions external/growt/misc/submodules/xxhash/tests/bench/timefn.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ typedef unsigned long long PTime; /* does not support compilers without long lon

#include <Windows.h> /* LARGE_INTEGER */
typedef LARGE_INTEGER UTIL_time_t;
#define UTIL_TIME_INITIALIZER \
{ \
{ 0, 0 } \
}
#define UTIL_TIME_INITIALIZER {{0, 0}}

#elif defined(__APPLE__) && defined(__MACH__)

Expand Down
4 changes: 3 additions & 1 deletion external/growt/misc/submodules/xxhash/xxhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,9 @@ struct XXH3_state_s {
* it's still necessary to use XXH3_NNbits_reset*() afterwards.
*/
#define XXH3_INITSTATE(XXH3_state_ptr) \
{ (XXH3_state_ptr)->seed = 0; }
{ \
(XXH3_state_ptr)->seed = 0; \
}

/* === Experimental API === */
/* Symbols defined below must be considered tied to a specific library version. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,4 +576,3 @@ template <typename DistributedGraphType> class CompactHashingGainCache {
};

} // namespace kaminpar::dist

Original file line number Diff line number Diff line change
Expand Up @@ -619,4 +619,3 @@ template <typename DistributedGraphType> class LazyCompactHashingGainCache {
};

} // namespace kaminpar::dist

1 change: 0 additions & 1 deletion kaminpar-shm/ckaminpar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,3 @@ kaminpar_edge_weight_t kaminpar_compute_partition_with_max_block_weights(
std::move(max_block_weights_vec), {partition, kaminpar->n}
);
}

1 change: 0 additions & 1 deletion kaminpar-shm/coarsening/overlay_cluster_coarsener.cc
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,3 @@ bool OverlayClusteringCoarsener::keep_allocated_memory() const {
}

} // namespace kaminpar::shm

1 change: 0 additions & 1 deletion kaminpar-shm/coarsening/overlay_cluster_coarsener.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,3 @@ class OverlayClusteringCoarsener : public Coarsener {
};

} // namespace kaminpar::shm

7 changes: 1 addition & 6 deletions kaminpar-shm/partitioning/deep/async_initial_partitioning.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,7 @@ PartitionedGraph AsyncInitialPartitioner::partition_recursive(

if (p_graph.k() < k_prime) {
extend_partition(
p_graph,
k_prime,
_input_ctx,
_tmp_extraction_mem_pool_ets,
_bipartitioner_pool,
num_threads
p_graph, k_prime, _input_ctx, _tmp_extraction_mem_pool_ets, _bipartitioner_pool, num_threads
);
p_ctx = create_kway_context(_input_ctx, p_graph);
}
Expand Down
3 changes: 1 addition & 2 deletions kaminpar-shm/partitioning/deep/vcycle_deep_multilevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class VcycleDeepMultilevelPartitioner : public Partitioner {
VcycleDeepMultilevelPartitioner(const Graph &input_graph, const Context &input_ctx);

VcycleDeepMultilevelPartitioner(const VcycleDeepMultilevelPartitioner &) = delete;
VcycleDeepMultilevelPartitioner &
operator=(const VcycleDeepMultilevelPartitioner &) = delete;
VcycleDeepMultilevelPartitioner &operator=(const VcycleDeepMultilevelPartitioner &) = delete;

VcycleDeepMultilevelPartitioner(VcycleDeepMultilevelPartitioner &&) = delete;
VcycleDeepMultilevelPartitioner &operator=(VcycleDeepMultilevelPartitioner &&) = delete;
Expand Down
7 changes: 4 additions & 3 deletions kaminpar-shm/partitioning/helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ PartitionContext create_twoway_context(
}

DBG << "[" << current_block << "/" << current_k << "]-> adapted epsilon from "
<< input_ctx.partition.epsilon() << " to " << adapted_eps << ", changing max block weights to "
<< max_block_weights[0] << " + " << max_block_weights[1]
<< ", will be relaxed with parameters max node weight " << graph.max_node_weight();
<< input_ctx.partition.epsilon() << " to " << adapted_eps
<< ", changing max block weights to " << max_block_weights[0] << " + "
<< max_block_weights[1] << ", will be relaxed with parameters max node weight "
<< graph.max_node_weight();

p_ctx.setup(graph, std::move(max_block_weights), true);
} else {
Expand Down
3 changes: 2 additions & 1 deletion kaminpar-shm/partitioning/rb/rb_multilevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class RBMultilevelPartitioner : public Partitioner {
PartitionedGraph partition() final;

private:
PartitionedGraph partition_recursive(const Graph &graph, BlockID current_block, BlockID current_k);
PartitionedGraph
partition_recursive(const Graph &graph, BlockID current_block, BlockID current_k);

PartitionedGraph bipartition(const Graph &graph, BlockID current_block, BlockID current_k);

Expand Down
2 changes: 1 addition & 1 deletion kaminpar-shm/refinement/lp/lp_refiner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class LPRefinerImpl final
}

[[nodiscard]] bool accept_neighbor(const NodeID u, const NodeID v) {
return _communities.empty() || _communities[u] == _communities[v];
return _communities.empty() || _communities[u] == _communities[v];
}

bool move_cluster_weight(
Expand Down

0 comments on commit 7b95c2c

Please sign in to comment.