[NFC] Simplify static constexpr inline (#563)
* [NFC] Simplify static constexpr inline `constexpr` => `inline` and when not in a class scope `constexpr` => `static` This PR removes the redundant use of `inline` and `static`. It also prefers `static constexpr` over `constexpr static`
This commit is contained in:
committed by
GitHub
parent
2f8f376db8
commit
38d4483b27
@@ -15,14 +15,14 @@ namespace snmalloc
|
||||
* this as a field of the global object:
|
||||
*
|
||||
* ```c++
|
||||
* constexpr static snmalloc::Flags Options{};
|
||||
* static constexpr snmalloc::Flags Options{};
|
||||
* ```
|
||||
*
|
||||
* A global configuration that wished to use out-of-line message queues but
|
||||
* accept the defaults for everything else would instead do this:
|
||||
*
|
||||
* ```c++
|
||||
* constexpr static snmalloc::Flags Options{.IsQueueInline = false};
|
||||
* static constexpr snmalloc::Flags Options{.IsQueueInline = false};
|
||||
* ```
|
||||
*
|
||||
* To maintain backwards source compatibility in future versions, any new
|
||||
|
||||
Reference in New Issue
Block a user