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,
CaseSensitive,
};

View file

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

View file

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

View file

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

View file

@ -271,14 +271,16 @@ struct RemovePointer<T* const volatile> {
template<typename T, typename U>
struct IsSame {
enum {
enum
{
value = 0
};
};
template<typename T>
struct IsSame<T, T> {
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;

View file

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

View file

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