mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
AK: Add workaround for clang-format 12 problems with concepts
This commit is contained in:
parent
15ad4a8fd6
commit
4566387ba5
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,10 @@ constexpr auto round_up_to_power_of_two(T value, U power_of_two) requires(IsInte
|
||||||
return ((value - 1) & ~(power_of_two - 1)) + power_of_two;
|
return ((value - 1) & ~(power_of_two - 1)) + power_of_two;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// HACK: clang-format does not format this correctly because of the requires clause above.
|
||||||
|
// Disabling formatting for that doesn't help either.
|
||||||
|
//
|
||||||
|
// clang-format off
|
||||||
namespace std {
|
namespace std {
|
||||||
|
|
||||||
// NOTE: This is in the "std" namespace since some compiler features rely on it.
|
// NOTE: This is in the "std" namespace since some compiler features rely on it.
|
||||||
|
@ -27,6 +31,7 @@ constexpr T&& move(T& arg)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
using std::move;
|
using std::move;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue