Run include-what-you-use everywhere
This commit is contained in:
parent
c2927de191
commit
1badc40a4a
@ -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
|
||||
{
|
||||
|
@ -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();
|
||||
|
@ -1,4 +1,3 @@
|
||||
#include "arch/CPU.h"
|
||||
#include <luna/Types.h>
|
||||
|
||||
struct Registers // Saved CPU registers for x86-64
|
||||
|
@ -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"
|
||||
|
@ -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;
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include "config.h"
|
||||
#include "memory/MemoryManager.h"
|
||||
#include <luna/Units.h>
|
||||
#include <luna/Result.h>
|
||||
|
||||
Result<void> init()
|
||||
{
|
||||
|
@ -1,4 +1,6 @@
|
||||
#include "memory/MemoryMap.h"
|
||||
#include <luna/Result.h>
|
||||
#include <luna/SystemError.h>
|
||||
|
||||
extern const BOOTBOOT bootboot;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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*);
|
||||
|
||||
|
@ -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); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user