Skip to content

Commit

Permalink
refactor: private includes refer to src
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Jul 11, 2023
1 parent ad3a911 commit bfba8fc
Show file tree
Hide file tree
Showing 43 changed files with 90 additions and 93 deletions.
9 changes: 3 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ target_include_directories(mrdox-core
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
PRIVATE
"${PROJECT_SOURCE_DIR}/src/lib"
"${PROJECT_SOURCE_DIR}/src"
"${PROJECT_SOURCE_DIR}/include")
target_compile_definitions(
mrdox-core
Expand Down Expand Up @@ -212,8 +212,7 @@ target_include_directories(mrdox
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
PRIVATE
"${PROJECT_SOURCE_DIR}/include"
"${PROJECT_SOURCE_DIR}/src/lib"
"${PROJECT_SOURCE_DIR}/src/tool"
"${PROJECT_SOURCE_DIR}/src"
)

target_compile_definitions(mrdox PRIVATE -DMRDOX_TOOL)
Expand Down Expand Up @@ -248,9 +247,7 @@ if (MRDOX_BUILD_TESTS)
target_include_directories(mrdox-test
PRIVATE
"${PROJECT_SOURCE_DIR}/include"
"${PROJECT_SOURCE_DIR}/src/lib"
"${PROJECT_SOURCE_DIR}/src/tool"
"${PROJECT_SOURCE_DIR}/src/test/test_suite"
"${PROJECT_SOURCE_DIR}/src"
)
target_link_libraries(mrdox-test PUBLIC mrdox-core)
if (MRDOX_CLANG)
Expand Down
4 changes: 2 additions & 2 deletions src/lib/-XML/XMLGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

#include "XMLGenerator.hpp"
#include "XMLWriter.hpp"
#include "Support/Radix.hpp"
#include "Support/RawOstream.hpp"
#include <lib/Support/Radix.hpp>
#include <lib/Support/RawOstream.hpp>
#include <mrdox/Support/Error.hpp>
#include <mrdox/Metadata.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/lib/-XML/XMLTags.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//

#include "XMLTags.hpp"
#include "Support/Radix.hpp"
#include <lib/Support/Radix.hpp>
#include <mrdox/Platform.hpp>

namespace clang {
Expand Down
8 changes: 4 additions & 4 deletions src/lib/-XML/XMLWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@

#include "CXXTags.hpp"
#include "XMLWriter.hpp"
#include "Lib/ConfigImpl.hpp"
#include "Support/Yaml.hpp"
#include "Support/Radix.hpp"
#include "Support/SafeNames.hpp"
#include <lib/Lib/ConfigImpl.hpp>
#include <lib/Support/Yaml.hpp>
#include <lib/Support/Radix.hpp>
#include <lib/Support/SafeNames.hpp>
#include <mrdox/Platform.hpp>
#include <llvm/Support/YAMLParser.h>
#include <llvm/Support/YAMLTraits.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/-XML/XMLWriter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#define MRDOX_LIB_XML_XMLWRITER_HPP

#include "XMLTags.hpp"
#include "Support/YamlFwd.hpp"
#include <lib/Support/YamlFwd.hpp>
#include <mrdox/Corpus.hpp>
#include <mrdox/Metadata.hpp>
#include <mrdox/Support/Error.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/-adoc/AdocGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "Builder.hpp"
#include "MultiPageVisitor.hpp"
#include "SinglePageVisitor.hpp"
#include "Support/SafeNames.hpp"
#include <lib/Support/SafeNames.hpp>
#include <mrdox/Metadata/DomMetadata.hpp>
#include <mrdox/Support/Error.hpp>
#include <mrdox/Support/Path.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/-adoc/Builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//

#include "Builder.hpp"
#include "Support/Radix.hpp"
#include <lib/Support/Radix.hpp>
#include <mrdox/Metadata/DomMetadata.hpp>
#include <mrdox/Support/Path.hpp>
#include <llvm/Support/FileSystem.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/-adoc/Builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define MRDOX_LIB_ADOC_BUILDER_HPP

#include "Options.hpp"
#include "Support/Radix.hpp"
#include <lib/Support/Radix.hpp>
#include <mrdox/Metadata/DomMetadata.hpp>
#include <mrdox/Support/Error.hpp>
#include <mrdox/Support/JavaScript.hpp>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/-adoc/Options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
//

#include "Options.hpp"
#include "Support/Yaml.hpp"
#include "Lib/ConfigImpl.hpp" // VFALCO This is a problem
#include <lib/Support/Yaml.hpp>
#include <lib/Lib/ConfigImpl.hpp> // VFALCO This is a problem
#include <mrdox/Corpus.hpp>
#include <mrdox/Support/Path.hpp>
#include <llvm/Support/YAMLParser.h>
Expand Down
6 changes: 3 additions & 3 deletions src/lib/-bitcode/BitcodeGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
//

#include "BitcodeGenerator.hpp"
#include "Support/Error.hpp"
#include "Support/SafeNames.hpp"
#include "AST/Bitcode.hpp"
#include <lib/Support/Error.hpp>
#include <lib/Support/SafeNames.hpp>
#include <lib/AST/Bitcode.hpp>
#include <mrdox/Support/ThreadPool.hpp>
#include <mrdox/Metadata.hpp>

Expand Down
6 changes: 3 additions & 3 deletions src/lib/AST/ASTVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include "ASTVisitorHelpers.hpp"
#include "Bitcode.hpp"
#include "ParseJavadoc.hpp"
#include "Support/Path.hpp"
#include "Support/Debug.hpp"
#include "Lib/Diagnostics.hpp"
#include <lib/Support/Path.hpp>
#include <lib/Support/Debug.hpp>
#include <lib/Lib/Diagnostics.hpp>
#include <mrdox/Metadata.hpp>
#include <clang/AST/Attr.h>
#include <clang/AST/Decl.h>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/AST/ASTVisitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#ifndef MRDOX_LIB_AST_ASTVISITOR_HPP
#define MRDOX_LIB_AST_ASTVISITOR_HPP

#include "Lib/ConfigImpl.hpp"
#include "Lib/ExecutionContext.hpp"
#include <lib/Lib/ConfigImpl.hpp>
#include <lib/Lib/ExecutionContext.hpp>
#include <mrdox/Platform.hpp>
#include <clang/Tooling/Execution.h>
#include <clang/Tooling/Tooling.h>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/AST/AnyBlock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

#include "BitcodeReader.hpp"
#include "DecodeRecord.hpp"
#include "Support/Debug.hpp"
#include "Support/Error.hpp"
#include <lib/Support/Debug.hpp>
#include <lib/Support/Error.hpp>

namespace clang {
namespace mrdox {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/AST/BitcodeReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#include "BitcodeReader.hpp"
#include "AnyBlock.hpp"
#include "DecodeRecord.hpp"
#include "Support/Debug.hpp"
#include "Support/Error.hpp"
#include <lib/Support/Debug.hpp>
#include <lib/Support/Error.hpp>
#include <mrdox/Support/Error.hpp>

namespace clang {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/AST/BitcodeWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "BitcodeWriter.hpp"
#include "Bitcode.hpp"
#include "ParseJavadoc.hpp"
#include "Support/Debug.hpp"
#include <lib/Support/Debug.hpp>
#include <mrdox/Metadata.hpp>
#include <llvm/ADT/IndexedMap.h>
#include <initializer_list>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/AST/ParseJavadoc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef MRDOX_LIB_AST_PARSEJAVADOC_HPP
#define MRDOX_LIB_AST_PARSEJAVADOC_HPP

#include "Lib/Diagnostics.hpp"
#include <lib/Lib/Diagnostics.hpp>
#include <mrdox/Platform.hpp>
#include <mrdox/Config.hpp>
#include <mrdox/Metadata/Javadoc.hpp>
Expand Down
8 changes: 4 additions & 4 deletions src/lib/Lib/AbsoluteCompilationDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Support/Debug.hpp"
#include "Support/Path.hpp"
#include "Lib/ConfigImpl.hpp"
#include "Lib/AbsoluteCompilationDatabase.hpp"
#include <lib/Support/Debug.hpp>
#include <lib/Support/Path.hpp>
#include <lib/Lib/ConfigImpl.hpp>
#include <lib/Lib/AbsoluteCompilationDatabase.hpp>
#include <fmt/format.h>
#include <clang/Basic/LangStandard.h>
#include <clang/Driver/Driver.h>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Lib/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Lib/ConfigImpl.hpp"
#include "Support/Path.hpp"
#include <lib/Lib/ConfigImpl.hpp>
#include <lib/Support/Path.hpp>
#include <mrdox/Support/Error.hpp>
#include <llvm/Config/llvm-config.h>
#include <llvm/Support/FileSystem.h>
Expand Down
10 changes: 5 additions & 5 deletions src/lib/Lib/ConfigImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Lib/ConfigImpl.hpp"
#include "Support/Debug.hpp"
#include "Support/Error.hpp"
#include "Support/Path.hpp"
#include "Support/Yaml.hpp"
#include <lib/Lib/ConfigImpl.hpp>
#include <lib/Support/Debug.hpp>
#include <lib/Support/Error.hpp>
#include <lib/Support/Path.hpp>
#include <lib/Support/Yaml.hpp>
#include <mrdox/Support/Path.hpp>
#include <clang/Tooling/AllTUsExecution.h>
#include <llvm/Support/FileSystem.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Lib/ConfigImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef MRDOX_LIB_CONFIGIMPL_HPP
#define MRDOX_LIB_CONFIGIMPL_HPP

#include "Support/YamlFwd.hpp"
#include <lib/Support/YamlFwd.hpp>
#include <mrdox/Config.hpp>
#include <mrdox/Support/Error.hpp>
#include <mrdox/Support/ThreadPool.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Lib/Corpus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Lib/ConfigImpl.hpp"
#include <lib/Lib/ConfigImpl.hpp>
#include <mrdox/Corpus.hpp>
#include <mrdox/Metadata.hpp>
#include <mrdox/Support/Error.hpp>
Expand Down
8 changes: 4 additions & 4 deletions src/lib/Lib/CorpusImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "AST/Bitcode.hpp"
#include "AST/ASTVisitor.hpp"
#include <lib/AST/Bitcode.hpp>
#include <lib/AST/ASTVisitor.hpp>
#include "CorpusImpl.hpp"
#include "Metadata/Reduce.hpp"
#include "Support/Error.hpp"
#include <lib/Metadata/Reduce.hpp>
#include <lib/Support/Error.hpp>
#include <mrdox/Metadata.hpp>
#include <mrdox/Support/Error.hpp>
#include <llvm/ADT/STLExtras.h>
Expand Down
6 changes: 3 additions & 3 deletions src/lib/Lib/CorpusImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#ifndef MRDOX_LIB_CORPUSIMPL_HPP
#define MRDOX_LIB_CORPUSIMPL_HPP

#include "Lib/ConfigImpl.hpp"
#include "Lib/ToolExecutor.hpp"
#include "Support/Debug.hpp"
#include <lib/Lib/ConfigImpl.hpp>
#include <lib/Lib/ToolExecutor.hpp>
#include <lib/Support/Debug.hpp>
#include <mrdox/Corpus.hpp>
#include <mrdox/Metadata.hpp>
#include <mrdox/Platform.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Metadata/DomMetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Support/Radix.hpp"
#include <lib/Support/Radix.hpp>
#include <mrdox/Metadata.hpp>
#include <mrdox/Metadata/DomMetadata.hpp>
#include <llvm/ADT/StringMap.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Metadata/Info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Support/Radix.hpp"
#include <lib/Support/Radix.hpp>
#include <mrdox/Metadata/Info.hpp>
#include <mrdox/Metadata/Record.hpp>
#include <clang/AST/Type.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Metadata/Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Support/Debug.hpp"
#include <lib/Support/Debug.hpp>
#include <mrdox/Metadata/Interface.hpp>
#include <mrdox/Support/TypeTraits.hpp>
#include <mrdox/Config.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Metadata/Javadoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Support/Debug.hpp"
#include <lib/Support/Debug.hpp>
#include <mrdox/Metadata/Javadoc.hpp>
#include <llvm/Support/Error.h>
#include <llvm/Support/Path.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Metadata/Namespace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//

#include "Reduce.hpp"
#include "Support/Debug.hpp"
#include <lib/Support/Debug.hpp>
#include <mrdox/Metadata/Namespace.hpp>
#include <mrdox/Config.hpp>
#include <llvm/Support/Error.h>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Support/Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Support/Debug.hpp"
#include "Support/Radix.hpp"
#include <lib/Support/Debug.hpp>
#include <lib/Support/Radix.hpp>
#include <mrdox/Metadata/Info.hpp>
#include <mrdox/Metadata/Record.hpp>
#include <mrdox/Metadata/Symbols.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Support/Error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Support/Error.hpp"
#include <lib/Support/Error.hpp>
#include <mrdox/Support/Path.hpp>
#include <llvm/Support/Mutex.h>
#include <llvm/Support/raw_ostream.h>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Support/Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "AST/ParseJavadoc.hpp"
#include <lib/AST/ParseJavadoc.hpp>
#include <mrdox/Support/Error.hpp>
#include <mrdox/Generator.hpp>
#include <llvm/ADT/SmallString.h>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Support/Lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
#include <mrdox/Support/Lua.hpp>
#include <mrdox/Support/Error.hpp>
#include <mrdox/Support/Path.hpp>
#include "../../lua/src/lua.hpp"
#include "../../../lua/src/lua.hpp"
#include <fmt/format.h>

#include <llvm/Support/raw_ostream.h>
#include "Support/LuaHandlebars.hpp"
#include <lib/Support/LuaHandlebars.hpp>

namespace clang {
namespace mrdox {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Support/Radix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Support/Radix.hpp"
#include "Support/Debug.hpp"
#include <lib/Support/Radix.hpp>
#include <lib/Support/Debug.hpp>
#include <mrdox/Platform.hpp>
#include <llvm/ADT/StringExtras.h>
#include <algorithm>
Expand Down
6 changes: 3 additions & 3 deletions src/lib/Support/SafeNames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Support/Radix.hpp"
#include "Support/SafeNames.hpp"
#include "Support/Validate.hpp"
#include <lib/Support/Radix.hpp>
#include <lib/Support/SafeNames.hpp>
#include <lib/Support/Validate.hpp>
#include <mrdox/Corpus.hpp>
#include <mrdox/Metadata.hpp>
#include <mrdox/Platform.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Support/ThreadPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Official repository: https://github.com/cppalliance/mrdox
//

#include "Support/Debug.hpp"
#include <lib/Support/Debug.hpp>
#include <mrdox/Support/Error.hpp>
#include <mrdox/Support/ThreadPool.hpp>
#include <llvm/Support/Signals.h>
Expand Down
Loading

0 comments on commit bfba8fc

Please sign in to comment.