mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Run clang-format on everything.
This commit is contained in:
parent
7ad8790d80
commit
b34b084619
Notes:
sideshowbarker
2024-07-19 13:41:47 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b34b0846198
7 changed files with 21 additions and 11 deletions
|
@ -84,7 +84,8 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
enum class CaseSensitivity {
|
||||
enum class CaseSensitivity
|
||||
{
|
||||
CaseInsensitive,
|
||||
CaseSensitive,
|
||||
};
|
||||
|
|
|
@ -60,7 +60,8 @@ public:
|
|||
void grow(int size);
|
||||
|
||||
private:
|
||||
enum ConstructionMode {
|
||||
enum ConstructionMode
|
||||
{
|
||||
Uninitialized,
|
||||
Copy,
|
||||
Wrap,
|
||||
|
|
|
@ -8,7 +8,8 @@ namespace AK {
|
|||
template<typename T>
|
||||
class RetainPtr {
|
||||
public:
|
||||
enum AdoptTag {
|
||||
enum AdoptTag
|
||||
{
|
||||
Adopt
|
||||
};
|
||||
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue