diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-01-05 11:49:17 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-05 20:05:12 +0100 |
commit | 0c75a14b4fe0c432e25ae797d5722ab3729660f7 (patch) | |
tree | 3a7a940ff68c9053bcc4e378aa2f0bab3c75d7c2 /AK/Time.h | |
parent | 8f5c1ef29cd35622c4671af592bc0d483c162a22 (diff) | |
download | serenity-0c75a14b4fe0c432e25ae797d5722ab3729660f7.zip |
AK: Move TimeSpecType concept inside the AK namespace
This is just to allow removing the 'clang-format off' directive. This
concept is only used within this header, so it doesn't need to be in the
global namespace.
Diffstat (limited to 'AK/Time.h')
-rw-r--r-- | AK/Time.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -15,6 +15,8 @@ struct timeval; struct timespec; +namespace AK { + // Concept to detect types which look like timespec without requiring the type. template<typename T> concept TimeSpecType = requires(T t) @@ -23,10 +25,6 @@ concept TimeSpecType = requires(T t) t.tv_nsec; }; -// FIXME: remove once Clang formats these properly. -// clang-format off -namespace AK { - // Month and day start at 1. Month must be >= 1 and <= 12. // The return value is 0-indexed, that is 0 is Sunday, 1 is Monday, etc. // Day may be negative or larger than the number of days @@ -298,7 +296,6 @@ inline bool operator!=(const T& a, const T& b) } } -// clang-format on using AK::day_of_week; using AK::day_of_year; |