summaryrefslogtreecommitdiffhomepage
path: root/dev/ToolchainKit/src/CPlusPlusCompilerAMD64.cc
diff options
context:
space:
mode:
authorAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-11-07 14:35:36 +0100
committerAmlal EL Mahrouss <amlalelmahrouss@icloud.com>2024-11-07 14:35:36 +0100
commita256248ceb9457560902fd5861b533ae85a92016 (patch)
tree8f2b14faf14e55beb265c4cafa719a53b3cd8d1a /dev/ToolchainKit/src/CPlusPlusCompilerAMD64.cc
parent3bcd40fefc2d1418f8eaf259c2e2f0561fb214e6 (diff)
Rename original @author to Amlal EL Mahrouss due to bad refactoring.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'dev/ToolchainKit/src/CPlusPlusCompilerAMD64.cc')
-rw-r--r--dev/ToolchainKit/src/CPlusPlusCompilerAMD64.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/dev/ToolchainKit/src/CPlusPlusCompilerAMD64.cc b/dev/ToolchainKit/src/CPlusPlusCompilerAMD64.cc
index 68b12e3..7eeeb6d 100644
--- a/dev/ToolchainKit/src/CPlusPlusCompilerAMD64.cc
+++ b/dev/ToolchainKit/src/CPlusPlusCompilerAMD64.cc
@@ -17,17 +17,17 @@
#define kSplashCxx() \
kPrintF(kWhite "%s\n", "ZKA C++ Compiler Driver, (c) 2024 EL Mahrouss Logic, all rights reserved.")
-// extern_segment, @MLAutoRelease { ... }, fn foo() -> auto { ... }
+// extern_segment, @autodelete { ... }, fn foo() -> auto { ... }
#include <ToolchainKit/AAL/CPU/amd64.h>
#include <ToolchainKit/Parser.h>
#include <ToolchainKit/UUID.h>
-/* ZKA C++ Compiler driver */
+/* ZKA C++ Compiler */
/* This is part of the ToolchainKit. */
/* (c) EL Mahrouss Logic */
-/// @author EL Mahrouss Logic (amlel)
+/// @author EL Mahrouss Amlal (amlel)
/// @file CPlusPlusCompilerAMD64.cxx
/// @brief Optimized C++ Compiler Driver.
/// @todo Throw error for scoped inside scoped variables when they get referenced outside.
@@ -73,9 +73,9 @@ namespace detail
struct CompilerState final
{
- std::vector<CompilerRegisterMap> kStackFrame;
- std::vector<CompilerStructMap> kStructMap;
- ToolchainKit::SyntaxLeafList* fSyntaxTree{nullptr};
+ std::vector<CompilerRegisterMap> fStackMapVector;
+ std::vector<CompilerStructMap> fStructMapVector;
+ ToolchainKit::SyntaxLeafList* fSyntaxTree{nullptr};
std::unique_ptr<std::ofstream> fOutputAssembly;
std::string fLastFile;
std::string fLastError;
@@ -95,7 +95,7 @@ namespace detail
/// @param file where does it originate from?
void print_error_asm(std::string reason, std::string file) noexcept;
- struct CompilerType
+ struct CompilerType final
{
std::string fName;
std::string fValue;