diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-14 17:49:19 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-05-14 17:50:15 +0200 |
| commit | 9f031e69aace747feb5bac78eccb9a1d5df81f74 (patch) | |
| tree | 3cc53814499a1b2c2d44fdffc7f694732cd44a1f /dev/LibCompiler | |
| parent | 94ceccd5acda2fd035eb55235126b944b0915576 (diff) | |
feat(cc): Rename Parser.h to CompilerFrontend.h, refactor codebase
accordingly.
why:
- To make its intent clearer, and avoid future confusions.
also:
- Ran ./format.sh to the codebase.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler')
| -rw-r--r-- | dev/LibCompiler/CompilerFrontend.h (renamed from dev/LibCompiler/Parser.h) | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/Detail/AsmUtils.h | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/Detail/ClUtils.h | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/Assembler32x0.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/Assembler64x0.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/AssemblerAMD64.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/AssemblerARM64.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/AssemblerPowerPC.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/CCompiler64x0.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/CCompilerARM64.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/CCompilerPower64.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc | 2 |
13 files changed, 13 insertions, 13 deletions
diff --git a/dev/LibCompiler/Parser.h b/dev/LibCompiler/CompilerFrontend.h index 6baff7e..858473b 100644 --- a/dev/LibCompiler/Parser.h +++ b/dev/LibCompiler/CompilerFrontend.h @@ -144,6 +144,6 @@ inline std::size_t find_word_range(std::string haystack, std::string needle) noe return index; } - return false; + return std::string::npos; } } // namespace LibCompiler diff --git a/dev/LibCompiler/Detail/AsmUtils.h b/dev/LibCompiler/Detail/AsmUtils.h index 559df5f..77805c1 100644 --- a/dev/LibCompiler/Detail/AsmUtils.h +++ b/dev/LibCompiler/Detail/AsmUtils.h @@ -7,7 +7,7 @@ #pragma once #include <LibCompiler/AssemblyInterface.h> -#include <LibCompiler/Parser.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/Detail/ClUtils.h> diff --git a/dev/LibCompiler/Detail/ClUtils.h b/dev/LibCompiler/Detail/ClUtils.h index f47101a..a809cdf 100644 --- a/dev/LibCompiler/Detail/ClUtils.h +++ b/dev/LibCompiler/Detail/ClUtils.h @@ -7,8 +7,8 @@ #pragma once #include <LibCompiler/AssemblyInterface.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/ErrorID.h> -#include <LibCompiler/Parser.h> #include <Vendor/Dialogs.h> #define kZero64Section ".zero64" diff --git a/dev/LibCompiler/src/Assembler32x0.cc b/dev/LibCompiler/src/Assembler32x0.cc index ac24946..44850f6 100644 --- a/dev/LibCompiler/src/Assembler32x0.cc +++ b/dev/LibCompiler/src/Assembler32x0.cc @@ -21,8 +21,8 @@ #include <LibCompiler/AE.h> #include <LibCompiler/Backend/32x0.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/PEF.h> -#include <LibCompiler/Parser.h> ///////////////////// diff --git a/dev/LibCompiler/src/Assembler64x0.cc b/dev/LibCompiler/src/Assembler64x0.cc index 8483e9e..a7c3efc 100644 --- a/dev/LibCompiler/src/Assembler64x0.cc +++ b/dev/LibCompiler/src/Assembler64x0.cc @@ -21,9 +21,9 @@ #include <LibCompiler/AE.h> #include <LibCompiler/Backend/64x0.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/Detail/ClUtils.h> #include <LibCompiler/PEF.h> -#include <LibCompiler/Parser.h> #include <algorithm> #include <filesystem> #include <fstream> diff --git a/dev/LibCompiler/src/AssemblerAMD64.cc b/dev/LibCompiler/src/AssemblerAMD64.cc index 5e9a7cd..3fdb197 100644 --- a/dev/LibCompiler/src/AssemblerAMD64.cc +++ b/dev/LibCompiler/src/AssemblerAMD64.cc @@ -28,8 +28,8 @@ #include <LibCompiler/AE.h> #include <LibCompiler/Backend/Amd64.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/PEF.h> -#include <LibCompiler/Parser.h> #include <algorithm> #include <cstdlib> #include <filesystem> diff --git a/dev/LibCompiler/src/AssemblerARM64.cc b/dev/LibCompiler/src/AssemblerARM64.cc index 8686edb..c8b66f7 100644 --- a/dev/LibCompiler/src/AssemblerARM64.cc +++ b/dev/LibCompiler/src/AssemblerARM64.cc @@ -19,10 +19,10 @@ #include <LibCompiler/AE.h> #include <LibCompiler/Backend/Aarch64.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/Detail/AsmUtils.h> #include <LibCompiler/ErrorID.h> #include <LibCompiler/PEF.h> -#include <LibCompiler/Parser.h> #include <LibCompiler/Version.h> #include <algorithm> #include <filesystem> diff --git a/dev/LibCompiler/src/AssemblerPowerPC.cc b/dev/LibCompiler/src/AssemblerPowerPC.cc index f2c3be3..a438aed 100644 --- a/dev/LibCompiler/src/AssemblerPowerPC.cc +++ b/dev/LibCompiler/src/AssemblerPowerPC.cc @@ -19,10 +19,10 @@ #include <LibCompiler/AE.h> #include <LibCompiler/Backend/PowerPC.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/Detail/AsmUtils.h> #include <LibCompiler/ErrorID.h> #include <LibCompiler/PEF.h> -#include <LibCompiler/Parser.h> #include <LibCompiler/Version.h> #include <algorithm> #include <filesystem> diff --git a/dev/LibCompiler/src/CCompiler64x0.cc b/dev/LibCompiler/src/CCompiler64x0.cc index 79d32ce..e43e16b 100644 --- a/dev/LibCompiler/src/CCompiler64x0.cc +++ b/dev/LibCompiler/src/CCompiler64x0.cc @@ -11,8 +11,8 @@ /// TODO: none #include <LibCompiler/Backend/64x0.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/Detail/ClUtils.h> -#include <LibCompiler/Parser.h> #include <LibCompiler/UUID.h> #include <cstdio> #include <fstream> diff --git a/dev/LibCompiler/src/CCompilerARM64.cc b/dev/LibCompiler/src/CCompilerARM64.cc index a5ddf43..b60ef4f 100644 --- a/dev/LibCompiler/src/CCompilerARM64.cc +++ b/dev/LibCompiler/src/CCompilerARM64.cc @@ -11,8 +11,8 @@ /// TODO: none #include <LibCompiler/Backend/Aarch64.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/Detail/ClUtils.h> -#include <LibCompiler/Parser.h> #include <LibCompiler/UUID.h> #include <cstdio> #include <fstream> diff --git a/dev/LibCompiler/src/CCompilerPower64.cc b/dev/LibCompiler/src/CCompilerPower64.cc index f2eba43..30a1ab3 100644 --- a/dev/LibCompiler/src/CCompilerPower64.cc +++ b/dev/LibCompiler/src/CCompilerPower64.cc @@ -8,8 +8,8 @@ */ #include <LibCompiler/Backend/PowerPC.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/Detail/ClUtils.h> -#include <LibCompiler/Parser.h> #include <LibCompiler/UUID.h> #include <cstdio> #include <fstream> diff --git a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc index 051529d..92bf9ad 100644 --- a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc +++ b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc @@ -17,8 +17,8 @@ // extern_segment, @autodelete { ... }, fn foo() -> auto { ... } #include <LibCompiler/Backend/Amd64.h> +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/Detail/ClUtils.h> -#include <LibCompiler/Parser.h> #include <LibCompiler/UUID.h> #include <cstdio> diff --git a/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc b/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc index 5d035da..9981f37 100644 --- a/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc +++ b/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc @@ -9,8 +9,8 @@ /// BUGS: 0 +#include <LibCompiler/CompilerFrontend.h> #include <LibCompiler/ErrorID.h> -#include <LibCompiler/Parser.h> #include <algorithm> #include <filesystem> #include <fstream> |
