From 8dbb92e920c662fa2fe22693677d90498f2d85d9 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 17 Jul 2025 08:03:10 +0100 Subject: fix: LibCompiler frontend has been reworked to work on clang. Renamed 'Linkers' irectory to 'Linker' Signed-off-by: Amlal El Mahrouss --- dev/LibCompiler/Frontend.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'dev/LibCompiler/Frontend.h') diff --git a/dev/LibCompiler/Frontend.h b/dev/LibCompiler/Frontend.h index 5628f9a..d5d9733 100644 --- a/dev/LibCompiler/Frontend.h +++ b/dev/LibCompiler/Frontend.h @@ -58,21 +58,21 @@ enum KeywordKind { /// \brief Compiler keyword information struct. struct CompilerKeyword { + CompilerKeyword(STLString name, KeywordKind kind) : keyword_name(name), keyword_kind(kind) {} + STLString keyword_name{""}; KeywordKind keyword_kind{kKeywordKindInvalid}; }; struct SyntaxLeafList final { struct SyntaxLeaf final { - Int32 fUserType; + Int32 fUserType{0U}; + CompilerKeyword fUserData{ + "", + kKeywordKindInvalid + }; -#ifdef LC_USE_STRUCTS - CompilerKeyword fUserData; -#else - std::string fUserData; -#endif - - std::string fUserValue{""}; + STLString fUserValue{""}; struct SyntaxLeaf* fNext{nullptr}; }; -- cgit v1.2.3