1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:27:46 +00:00

Meta: Tweak .clang-format to not wrap braces after enums.

This commit is contained in:
Andreas Kling 2019-06-07 17:13:23 +02:00
parent 9145917bf0
commit 39d1a9ae66
97 changed files with 186 additions and 312 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -271,16 +271,14 @@ 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
};
};

View file

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

View file

@ -1,5 +1,7 @@
#pragma once
#include <AK/IterationDecision.h>
#ifdef __serenity__
typedef unsigned char byte;
typedef unsigned short word;
@ -48,12 +50,6 @@ constexpr unsigned KB = 1024;
constexpr unsigned MB = KB * KB;
constexpr unsigned GB = KB * KB * KB;
enum class IterationDecision
{
Continue,
Abort
};
namespace std {
typedef decltype(nullptr) nullptr_t;
}