Run include-what-you-use everywhere

This commit is contained in:
apio 2022-12-07 11:40:02 +01:00
parent c2927de191
commit 1badc40a4a
Signed by: apio
GPG Key ID: B8A7D06E42258954
10 changed files with 17 additions and 5 deletions

View File

@ -1,6 +1,7 @@
#include "arch/Serial.h"
#include "arch/CPU.h"
#include <luna/Result.h>
#include <luna/Format.h>
#include <stdarg.h>
namespace Serial
{

View File

@ -1,12 +1,14 @@
#include "arch/CPU.h"
#include "arch/x86_64/CPU.h"
#include "Log.h"
#include "arch/Serial.h"
#include "arch/Timer.h"
#include "arch/x86_64/IO.h"
#include <cpuid.h>
#include <luna/String.h>
#include <luna/SystemError.h>
#include <luna/Types.h>
#include <luna/Check.h>
#include <luna/Result.h>
extern "C" void enable_sse();
extern "C" void enable_write_protect();

View File

@ -1,4 +1,3 @@
#include "arch/CPU.h"
#include <luna/Types.h>
struct Registers // Saved CPU registers for x86-64

View File

@ -2,6 +2,7 @@
#include "memory/MemoryManager.h"
#include <luna/String.h>
#include <luna/SystemError.h>
#include <luna/Result.h>
#pragma GCC push_options
#pragma GCC diagnostic ignored "-Wconversion"

View File

@ -1,11 +1,11 @@
#include "boot/Init.h"
#include "Log.h"
#include "arch/CPU.h"
#include "arch/Serial.h"
#include "boot/bootboot.h"
#include "memory/MemoryManager.h"
#include "video/Framebuffer.h"
#include <luna/String.h>
#include <luna/Result.h>
extern const BOOTBOOT bootboot;

View File

@ -5,6 +5,7 @@
#include "config.h"
#include "memory/MemoryManager.h"
#include <luna/Units.h>
#include <luna/Result.h>
Result<void> init()
{

View File

@ -1,4 +1,6 @@
#include "memory/MemoryMap.h"
#include <luna/Result.h>
#include <luna/SystemError.h>
extern const BOOTBOOT bootboot;

View File

@ -3,6 +3,8 @@
#include "video/Framebuffer.h"
#include <luna/Format.h>
#include <luna/String.h>
#include <luna/Result.h>
#include <stdarg.h>
extern const BOOTBOOT bootboot;

View File

@ -1,6 +1,9 @@
#include <luna/CType.h>
#include <luna/Format.h>
#include <luna/NumberParsing.h>
#include <luna/Result.h>
#include <stddef.h>
#include <stdarg.h>
extern "C" usize strlen(const char*);

View File

@ -1,7 +1,8 @@
#include <luna/Format.h>
#include <luna/Units.h>
#include <luna/Result.h>
Result<usize> to_dynamic_unit(usize value, char* buffer, size_t max)
Result<usize> to_dynamic_unit(usize value, char* buffer, usize max)
{
if (value < 1024) { return string_format(buffer, max, "%u bytes", value); }