summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-25 02:48:14 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-25 02:48:14 +0100
commit4ac738d6f88aba0a3222334422e4360b5d25b8ed (patch)
tree57b662abb645618cdfe9574ffffc42f23304f669
parent34e82c2ecbbdc0aa3e9bc9937b8187580952ed11 (diff)
chore: ran format command.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--include/CompilerKit/Detail/PreConfig.h6
-rw-r--r--src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc9
-rw-r--r--src/CompilerKit/src/Linkers/DynamicLinker64+MachO.cc5
-rw-r--r--src/CompilerKit/src/Linkers/DynamicLinker64+PEF.cc3
4 files changed, 10 insertions, 13 deletions
diff --git a/include/CompilerKit/Detail/PreConfig.h b/include/CompilerKit/Detail/PreConfig.h
index acc094f..28f1016 100644
--- a/include/CompilerKit/Detail/PreConfig.h
+++ b/include/CompilerKit/Detail/PreConfig.h
@@ -3,8 +3,8 @@
// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
// Official repository: https://github.com/nekernel-org/nectar
-#ifndef __COMPILERKIT_PRECONFIG_H__
-#define __COMPILERKIT_PRECONFIG_H__
+#ifndef COMPILERKIT_CONFIG_PRECONFIG_H
+#define COMPILERKIT_CONFIG_PRECONFIG_H
#ifndef Yes
#define Yes true
@@ -119,4 +119,4 @@
#define CK_IMPORT_C extern "C"
#define CK_IMPORT extern
-#endif // __COMPILERKIT_PRECONFIG_H__
+#endif // COMPILERKIT_CONFIG_PRECONFIG_H
diff --git a/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc b/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc
index d9b3551..81eec4b 100644
--- a/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc
+++ b/src/CompilerKit/src/Compilers/NectarCompiler+AMD64.cc
@@ -383,7 +383,7 @@ CompilerKit::SyntaxLeafList::SyntaxLeaf CompilerFrontendNectarAMD64::Compile(
(isnumber(right[0])
? right
: (!nectar_get_variable_ref(right).empty() ? right
- : nectar_get_variable_ref(right))) +
+ : nectar_get_variable_ref(right))) +
"\n";
else
syntax_tree.fUserValue +=
@@ -991,10 +991,9 @@ CompilerKit::SyntaxLeafList::SyntaxLeaf CompilerFrontendNectarAMD64::Compile(
subText.erase(subText.find("("));
- for (const auto& keyword : kKeywords)
- {
- if (keyword.fKeywordName == subText)
- CompilerKit::Detail::print_error("A Nectar keyword cannot be called.", file);
+ for (const auto& keyword : kKeywords) {
+ if (keyword.fKeywordName == subText)
+ CompilerKit::Detail::print_error("A Nectar keyword cannot be called.", file);
}
kExternalSymbols.insert(subText);
diff --git a/src/CompilerKit/src/Linkers/DynamicLinker64+MachO.cc b/src/CompilerKit/src/Linkers/DynamicLinker64+MachO.cc
index e96ed12..e769b03 100644
--- a/src/CompilerKit/src/Linkers/DynamicLinker64+MachO.cc
+++ b/src/CompilerKit/src/Linkers/DynamicLinker64+MachO.cc
@@ -19,8 +19,7 @@
#include <CompilerKit/UUID.h>
#include <CompilerKit/Utilities/Compiler.h>
-#define kMachODefaultOutput \
- { "a.out" }
+#define kMachODefaultOutput {"a.out"}
#define kLinkerVersionStr "Nectar 64-Bit Linker (Mach-O)"
@@ -698,4 +697,4 @@ NECTAR_MODULE(DynamicLinker64MachO) {
// Last rev - 2026
-#endif // ifndef __linux__
+#endif // ifndef __linux__
diff --git a/src/CompilerKit/src/Linkers/DynamicLinker64+PEF.cc b/src/CompilerKit/src/Linkers/DynamicLinker64+PEF.cc
index 02b6dcb..8a95d5b 100644
--- a/src/CompilerKit/src/Linkers/DynamicLinker64+PEF.cc
+++ b/src/CompilerKit/src/Linkers/DynamicLinker64+PEF.cc
@@ -19,8 +19,7 @@
#define kLinkerPefNoCpu (0U)
#define kLinkerPefNoSubCpu (0U)
-#define kLinkerPefDefaultOutput \
- { "a" kPefExt }
+#define kLinkerPefDefaultOutput {"a" kPefExt}
#define kLinkerVersionStr "Nectar 64-Bit Linker (NeKernel PEF)"