Browse Source

AK: Run clang-format on everything.

Andreas Kling 6 years ago
parent
commit
b34b084619
7 changed files with 21 additions and 11 deletions
  1. 2 1
      AK/AKString.h
  2. 2 1
      AK/ByteBuffer.h
  3. 2 1
      AK/RetainPtr.h
  4. 2 1
      AK/Retained.h
  5. 5 3
      AK/StdLibExtras.h
  6. 6 3
      AK/StringImpl.h
  7. 2 1
      AK/Types.h

+ 2 - 1
AK/AKString.h

@@ -84,7 +84,8 @@ public:
     {
     {
     }
     }
 
 
-    enum class CaseSensitivity {
+    enum class CaseSensitivity
+    {
         CaseInsensitive,
         CaseInsensitive,
         CaseSensitive,
         CaseSensitive,
     };
     };

+ 2 - 1
AK/ByteBuffer.h

@@ -60,7 +60,8 @@ public:
     void grow(int size);
     void grow(int size);
 
 
 private:
 private:
-    enum ConstructionMode {
+    enum ConstructionMode
+    {
         Uninitialized,
         Uninitialized,
         Copy,
         Copy,
         Wrap,
         Wrap,

+ 2 - 1
AK/RetainPtr.h

@@ -8,7 +8,8 @@ namespace AK {
 template<typename T>
 template<typename T>
 class RetainPtr {
 class RetainPtr {
 public:
 public:
-    enum AdoptTag {
+    enum AdoptTag
+    {
         Adopt
         Adopt
     };
     };
 
 

+ 2 - 1
AK/Retained.h

@@ -34,7 +34,8 @@ inline void release_if_not_null(T* ptr)
 template<typename T>
 template<typename T>
 class CONSUMABLE(unconsumed) Retained {
 class CONSUMABLE(unconsumed) Retained {
 public:
 public:
-    enum AdoptTag {
+    enum AdoptTag
+    {
         Adopt
         Adopt
     };
     };
 
 

+ 5 - 3
AK/StdLibExtras.h

@@ -271,14 +271,16 @@ struct RemovePointer<T* const volatile> {
 
 
 template<typename T, typename U>
 template<typename T, typename U>
 struct IsSame {
 struct IsSame {
-    enum {
+    enum
+    {
         value = 0
         value = 0
     };
     };
 };
 };
 
 
 template<typename T>
 template<typename T>
 struct IsSame<T, T> {
 struct IsSame<T, T> {
-    enum {
+    enum
+    {
         value = 1
         value = 1
     };
     };
 };
 };
@@ -292,5 +294,5 @@ using AK::IsSame;
 using AK::max;
 using AK::max;
 using AK::min;
 using AK::min;
 using AK::move;
 using AK::move;
-using AK::swap;
 using AK::RemoveConst;
 using AK::RemoveConst;
+using AK::swap;

+ 6 - 3
AK/StringImpl.h

@@ -6,7 +6,8 @@
 
 
 namespace AK {
 namespace AK {
 
 
-enum ShouldChomp {
+enum ShouldChomp
+{
     NoChomp,
     NoChomp,
     Chomp
     Chomp
 };
 };
@@ -39,7 +40,8 @@ public:
     }
     }
 
 
 private:
 private:
-    enum ConstructTheEmptyStringImplTag {
+    enum ConstructTheEmptyStringImplTag
+    {
         ConstructTheEmptyStringImpl
         ConstructTheEmptyStringImpl
     };
     };
     explicit StringImpl(ConstructTheEmptyStringImplTag)
     explicit StringImpl(ConstructTheEmptyStringImplTag)
@@ -47,7 +49,8 @@ private:
     {
     {
     }
     }
 
 
-    enum ConstructWithInlineBufferTag {
+    enum ConstructWithInlineBufferTag
+    {
         ConstructWithInlineBuffer
         ConstructWithInlineBuffer
     };
     };
     StringImpl(ConstructWithInlineBufferTag, ssize_t length);
     StringImpl(ConstructWithInlineBufferTag, ssize_t length);

+ 2 - 1
AK/Types.h

@@ -48,7 +48,8 @@ constexpr unsigned KB = 1024;
 constexpr unsigned MB = KB * KB;
 constexpr unsigned MB = KB * KB;
 constexpr unsigned GB = KB * KB * KB;
 constexpr unsigned GB = KB * KB * KB;
 
 
-enum class IterationDecision {
+enum class IterationDecision
+{
     Continue,
     Continue,
     Abort
     Abort
 };
 };