Skip to content

Commit

Permalink
Remove the unneeded clang-format pragmas.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhuighuy committed Jun 10, 2023
1 parent c7f569f commit 11949e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 0 additions & 2 deletions source/Storm/Bittern/Matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ concept matrix_shape =
template<class Matrix>
concept matrix = //
requires(Matrix& mat) {
// clang-format off
{ mat.shape() } -> matrix_shape;
{ std::apply(mat, mat.shape()) } /*-> referenceable */;
// clang-format on
};

// -----------------------------------------------------------------------------
Expand Down
7 changes: 1 addition & 6 deletions source/Storm/Mallard/Shape.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ enum class Type : std::uint8_t {
template<class Shape>
concept shape =
requires(Shape shape) {
// clang-format off
{ shape.type() } -> std::same_as<Type>;
{ shape.nodes() } -> std::ranges::forward_range;
// clang-format off
} &&
std::same_as<
std::ranges::range_value_t<decltype(std::declval<Shape>().nodes())>,
Expand Down Expand Up @@ -100,8 +98,7 @@ template<size_t Index, shape Shape>
requires ((Index == 0) ||
(Index == 1 && (shape2D<Shape> || shape3D<Shape>) ) ||
(Index == 2 && shape3D<Shape>) )
constexpr auto parts(const Shape& shape) noexcept
{
constexpr auto parts(const Shape& shape) noexcept {
if constexpr (Index == 0) {
return shape.nodes();
} else if constexpr (Index == 1) {
Expand All @@ -118,9 +115,7 @@ template<class Shape, class Mesh>
concept complex_shape =
shape<Shape> && mesh<Mesh> &&
requires(Shape shape, const Mesh& mesh) {
// clang-format off
{ shape.pieces(mesh) } -> std::ranges::forward_range;
// clang-format on
} &&
shape<std::ranges::range_value_t<decltype( //
std::declval<Shape>().pieces(std::declval<Mesh>()))>>;
Expand Down
6 changes: 2 additions & 4 deletions source/Storm/Utils/Meta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,9 @@ consteval auto make_seq() {
if constexpr (First >= Last) {
return list_v<>;
} else {
// clang-format off
return []<size_t... I>(std::integer_sequence<size_t, I...>) {
return ([]<size_t... I>(std::integer_sequence<size_t, I...>) {
return list_v<Type<First + I>...>;
}(std::make_integer_sequence<size_t, Last - First>{});
// clang-format on
}(std::make_integer_sequence<size_t, Last - First>{}));
}
}

Expand Down

0 comments on commit 11949e8

Please sign in to comment.