From 9f09c7ba0f4904993816a49f186d9f3d6b69a7d5 Mon Sep 17 00:00:00 2001 From: ykiko Date: Sat, 26 Oct 2024 21:00:23 +0800 Subject: [PATCH] Reorganize the project. --- CMakeLists.txt | 3 ++- include/{Compiler => AST}/Resolver.h | 0 include/{Compiler => AST}/Selection.h | 0 src/{Compiler => AST}/Resolver.cpp | 2 +- src/{Compiler => AST}/Selection.cpp | 2 +- unittests/AST/Resolver.cpp | 2 +- unittests/AST/Selection.cpp | 2 +- 7 files changed, 6 insertions(+), 5 deletions(-) rename include/{Compiler => AST}/Resolver.h (100%) rename include/{Compiler => AST}/Selection.h (100%) rename src/{Compiler => AST}/Resolver.cpp (99%) rename src/{Compiler => AST}/Selection.cpp (99%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9cf7d965..849ab184 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,8 @@ if(NOT EXISTS "${CMAKE_BINARY_DIR}/lib/clang") endif() # build clice core part as library -file(GLOB_RECURSE CLICE_CORE_SOURCES +file(GLOB_RECURSE CLICE_CORE_SOURCES + "${CMAKE_SOURCE_DIR}/src/AST/*.cpp" "${CMAKE_SOURCE_DIR}/src/Compiler/*.cpp" "${CMAKE_SOURCE_DIR}/src/Index/*.cpp" "${CMAKE_SOURCE_DIR}/src/Feature/*.cpp" diff --git a/include/Compiler/Resolver.h b/include/AST/Resolver.h similarity index 100% rename from include/Compiler/Resolver.h rename to include/AST/Resolver.h diff --git a/include/Compiler/Selection.h b/include/AST/Selection.h similarity index 100% rename from include/Compiler/Selection.h rename to include/AST/Selection.h diff --git a/src/Compiler/Resolver.cpp b/src/AST/Resolver.cpp similarity index 99% rename from src/Compiler/Resolver.cpp rename to src/AST/Resolver.cpp index e4bfb666..2c0209c9 100644 --- a/src/Compiler/Resolver.cpp +++ b/src/AST/Resolver.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include #include diff --git a/src/Compiler/Selection.cpp b/src/AST/Selection.cpp similarity index 99% rename from src/Compiler/Selection.cpp rename to src/AST/Selection.cpp index 93baf213..00477d9d 100644 --- a/src/Compiler/Selection.cpp +++ b/src/AST/Selection.cpp @@ -2,7 +2,7 @@ #include -#include +#include namespace clice { diff --git a/unittests/AST/Resolver.cpp b/unittests/AST/Resolver.cpp index 195f8cfc..e0eda687 100644 --- a/unittests/AST/Resolver.cpp +++ b/unittests/AST/Resolver.cpp @@ -1,5 +1,5 @@ #include "../Test.h" -#include +#include #include namespace { diff --git a/unittests/AST/Selection.cpp b/unittests/AST/Selection.cpp index a433c75a..0f46ea87 100644 --- a/unittests/AST/Selection.cpp +++ b/unittests/AST/Selection.cpp @@ -1,5 +1,5 @@ #include "../Test.h" -#include +#include #include namespace {