mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
Everywhere: Redundant inline specifier on constexpr functions (#3807)
Problem: - `constexpr` functions are decorated with the `inline` specifier keyword. This is redundant because `constexpr` functions are implicitly `inline`. - [dcl.constexpr], §7.1.5/2 in the C++11 standard): "constexpr functions and constexpr constructors are implicitly inline (7.1.2)". Solution: - Remove the redundant `inline` keyword.
This commit is contained in:
parent
a40abd6ce3
commit
d1fe6a0b53
13 changed files with 43 additions and 43 deletions
|
@ -92,7 +92,7 @@ static_assert(explode_byte(0x80) == 0x80808080);
|
|||
static_assert(explode_byte(0x7f) == 0x7f7f7f7f);
|
||||
static_assert(explode_byte(0) == 0);
|
||||
|
||||
inline constexpr size_t align_up_to(const size_t value, const size_t alignment)
|
||||
constexpr size_t align_up_to(const size_t value, const size_t alignment)
|
||||
{
|
||||
return (value + (alignment - 1)) & ~(alignment - 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue