Skip to content

Commit 157b58f

Browse files
committed
refactor source files
1 parent ca1ce30 commit 157b58f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+89
-722
lines changed

CMakeLists.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,18 @@ unset(CMAKE_FOLDER)
8989

9090
file(GLOB_RECURSE LIB_INCLUDES CONFIGURE_DEPENDS include/*.hpp)
9191
file(GLOB_RECURSE LIB_SOURCES CONFIGURE_DEPENDS
92-
source/lib/*.h
93-
source/lib/*.hpp
94-
source/lib/*.cpp
95-
source/lib/*.natvis)
92+
source/api/*.h
93+
source/api/*.hpp
94+
source/api/*.cpp
95+
source/api/*.natvis)
9696

9797
add_library(mrdox-api ${MRDOX_LINK_MODE} ${LIB_INCLUDES} ${LIB_SOURCES})
9898
target_compile_features(mrdox-api PUBLIC cxx_std_20)
9999
target_include_directories(mrdox-api
100100
PUBLIC
101101
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/>"
102102
PRIVATE
103-
"${PROJECT_SOURCE_DIR}/source/lib/"
103+
"${PROJECT_SOURCE_DIR}/source/api/"
104104
)
105105
target_compile_definitions(
106106
mrdox-api
@@ -170,7 +170,7 @@ endif ()
170170

171171
source_group(TREE ${PROJECT_SOURCE_DIR} PREFIX "" FILES CMakeLists.txt)
172172
source_group(TREE ${PROJECT_SOURCE_DIR}/include/mrdox PREFIX "include" FILES ${LIB_INCLUDES})
173-
source_group(TREE ${PROJECT_SOURCE_DIR}/source/lib PREFIX "source" FILES ${LIB_SOURCES})
173+
source_group(TREE ${PROJECT_SOURCE_DIR}/source/api PREFIX "source" FILES ${LIB_SOURCES})
174174

175175
#-------------------------------------------------
176176
#
@@ -193,16 +193,16 @@ source_group(TREE ${PROJECT_SOURCE_DIR}/source/tool PREFIX "source" FILES ${TOOL
193193
#-------------------------------------------------
194194

195195
if (MRDOX_BUILD_TESTS)
196-
file(GLOB_RECURSE TEST_SOURCES CONFIGURE_DEPENDS source/tests/*.cpp source/tests/*.hpp)
196+
file(GLOB_RECURSE TEST_SOURCES CONFIGURE_DEPENDS source/test/*.cpp source/test/*.hpp)
197197
enable_testing()
198198
add_executable(mrdox-test ${TEST_SOURCES})
199199
target_link_libraries(mrdox-test PRIVATE mrdox-api ${llvm_libs})
200-
target_include_directories(mrdox-test PRIVATE ${PROJECT_SOURCE_DIR}/source/tests)
200+
target_include_directories(mrdox-test PRIVATE ${PROJECT_SOURCE_DIR}/source/test)
201201
add_test(NAME mrdox-test COMMAND mrdox-test
202202
"${PROJECT_SOURCE_DIR}/tests/old-tests"
203203
)
204204
source_group(TREE ${PROJECT_SOURCE_DIR} PREFIX "" FILES CMakeLists.txt)
205-
source_group(TREE ${PROJECT_SOURCE_DIR}/source/tests PREFIX "source" FILES ${TEST_SOURCES})
205+
source_group(TREE ${PROJECT_SOURCE_DIR}/source/test PREFIX "source" FILES ${TEST_SOURCES})
206206

207207
if (CMAKE_EXPORT_COMPILE_COMMANDS)
208208
# test run
File renamed without changes.

source/lib/AST/ASTVisitor.hpp renamed to source/api/AST/ASTVisitor.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// Official repository: https://github.com/cppalliance/mrdox
1010
//
1111

12-
#ifndef MRDOX_LIB_AST_ASTVISITOR_HPP
13-
#define MRDOX_LIB_AST_ASTVISITOR_HPP
12+
#ifndef MRDOX_API_AST_ASTVISITOR_HPP
13+
#define MRDOX_API_AST_ASTVISITOR_HPP
1414

1515
#include <mrdox/Platform.hpp>
1616
#include "ConfigImpl.hpp"

source/lib/AST/AnyNodeList.hpp renamed to source/api/AST/AnyNodeList.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
// Official repository: https://github.com/cppalliance/mrdox
99
//
1010

11-
#ifndef MRDOX_LIB_AST_ANYNODELIST_HPP
12-
#define MRDOX_LIB_AST_ANYNODELIST_HPP
11+
#ifndef MRDOX_API_AST_ANYNODELIST_HPP
12+
#define MRDOX_API_AST_ANYNODELIST_HPP
1313

1414
#include <mrdox/Platform.hpp>
1515
#include <mrdox/Error.hpp>
File renamed without changes.

source/lib/AST/Bitcode.hpp renamed to source/api/AST/Bitcode.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// Official repository: https://github.com/cppalliance/mrdox
1010
//
1111

12-
#ifndef MRDOX_LIB_AST_BITCODE_HPP
13-
#define MRDOX_LIB_AST_BITCODE_HPP
12+
#ifndef MRDOX_API_AST_BITCODE_HPP
13+
#define MRDOX_API_AST_BITCODE_HPP
1414

1515
#include <mrdox/Platform.hpp>
1616
#include <mrdox/MetadataFwd.hpp>

source/lib/AST/BitcodeIDs.hpp renamed to source/api/AST/BitcodeIDs.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// Official repository: https://github.com/cppalliance/mrdox
1010
//
1111

12-
#ifndef MRDOX_LIB_AST_BITCODEIDS_HPP
13-
#define MRDOX_LIB_AST_BITCODEIDS_HPP
12+
#ifndef MRDOX_API_AST_BITCODEIDS_HPP
13+
#define MRDOX_API_AST_BITCODEIDS_HPP
1414

1515
#include <mrdox/Platform.hpp>
1616
#include <llvm/Bitstream/BitCodeEnums.h>
File renamed without changes.

source/lib/AST/BitcodeReader.hpp renamed to source/api/AST/BitcodeReader.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
// Official repository: https://github.com/cppalliance/mrdox
1010
//
1111

12-
#ifndef MRDOX_LIB_AST_BITCODEREADER_HPP
13-
#define MRDOX_LIB_AST_BITCODEREADER_HPP
12+
#ifndef MRDOX_API_AST_BITCODEREADER_HPP
13+
#define MRDOX_API_AST_BITCODEREADER_HPP
1414

1515
//
1616
// This file implements a reader for parsing the
File renamed without changes.

0 commit comments

Comments
 (0)