summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-02-08 20:57:51 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-02-08 20:57:51 +0100
commit087e9f586691f5f506613aeddebca1e552a59050 (patch)
tree23a89cb01cdbb66909fbdc62ba950243b6721049
parent0327883a4af135fdd9d4177116e647c4f397bb81 (diff)
feat: Add run option for KDevelop config.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--.kdev4/nectar.kdev439
-rw-r--r--src/CompilerKit/src/CodeGenerator+AssemblyFactory.cc6
2 files changed, 42 insertions, 3 deletions
diff --git a/.kdev4/nectar.kdev4 b/.kdev4/nectar.kdev4
index 127a522..75e74c2 100644
--- a/.kdev4/nectar.kdev4
+++ b/.kdev4/nectar.kdev4
@@ -1,5 +1,44 @@
[Buildset]
BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00\x0c\x00n\x00e\x00c\x00t\x00a\x00r)
+[CustomDefinesAndIncludes][ProjectPath0]
+Path=.
+parseAmbiguousAsCPP=true
+parserArguments=-ferror-limit=100 -fspell-checking -Wdocumentation -Wunused-parameter -Wunreachable-code -Wall -std=c++2a
+parserArgumentsC=-ferror-limit=100 -fspell-checking -Wdocumentation -Wunused-parameter -Wunreachable-code -Wall -std=gnu11
+parserArgumentsCuda=-ferror-limit=100 -fspell-checking -Wdocumentation -Wunused-parameter -Wunreachable-code -Wall -std=c++11
+parserArgumentsOpenCL=-ferror-limit=100 -fspell-checking -Wdocumentation -Wunused-parameter -Wunreachable-code -Wall -cl-std=CL1.1
+
+[CustomDefinesAndIncludes][ProjectPath0][Compiler]
+Name=Clang
+
+[CustomDefinesAndIncludes][ProjectPath0][Includes]
+1=/home/amlal/nekernel-org/nectar/include/
+2=/home/amlal/nekernel-org/nectar/include/CompilerKit/
+3=/home/amlal/nekernel-org/nectar/include/DebuggerKit/
+4=/home/amlal/nekernel-org/nectar/include/CompilerKit/Detail/
+
+[Launch]
+Launch Configurations=Launch Configuration 0
+
+[Launch][Launch Configuration 0]
+Configured Launch Modes=execute
+Configured Launchers=nativeAppLauncher
+Name=New Compiled Binary Launcher
+Type=Native Application
+
+[Launch][Launch Configuration 0][Data]
+Arguments=ck-posix.json
+Dependencies=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x00)
+Dependency Action=Nothing
+EnvironmentGroup=
+Executable=file:///usr/bin/nebuild
+External Terminal=konsole --noclose --workdir %workdir -e %exe
+Kill Before Executing Again=4194304
+Project Target=
+Use External Terminal=false
+Working Directory=file:///home/amlal/nekernel-org/nectar/src/CompilerKit
+isExecutable=true
+
[Project]
VersionControlSupport=kdevgit
diff --git a/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cc b/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cc
index 1a9067b..ce42dd3 100644
--- a/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cc
+++ b/src/CompilerKit/src/CodeGenerator+AssemblyFactory.cc
@@ -26,9 +26,9 @@ Int32 AssemblyFactory::Compile(STLString sourceFile, const Int32& arch) {
}
///! @brief mount assembly backend.
-void AssemblyFactory::Mount(WeakRef<IAssembly> mountPtr) {
- if (mountPtr && !this->fMounted) {
- this->fMounted = mountPtr.Leak();
+void AssemblyFactory::Mount(WeakRef<IAssembly> mount_ptr) {
+ if (mount_ptr && !this->fMounted) {
+ this->fMounted = mount_ptr.Leak();
}
}