AK: Run clang-format on everything.

This commit is contained in:
Andreas Kling 2019-06-07 11:46:22 +02:00
parent 7ad8790d80
commit b34b084619
Notes: sideshowbarker 2024-07-19 13:41:47 +09:00
7 changed files with 21 additions and 11 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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