From 53294fa97e1f175f4e8700ffc00ff49909ef31f1 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 22 Mar 2026 19:07:45 +0100 Subject: [CHORE] Reformat code. Signed-off-by: Amlal El Mahrouss --- include/CompilerKit/CodeGenerator.h | 3 --- include/CompilerKit/Detail/Config.h | 5 +++++ src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/CompilerKit/CodeGenerator.h b/include/CompilerKit/CodeGenerator.h index 69af3ba..ac42879 100644 --- a/include/CompilerKit/CodeGenerator.h +++ b/include/CompilerKit/CodeGenerator.h @@ -18,9 +18,6 @@ #define CK_ASSEMBLY_INTERFACE : public ::CompilerKit::IAssembly #define CK_ENCODER : public ::CompilerKit::IAssemblyEncoder -/// @brief This function is for internal uses only, do not call it without a wrapper! -CK_IMPORT_C bool NectarCheckFrontend(CompilerKit::STLString& input); - namespace CompilerKit { class AssemblyFactory; class IAssembly; diff --git a/include/CompilerKit/Detail/Config.h b/include/CompilerKit/Detail/Config.h index 651904e..14d4fd0 100644 --- a/include/CompilerKit/Detail/Config.h +++ b/include/CompilerKit/Detail/Config.h @@ -16,6 +16,7 @@ #include namespace CompilerKit { + inline static constexpr int kBaseYear = 1900; using STLString = std::string; using RopeString = ocl::tproc::crope; @@ -63,6 +64,10 @@ inline bool install_signal(Int32 signal, void (*handler)(int)) noexcept { return true; } + } // namespace CompilerKit +/// @brief This function is for internal uses only, do not call it without a wrapper! +CK_IMPORT_C bool NectarCheckFrontend(CompilerKit::STLString& input); + #endif // __COMPILERKIT_CONFIG_H__ diff --git a/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp b/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp index 85ecc66..516c4d5 100644 --- a/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp +++ b/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cpp @@ -30,7 +30,8 @@ Int32 AssemblyFactory::Compile(STLString sourceFile, const Int32& arch) { try { std::filesystem::copy(sourceFile, compiledUnit); - } catch (...) {} + } catch (...) { + } auto ret = this->fMounted->CompileToFormat(compiledUnit, arch); -- cgit v1.2.3