Skip to content

Commit

Permalink
小修改
Browse files Browse the repository at this point in the history
  • Loading branch information
wangziwenhk committed Sep 24, 2024
1 parent 6b6152a commit 89733ca
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 51 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ include_directories(${LLVM_INCLUDE_DIRS})
include_directories(parser)

file(GLOB_RECURSE AST_FILES "parser/*.cpp" "parser/*.h")
file(GLOB_RECURSE SOURCE_FILES "src/*")
file(GLOB_RECURSE SOURCE_FILES "src/*.cpp" "src/*.h")

add_executable(Riddle_Language ${SOURCE_FILES} ${AST_FILES})

Expand Down
1 change: 0 additions & 1 deletion src/Tools/Linker.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "Linker.h"
#include "Files.h"
#include <ext/rope>
#include <filesystem>
#include <regex>
namespace fs = std::filesystem;
Expand Down
3 changes: 1 addition & 2 deletions src/Tools/Managers/VarManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ namespace Riddle {
void pop();
/// @brief 定义一个新的变量
/// @param name 变量名
/// @param type 类型,当类型为 null 时说明在下一次赋值时判断,在被引用之前必须有类型
/// @param isConst 是否不变
/// @param value 指某个局部变量的地址
void defineVar(const std::string &name, const bool &isConst, llvm::Value *value = nullptr);
Expand All @@ -32,7 +31,7 @@ namespace Riddle {
Variable getVar(const std::string &name);
/// @brief 获取当前是否为全局
/// @returns 是否为全局
bool isGlobal()const;
[[nodiscard]] bool isGlobal()const;
};

}// namespace Riddle
Expand Down
4 changes: 0 additions & 4 deletions src/ext/doubleMap.cpp

This file was deleted.

43 changes: 0 additions & 43 deletions src/ext/doubleMap.h

This file was deleted.

0 comments on commit 89733ca

Please sign in to comment.