From b34b084619879111b9811d9334462d85272f3586 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 7 Jun 2019 11:46:22 +0200 Subject: [PATCH] AK: Run clang-format on everything. --- AK/AKString.h | 3 ++- AK/ByteBuffer.h | 3 ++- AK/RetainPtr.h | 3 ++- AK/Retained.h | 3 ++- AK/StdLibExtras.h | 8 +++++--- AK/StringImpl.h | 9 ++++++--- AK/Types.h | 3 ++- 7 files changed, 21 insertions(+), 11 deletions(-) diff --git a/AK/AKString.h b/AK/AKString.h index 612dae31cc..a229f746e7 100644 --- a/AK/AKString.h +++ b/AK/AKString.h @@ -84,7 +84,8 @@ public: { } - enum class CaseSensitivity { + enum class CaseSensitivity + { CaseInsensitive, CaseSensitive, }; diff --git a/AK/ByteBuffer.h b/AK/ByteBuffer.h index c472e94022..d74798983c 100644 --- a/AK/ByteBuffer.h +++ b/AK/ByteBuffer.h @@ -60,7 +60,8 @@ public: void grow(int size); private: - enum ConstructionMode { + enum ConstructionMode + { Uninitialized, Copy, Wrap, diff --git a/AK/RetainPtr.h b/AK/RetainPtr.h index 0044202dee..70fe38dc91 100644 --- a/AK/RetainPtr.h +++ b/AK/RetainPtr.h @@ -8,7 +8,8 @@ namespace AK { template class RetainPtr { public: - enum AdoptTag { + enum AdoptTag + { Adopt }; diff --git a/AK/Retained.h b/AK/Retained.h index e1aa22f8ec..1ba84ae53b 100644 --- a/AK/Retained.h +++ b/AK/Retained.h @@ -34,7 +34,8 @@ inline void release_if_not_null(T* ptr) template class CONSUMABLE(unconsumed) Retained { public: - enum AdoptTag { + enum AdoptTag + { Adopt }; diff --git a/AK/StdLibExtras.h b/AK/StdLibExtras.h index 3219f896d7..6585b3d555 100644 --- a/AK/StdLibExtras.h +++ b/AK/StdLibExtras.h @@ -271,14 +271,16 @@ struct RemovePointer { template struct IsSame { - enum { + enum + { value = 0 }; }; template struct IsSame { - enum { + enum + { value = 1 }; }; @@ -292,5 +294,5 @@ using AK::IsSame; using AK::max; using AK::min; using AK::move; -using AK::swap; using AK::RemoveConst; +using AK::swap; diff --git a/AK/StringImpl.h b/AK/StringImpl.h index babca34e10..56bf4832c5 100644 --- a/AK/StringImpl.h +++ b/AK/StringImpl.h @@ -6,7 +6,8 @@ namespace AK { -enum ShouldChomp { +enum ShouldChomp +{ NoChomp, Chomp }; @@ -39,7 +40,8 @@ public: } private: - enum ConstructTheEmptyStringImplTag { + enum ConstructTheEmptyStringImplTag + { ConstructTheEmptyStringImpl }; explicit StringImpl(ConstructTheEmptyStringImplTag) @@ -47,7 +49,8 @@ private: { } - enum ConstructWithInlineBufferTag { + enum ConstructWithInlineBufferTag + { ConstructWithInlineBuffer }; StringImpl(ConstructWithInlineBufferTag, ssize_t length); diff --git a/AK/Types.h b/AK/Types.h index 6764995430..f0684655cc 100644 --- a/AK/Types.h +++ b/AK/Types.h @@ -48,7 +48,8 @@ constexpr unsigned KB = 1024; constexpr unsigned MB = KB * KB; constexpr unsigned GB = KB * KB * KB; -enum class IterationDecision { +enum class IterationDecision +{ Continue, Abort };