From 2fd3475239d4258ca4407ffb2c0720d90d711d6c Mon Sep 17 00:00:00 2001 From: Amlal Date: Mon, 27 Jan 2025 02:11:12 +0100 Subject: ADD: `dbg` C++ debugger program. META: Ran format command with correct C++ extensions. Signed-off-by: Amlal --- dev/LibCompiler/src/CCompilerARM64.cc | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'dev/LibCompiler/src/CCompilerARM64.cc') diff --git a/dev/LibCompiler/src/CCompilerARM64.cc b/dev/LibCompiler/src/CCompilerARM64.cc index d5b26be..af77a78 100644 --- a/dev/LibCompiler/src/CCompilerARM64.cc +++ b/dev/LibCompiler/src/CCompilerARM64.cc @@ -79,13 +79,13 @@ namespace Detail struct CompilerState final { std::vector fSyntaxTreeList; - std::vector kStackFrame; - std::vector kStructMap; + std::vector kStackFrame; + std::vector kStructMap; LibCompiler::SyntaxLeafList* fSyntaxTree{nullptr}; - std::unique_ptr fOutputAssembly; - std::string fLastFile; - std::string fLastError; - bool fVerbose; + std::unique_ptr fOutputAssembly; + std::string fLastFile; + std::string fLastError; + bool fVerbose; }; } // namespace Detail @@ -131,20 +131,20 @@ static std::string kRegisterPrefix = kAsmRegisterPrefix; ///////////////////////////////////////// -static std::vector kFileList; -static LibCompiler::AssemblyFactory kFactory; -static bool kInStruct = false; -static bool kOnWhileLoop = false; -static bool kOnForLoop = false; -static bool kInBraces = false; -static bool kIfFound = false; -static size_t kBracesCount = 0UL; +static std::vector kFileList; +static LibCompiler::AssemblyFactory kFactory; +static bool kInStruct = false; +static bool kOnWhileLoop = false; +static bool kOnForLoop = false; +static bool kInBraces = false; +static bool kIfFound = false; +static size_t kBracesCount = 0UL; /* @brief C compiler backend for C */ class CompilerFrontendARM64 final : public LibCompiler::ICompilerFrontend { public: - explicit CompilerFrontendARM64() = default; + explicit CompilerFrontendARM64() = default; ~CompilerFrontendARM64() override = default; LIBCOMPILER_COPY_DEFAULT(CompilerFrontendARM64); @@ -401,7 +401,7 @@ bool CompilerFrontendARM64::Compile(std::string text, const std::string file) if (text[text_index] == '=' && kInStruct) { Detail::print_error("assignement of value in struct " + text, - file); + file); continue; } -- cgit v1.2.3