diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-12-15 16:46:51 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-12-15 16:46:51 +0100 |
| commit | 1945dd16716392e70e74efacd19e779f121bd1da (patch) | |
| tree | d806e1e515547089c1f69a0f66eb8697b142b2a4 | |
| parent | e865cae1ad93ab92b0c5e165e17b0552e5a2e6fa (diff) | |
| download | teachos-1945dd16716392e70e74efacd19e779f121bd1da.tar.xz teachos-1945dd16716392e70e74efacd19e779f121bd1da.zip | |
chore: fix missing includes
| -rw-r--r-- | .clang-tidy | 3 | ||||
| -rw-r--r-- | .vscode/settings.json | 1 | ||||
| -rw-r--r-- | arch/x86_64/src/kapi/cio.cpp | 2 | ||||
| -rw-r--r-- | arch/x86_64/src/memory/kernel_mapper.cpp | 6 | ||||
| -rw-r--r-- | arch/x86_64/src/memory/mmu.cpp | 2 | ||||
| -rw-r--r-- | arch/x86_64/src/memory/page_table.cpp | 6 | ||||
| -rw-r--r-- | arch/x86_64/src/memory/paging_root.cpp | 1 | ||||
| -rw-r--r-- | arch/x86_64/src/memory/recursive_page_mapper.cpp | 5 | ||||
| -rw-r--r-- | arch/x86_64/src/memory/region_allocator.cpp | 1 | ||||
| -rw-r--r-- | arch/x86_64/src/memory/scoped_mapping.cpp | 1 | ||||
| -rw-r--r-- | arch/x86_64/src/vga/text.cpp | 1 | ||||
| -rw-r--r-- | kernel/src/kapi/system.cpp | 3 | ||||
| -rw-r--r-- | kernel/src/kstd.cpp | 3 | ||||
| -rw-r--r-- | libs/kstd/src/libc/string.cpp | 2 | ||||
| -rw-r--r-- | libs/kstd/src/mutex.cpp | 2 |
15 files changed, 38 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy index 30729e9..831bf8d 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -3,4 +3,5 @@ Checks: - 'clang-analyzer-*' - 'cppcoreguidelines-*' - '-cppcoreguidelines-owning-memory' - - 'modernize-*'
\ No newline at end of file + - 'modernize-*' + - 'misc-include-cleaner'
\ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 1bd7db0..7f588f4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -28,6 +28,7 @@ "initializable", "interprocedural", "invlpg", + "invokable", "iwyu", "kapi", "kstd", diff --git a/arch/x86_64/src/kapi/cio.cpp b/arch/x86_64/src/kapi/cio.cpp index 3f169a1..ade02aa 100644 --- a/arch/x86_64/src/kapi/cio.cpp +++ b/arch/x86_64/src/kapi/cio.cpp @@ -2,6 +2,8 @@ #include "x86_64/vga/text.hpp" +#include <optional> + namespace teachos::cio { diff --git a/arch/x86_64/src/memory/kernel_mapper.cpp b/arch/x86_64/src/memory/kernel_mapper.cpp index a28cf00..4781d64 100644 --- a/arch/x86_64/src/memory/kernel_mapper.cpp +++ b/arch/x86_64/src/memory/kernel_mapper.cpp @@ -8,9 +8,15 @@ #include <elf/format.hpp> #include <elf/section_header.hpp> +#include <multiboot2/information.hpp> #include <algorithm> +#include <array> +#include <bit> +#include <cstdint> #include <ranges> +#include <string_view> +#include <utility> namespace teachos::memory::x86_64 { diff --git a/arch/x86_64/src/memory/mmu.cpp b/arch/x86_64/src/memory/mmu.cpp index 8ec8a2e..e15d94e 100644 --- a/arch/x86_64/src/memory/mmu.cpp +++ b/arch/x86_64/src/memory/mmu.cpp @@ -1,5 +1,7 @@ #include "x86_64/memory/mmu.hpp" +#include "kapi/memory.hpp" + #include "x86_64/cpu/registers.hpp" namespace teachos::memory::x86_64 diff --git a/arch/x86_64/src/memory/page_table.cpp b/arch/x86_64/src/memory/page_table.cpp index 0e404e5..2de099d 100644 --- a/arch/x86_64/src/memory/page_table.cpp +++ b/arch/x86_64/src/memory/page_table.cpp @@ -1,6 +1,12 @@ #include "x86_64/memory/page_table.hpp" +#include "kapi/memory.hpp" + #include <algorithm> +#include <bit> +#include <cstddef> +#include <cstdint> +#include <optional> #include <utility> namespace teachos::memory::x86_64 diff --git a/arch/x86_64/src/memory/paging_root.cpp b/arch/x86_64/src/memory/paging_root.cpp index 4f88657..d849a82 100644 --- a/arch/x86_64/src/memory/paging_root.cpp +++ b/arch/x86_64/src/memory/paging_root.cpp @@ -1,5 +1,6 @@ #include "x86_64/memory/paging_root.hpp" +#include <bit> #include <cstdint> namespace teachos::memory::x86_64 diff --git a/arch/x86_64/src/memory/recursive_page_mapper.cpp b/arch/x86_64/src/memory/recursive_page_mapper.cpp index ef234ad..c5aabcb 100644 --- a/arch/x86_64/src/memory/recursive_page_mapper.cpp +++ b/arch/x86_64/src/memory/recursive_page_mapper.cpp @@ -1,10 +1,15 @@ #include "x86_64/memory/recursive_page_mapper.hpp" +#include "kapi/memory.hpp" #include "kapi/system.hpp" #include "x86_64/memory/page_table.hpp" +#include "x86_64/memory/page_utilities.hpp" #include "x86_64/memory/paging_root.hpp" +#include <cstddef> +#include <optional> + namespace teachos::memory::x86_64 { namespace diff --git a/arch/x86_64/src/memory/region_allocator.cpp b/arch/x86_64/src/memory/region_allocator.cpp index e477ec0..dbe14cd 100644 --- a/arch/x86_64/src/memory/region_allocator.cpp +++ b/arch/x86_64/src/memory/region_allocator.cpp @@ -6,6 +6,7 @@ #include <multiboot2/information.hpp> #include <algorithm> +#include <optional> #include <ranges> namespace teachos::memory::x86_64 diff --git a/arch/x86_64/src/memory/scoped_mapping.cpp b/arch/x86_64/src/memory/scoped_mapping.cpp index fa68387..a86aaed 100644 --- a/arch/x86_64/src/memory/scoped_mapping.cpp +++ b/arch/x86_64/src/memory/scoped_mapping.cpp @@ -7,6 +7,7 @@ #include "x86_64/memory/page_table.hpp" #include "x86_64/memory/paging_root.hpp" +#include <cstddef> #include <utility> namespace teachos::memory::x86_64 diff --git a/arch/x86_64/src/vga/text.cpp b/arch/x86_64/src/vga/text.cpp index 8b7f01b..c9eee71 100644 --- a/arch/x86_64/src/vga/text.cpp +++ b/arch/x86_64/src/vga/text.cpp @@ -10,6 +10,7 @@ #include <bit> #include <cstddef> #include <cstdint> +#include <span> #include <string_view> #include <utility> diff --git a/kernel/src/kapi/system.cpp b/kernel/src/kapi/system.cpp index 3ae3f29..228c03f 100644 --- a/kernel/src/kapi/system.cpp +++ b/kernel/src/kapi/system.cpp @@ -3,6 +3,9 @@ #include "kapi/cio.hpp" #include "kapi/cpu.hpp" +#include <source_location> +#include <string_view> + namespace teachos::system { diff --git a/kernel/src/kstd.cpp b/kernel/src/kstd.cpp index 2149c12..41c4d60 100644 --- a/kernel/src/kstd.cpp +++ b/kernel/src/kstd.cpp @@ -2,6 +2,9 @@ #include <kstd/bits/os.hpp> +#include <source_location> +#include <string_view> + namespace kstd::os { diff --git a/libs/kstd/src/libc/string.cpp b/libs/kstd/src/libc/string.cpp index a9b85fc..319f6fd 100644 --- a/libs/kstd/src/libc/string.cpp +++ b/libs/kstd/src/libc/string.cpp @@ -1,5 +1,7 @@ #include <algorithm> +#include <bit> #include <cstddef> +#include <iterator> #include <span> namespace kstd::libc diff --git a/libs/kstd/src/mutex.cpp b/libs/kstd/src/mutex.cpp index da1357f..5a26154 100644 --- a/libs/kstd/src/mutex.cpp +++ b/libs/kstd/src/mutex.cpp @@ -1,5 +1,7 @@ #include "kstd/mutex" +#include <atomic> + namespace kstd { auto mutex::lock() -> void |
