Upgrade clang-format to version 15 (#6859)
This commit is contained in:
@@ -64,9 +64,8 @@ void partitionLevel(const std::vector<BisectionID> &node_to_bisection_id,
|
||||
std::accumulate(permutation.begin() + cell.begin,
|
||||
permutation.begin() + cell.end,
|
||||
BisectionID{0},
|
||||
[&node_to_bisection_id](const BisectionID lhs, const NodeID rhs) {
|
||||
return lhs | node_to_bisection_id[rhs];
|
||||
});
|
||||
[&node_to_bisection_id](const BisectionID lhs, const NodeID rhs)
|
||||
{ return lhs | node_to_bisection_id[rhs]; });
|
||||
// masks all bit strictly higher then cell.bit
|
||||
BOOST_ASSERT(sizeof(unsigned long long) * CHAR_BIT > sizeof(BisectionID) * CHAR_BIT);
|
||||
const BisectionID mask = (1ULL << (cell.bit + 1)) - 1;
|
||||
@@ -88,9 +87,8 @@ void partitionLevel(const std::vector<BisectionID> &node_to_bisection_id,
|
||||
std::uint32_t middle =
|
||||
std::partition(permutation.begin() + cell.begin,
|
||||
permutation.begin() + cell.end,
|
||||
[is_left_mask, &node_to_bisection_id](const auto node_id) {
|
||||
return node_to_bisection_id[node_id] & is_left_mask;
|
||||
}) -
|
||||
[is_left_mask, &node_to_bisection_id](const auto node_id)
|
||||
{ return node_to_bisection_id[node_id] & is_left_mask; }) -
|
||||
permutation.begin();
|
||||
|
||||
if (bit > 0)
|
||||
|
||||
Reference in New Issue
Block a user