mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 02:55:07 +00:00
Meta+LibC through LibHTTP: Make clang-format-10 clean
Why break at LibHTTP? Because "Meta+Libraries" would be insanely large, and breaking between LibHTTP and LibJS makes the commits roughly evenly large.
This commit is contained in:
parent
64cc3f51d0
commit
ede5dbd7b3
58 changed files with 87 additions and 89 deletions
|
@ -32,8 +32,8 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include <AK/LexicalPath.h>
|
|
||||||
#include <AK/HashMap.h>
|
#include <AK/HashMap.h>
|
||||||
|
#include <AK/LexicalPath.h>
|
||||||
#include <AK/RefPtr.h>
|
#include <AK/RefPtr.h>
|
||||||
#include <AK/ScopeGuard.h>
|
#include <AK/ScopeGuard.h>
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
|
@ -85,7 +85,8 @@ void* dlopen(const char* filename, int flags)
|
||||||
|
|
||||||
ScopeGuard close_fd_guard([fd]() { close(fd); });
|
ScopeGuard close_fd_guard([fd]() { close(fd); });
|
||||||
|
|
||||||
struct stat file_stats{};
|
struct stat file_stats {
|
||||||
|
};
|
||||||
|
|
||||||
int ret = fstat(fd, &file_stats);
|
int ret = fstat(fd, &file_stats);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
|
|
@ -28,4 +28,3 @@
|
||||||
|
|
||||||
#define MALLOC_SCRUB_BYTE 0xdc
|
#define MALLOC_SCRUB_BYTE 0xdc
|
||||||
#define FREE_SCRUB_BYTE 0xed
|
#define FREE_SCRUB_BYTE 0xed
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,9 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <bits/stdint.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <bits/stdint.h>
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|
|
@ -34,14 +34,14 @@
|
||||||
|
|
||||||
#include <spawn.h>
|
#include <spawn.h>
|
||||||
|
|
||||||
|
#include <AK/Function.h>
|
||||||
|
#include <AK/Vector.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <AK/Function.h>
|
#include <unistd.h>
|
||||||
#include <AK/Vector.h>
|
|
||||||
|
|
||||||
struct posix_spawn_file_actions_state {
|
struct posix_spawn_file_actions_state {
|
||||||
Vector<Function<int()>, 4> actions;
|
Vector<Function<int()>, 4> actions;
|
||||||
|
@ -286,5 +286,4 @@ int posix_spawnattr_setsigmask(posix_spawnattr_t* attr, const sigset_t* sigmask)
|
||||||
attr->sigmask = *sigmask;
|
attr->sigmask = *sigmask;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,9 @@
|
||||||
|
|
||||||
#define _STDIO_H // Make GMP believe we exist.
|
#define _STDIO_H // Make GMP believe we exist.
|
||||||
|
|
||||||
|
#include <bits/FILE.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <bits/FILE.h>
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,8 @@ struct Table {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr u32 operator[](int index) const {
|
constexpr u32 operator[](int index) const
|
||||||
|
{
|
||||||
return data[index];
|
return data[index];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
#include <AK/Assertions.h>
|
#include <AK/Assertions.h>
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <LibELF/exec_elf.h>
|
|
||||||
#include <LibELF/Validation.h>
|
#include <LibELF/Validation.h>
|
||||||
|
#include <LibELF/exec_elf.h>
|
||||||
|
|
||||||
namespace ELF {
|
namespace ELF {
|
||||||
|
|
||||||
|
|
|
@ -29,8 +29,8 @@
|
||||||
#include <LibGUI/AboutDialog.h>
|
#include <LibGUI/AboutDialog.h>
|
||||||
#include <LibGUI/BoxLayout.h>
|
#include <LibGUI/BoxLayout.h>
|
||||||
#include <LibGUI/Button.h>
|
#include <LibGUI/Button.h>
|
||||||
#include <LibGUI/Label.h>
|
|
||||||
#include <LibGUI/ImageWidget.h>
|
#include <LibGUI/ImageWidget.h>
|
||||||
|
#include <LibGUI/Label.h>
|
||||||
#include <LibGUI/Widget.h>
|
#include <LibGUI/Widget.h>
|
||||||
#include <LibGfx/Font.h>
|
#include <LibGfx/Font.h>
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,7 @@ namespace GUI {
|
||||||
|
|
||||||
class BoxLayout : public Layout {
|
class BoxLayout : public Layout {
|
||||||
C_OBJECT(BoxLayout);
|
C_OBJECT(BoxLayout);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual ~BoxLayout() override { }
|
virtual ~BoxLayout() override { }
|
||||||
|
|
||||||
|
@ -50,6 +51,7 @@ private:
|
||||||
|
|
||||||
class VerticalBoxLayout final : public BoxLayout {
|
class VerticalBoxLayout final : public BoxLayout {
|
||||||
C_OBJECT(VerticalBoxLayout);
|
C_OBJECT(VerticalBoxLayout);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit VerticalBoxLayout()
|
explicit VerticalBoxLayout()
|
||||||
: BoxLayout(Gfx::Orientation::Vertical)
|
: BoxLayout(Gfx::Orientation::Vertical)
|
||||||
|
@ -60,6 +62,7 @@ public:
|
||||||
|
|
||||||
class HorizontalBoxLayout final : public BoxLayout {
|
class HorizontalBoxLayout final : public BoxLayout {
|
||||||
C_OBJECT(HorizontalBoxLayout);
|
C_OBJECT(HorizontalBoxLayout);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit HorizontalBoxLayout()
|
explicit HorizontalBoxLayout()
|
||||||
: BoxLayout(Gfx::Orientation::Horizontal)
|
: BoxLayout(Gfx::Orientation::Horizontal)
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
|
|
||||||
#include <AK/Function.h>
|
#include <AK/Function.h>
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
|
#include <LibGUI/AbstractButton.h>
|
||||||
#include <LibGfx/Bitmap.h>
|
#include <LibGfx/Bitmap.h>
|
||||||
#include <LibGfx/StylePainter.h>
|
#include <LibGfx/StylePainter.h>
|
||||||
#include <LibGfx/TextAlignment.h>
|
#include <LibGfx/TextAlignment.h>
|
||||||
#include <LibGUI/AbstractButton.h>
|
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,6 @@ public:
|
||||||
private:
|
private:
|
||||||
CustomColorWidget(Color);
|
CustomColorWidget(Color);
|
||||||
|
|
||||||
|
|
||||||
RefPtr<ColorField> m_color_field;
|
RefPtr<ColorField> m_color_field;
|
||||||
RefPtr<ColorSlider> m_color_slider;
|
RefPtr<ColorSlider> m_color_slider;
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
#include <AK/QuickSort.h>
|
#include <AK/QuickSort.h>
|
||||||
#include <LibCore/DirIterator.h>
|
#include <LibCore/DirIterator.h>
|
||||||
#include <LibGfx/Font.h>
|
|
||||||
#include <LibGUI/FontDatabase.h>
|
#include <LibGUI/FontDatabase.h>
|
||||||
|
#include <LibGfx/Font.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibGfx/StylePainter.h>
|
|
||||||
#include <LibGUI/Widget.h>
|
#include <LibGUI/Widget.h>
|
||||||
|
#include <LibGfx/StylePainter.h>
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibGfx/TextAlignment.h>
|
|
||||||
#include <LibGUI/Frame.h>
|
#include <LibGUI/Frame.h>
|
||||||
|
#include <LibGfx/TextAlignment.h>
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
#include <LibGUI/BoxLayout.h>
|
#include <LibGUI/BoxLayout.h>
|
||||||
#include <LibGUI/Button.h>
|
#include <LibGUI/Button.h>
|
||||||
#include <LibGUI/Label.h>
|
|
||||||
#include <LibGUI/ImageWidget.h>
|
#include <LibGUI/ImageWidget.h>
|
||||||
|
#include <LibGUI/Label.h>
|
||||||
#include <LibGUI/MessageBox.h>
|
#include <LibGUI/MessageBox.h>
|
||||||
#include <LibGfx/Font.h>
|
#include <LibGfx/Font.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
|
|
||||||
#include <AK/Badge.h>
|
#include <AK/Badge.h>
|
||||||
#include <AK/HashTable.h>
|
#include <AK/HashTable.h>
|
||||||
|
#include <AK/Noncopyable.h>
|
||||||
#include <AK/TemporaryChange.h>
|
#include <AK/TemporaryChange.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
#include <LibGUI/ModelIndex.h>
|
#include <LibGUI/ModelIndex.h>
|
||||||
#include <AK/Noncopyable.h>
|
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ private:
|
||||||
NotificationServerConnection()
|
NotificationServerConnection()
|
||||||
: IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint>(*this, "/tmp/portal/notify")
|
: IPC::ServerConnection<NotificationClientEndpoint, NotificationServerEndpoint>(*this, "/tmp/portal/notify")
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
virtual void handle(const Messages::NotificationClient::Dummy&) override { }
|
virtual void handle(const Messages::NotificationClient::Dummy&) override { }
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <LibGUI/Dialog.h>
|
|
||||||
#include <LibCore/Timer.h>
|
#include <LibCore/Timer.h>
|
||||||
|
#include <LibGUI/Dialog.h>
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
|
|
|
@ -24,11 +24,11 @@
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <LibGfx/CharacterBitmap.h>
|
|
||||||
#include <LibGfx/Palette.h>
|
|
||||||
#include <LibGUI/Painter.h>
|
#include <LibGUI/Painter.h>
|
||||||
#include <LibGUI/ResizeCorner.h>
|
#include <LibGUI/ResizeCorner.h>
|
||||||
#include <LibGUI/Window.h>
|
#include <LibGUI/Window.h>
|
||||||
|
#include <LibGfx/CharacterBitmap.h>
|
||||||
|
#include <LibGfx/Palette.h>
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
|
|
|
@ -24,13 +24,13 @@
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <LibGfx/Palette.h>
|
|
||||||
#include <LibGUI/Action.h>
|
#include <LibGUI/Action.h>
|
||||||
#include <LibGUI/ActionGroup.h>
|
#include <LibGUI/ActionGroup.h>
|
||||||
#include <LibGUI/BoxLayout.h>
|
#include <LibGUI/BoxLayout.h>
|
||||||
#include <LibGUI/Button.h>
|
#include <LibGUI/Button.h>
|
||||||
#include <LibGUI/Painter.h>
|
#include <LibGUI/Painter.h>
|
||||||
#include <LibGUI/ToolBar.h>
|
#include <LibGUI/ToolBar.h>
|
||||||
|
#include <LibGfx/Palette.h>
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
|
@ -111,9 +111,6 @@ void ToolBar::paint_event(PaintEvent& event)
|
||||||
Painter painter(*this);
|
Painter painter(*this);
|
||||||
painter.add_clip_rect(event.rect());
|
painter.add_clip_rect(event.rect());
|
||||||
|
|
||||||
//if (m_has_frame)
|
|
||||||
// Gfx::StylePainter::paint_surface(painter, rect(), palette(), x() != 0, y() != 0);
|
|
||||||
// else
|
|
||||||
painter.fill_rect(event.rect(), palette().button());
|
painter.fill_rect(event.rect(), palette().button());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <LibGfx/Font.h>
|
|
||||||
#include <LibGfx/Bitmap.h>
|
|
||||||
#include <LibGUI/Icon.h>
|
#include <LibGUI/Icon.h>
|
||||||
|
#include <LibGfx/Bitmap.h>
|
||||||
|
#include <LibGfx/Font.h>
|
||||||
|
|
||||||
namespace GUI {
|
namespace GUI {
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,8 @@
|
||||||
|
|
||||||
#include <AK/HashMap.h>
|
#include <AK/HashMap.h>
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <LibGfx/Emoji.h>
|
|
||||||
#include <LibGfx/Bitmap.h>
|
#include <LibGfx/Bitmap.h>
|
||||||
|
#include <LibGfx/Emoji.h>
|
||||||
|
|
||||||
namespace Gfx {
|
namespace Gfx {
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,8 @@
|
||||||
#include <AK/Optional.h>
|
#include <AK/Optional.h>
|
||||||
#include <AK/String.h>
|
#include <AK/String.h>
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
#include <LibGfx/Point.h>
|
|
||||||
#include <LibGfx/Forward.h>
|
#include <LibGfx/Forward.h>
|
||||||
|
#include <LibGfx/Point.h>
|
||||||
|
|
||||||
namespace Gfx {
|
namespace Gfx {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue