[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:
Matthew Parkinson
2022-09-21 11:14:14 +01:00
committed by GitHub
parent 2f8f376db8
commit 38d4483b27
6 changed files with 51 additions and 54 deletions

View File

@@ -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