mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:57:45 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
8639d8bc21
commit
d26aabff04
140 changed files with 1202 additions and 723 deletions
|
@ -43,7 +43,8 @@ public:
|
|||
ALWAYS_INLINE void set_generation_index(u32 generation_index) { m_generation_index = generation_index; }
|
||||
|
||||
template<IsObject T>
|
||||
bool is() const requires(!IsSame<T, Object>)
|
||||
bool is() const
|
||||
requires(!IsSame<T, Object>)
|
||||
{
|
||||
#define ENUMERATE_TYPE(class_name, snake_name) \
|
||||
if constexpr (IsSame<class_name, T>) { \
|
||||
|
@ -60,7 +61,8 @@ public:
|
|||
#ifdef PDF_DEBUG
|
||||
SourceLocation loc = SourceLocation::current()
|
||||
#endif
|
||||
) const requires(!IsSame<T, Object>)
|
||||
) const
|
||||
requires(!IsSame<T, Object>)
|
||||
{
|
||||
#ifdef PDF_DEBUG
|
||||
if (!is<T>()) {
|
||||
|
@ -76,8 +78,11 @@ public:
|
|||
virtual String to_string(int indent) const = 0;
|
||||
|
||||
protected:
|
||||
#define ENUMERATE_TYPE(_, name) \
|
||||
virtual bool is_##name() const { return false; }
|
||||
#define ENUMERATE_TYPE(_, name) \
|
||||
virtual bool is_##name() const \
|
||||
{ \
|
||||
return false; \
|
||||
}
|
||||
ENUMERATE_OBJECT_TYPES(ENUMERATE_TYPE)
|
||||
#undef ENUMERATE_TYPE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue