diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 22ba029c4..8703116fb 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -59,7 +59,7 @@ jobs:
contents: write
steps:
- - name: Clone MrDox
+ - name: Clone MrDocs
uses: actions/checkout@v3
- name: Install LLVM
@@ -84,7 +84,7 @@ jobs:
fi
llvm_commit_id=29b20829
llvm_archive_filename="$llvm_runner_os-$llvm_config_type-$llvm_commit_id.$llvm_archive_type"
- llvm_url="https://github.com/cppalliance/mrdox/releases/download/llvm-package-release/$llvm_archive_filename"
+ llvm_url="https://github.com/cppalliance/mrdocs/releases/download/llvm-package-release/$llvm_archive_filename"
if ! curl --head --silent --fail "$llvm_url"; then
llvm_url="https://mrdox.com/llvm+clang/$llvm_archive_filename"
@@ -220,7 +220,7 @@ jobs:
contents: write
steps:
- - name: Clone mrdox
+ - name: Clone mrdocs
uses: actions/checkout@v3
- name: Install Node.js
@@ -232,8 +232,8 @@ jobs:
working-directory: docs
run: |
npm install
- master_antora_exists=$(curl --silent --fail --head https://github.com/cppalliance/mrdox/blob/master/docs/antora.yml >/dev/null && echo "true" || echo "false")
- develop_antora_exists=$(curl --silent --fail --head https://github.com/cppalliance/mrdox/blob/develop/docs/antora.yml >/dev/null && echo "true" || echo "false")
+ master_antora_exists=$(curl --silent --fail --head https://github.com/cppalliance/mrdocs/blob/master/docs/antora.yml >/dev/null && echo "true" || echo "false")
+ develop_antora_exists=$(curl --silent --fail --head https://github.com/cppalliance/mrdocs/blob/develop/docs/antora.yml >/dev/null && echo "true" || echo "false")
if [ "$master_antora_exists" == "true" ] && [ "$develop_antora_exists" == "true" ]; then
# Antora is set up in both master and develop: render complete playbook
npx antora antora-playbook.yml
@@ -281,7 +281,7 @@ jobs:
contents: write
steps:
- - name: Clone mrdox
+ - name: Clone mrdocs
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
@@ -309,11 +309,11 @@ jobs:
cc: ${{ steps.setup-cpp.outputs.cc }}
cxx: ${{ steps.setup-cpp.outputs.cxx }}
- - name: Install mrdox from release package
+ - name: Install mrdocs from release package
run: |
set -x
- sudo find packages -name 'MrDox-*-Linux.tar.gz' -exec tar -xzf {} -C /usr/local --strip-components=1 \;
- mrdox --version
+ sudo find packages -name 'MrDocs-*-Linux.tar.gz' -exec tar -xzf {} -C /usr/local --strip-components=1 \;
+ mrdocs --version
- name: Clone Boost.URL
uses: alandefreitas/cpp-actions/boost-clone@v1.5.0
@@ -351,31 +351,31 @@ jobs:
- name: Generate demos
run: |
- echo "verbose: true" > $(pwd)/boost/libs/url/mrdox-single.yml
- echo "source-root: ." >> $(pwd)/boost/libs/url/mrdox-single.yml
- echo "multipage: false" >> $(pwd)/boost/libs/url/mrdox-single.yml
- echo "inaccessible-members: never" >> $(pwd)/boost/libs/url/mrdox-single.yml
- echo "filters:" >> $(pwd)/boost/libs/url/mrdox-single.yml
- echo " symbols:" >> $(pwd)/boost/libs/url/mrdox-single.yml
- echo " exclude:" >> $(pwd)/boost/libs/url/mrdox-single.yml
- echo " - 'boost::urls::detail'" >> $(pwd)/boost/libs/url/mrdox-single.yml
- echo " - 'boost::urls::*::detail'" >> $(pwd)/boost/libs/url/mrdox-single.yml
+ echo "verbose: true" > $(pwd)/boost/libs/url/mrdocs-single.yml
+ echo "source-root: ." >> $(pwd)/boost/libs/url/mrdocs-single.yml
+ echo "multipage: false" >> $(pwd)/boost/libs/url/mrdocs-single.yml
+ echo "inaccessible-members: never" >> $(pwd)/boost/libs/url/mrdocs-single.yml
+ echo "filters:" >> $(pwd)/boost/libs/url/mrdocs-single.yml
+ echo " symbols:" >> $(pwd)/boost/libs/url/mrdocs-single.yml
+ echo " exclude:" >> $(pwd)/boost/libs/url/mrdocs-single.yml
+ echo " - 'boost::urls::detail'" >> $(pwd)/boost/libs/url/mrdocs-single.yml
+ echo " - 'boost::urls::*::detail'" >> $(pwd)/boost/libs/url/mrdocs-single.yml
- echo "verbose: true" > $(pwd)/boost/libs/url/mrdox-multi.yml
- echo "source-root: ." >> $(pwd)/boost/libs/url/mrdox-multi.yml
- echo "multipage: true" >> $(pwd)/boost/libs/url/mrdox-multi.yml
- echo "inaccessible-members: never" >> $(pwd)/boost/libs/url/mrdox-multi.yml
- echo "filters:" >> $(pwd)/boost/libs/url/mrdox-multi.yml
- echo " symbols:" >> $(pwd)/boost/libs/url/mrdox-multi.yml
- echo " exclude:" >> $(pwd)/boost/libs/url/mrdox-multi.yml
- echo " - 'boost::urls::detail'" >> $(pwd)/boost/libs/url/mrdox-multi.yml
- echo " - 'boost::urls::*::detail'" >> $(pwd)/boost/libs/url/mrdox-multi.yml
+ echo "verbose: true" > $(pwd)/boost/libs/url/mrdocs-multi.yml
+ echo "source-root: ." >> $(pwd)/boost/libs/url/mrdocs-multi.yml
+ echo "multipage: true" >> $(pwd)/boost/libs/url/mrdocs-multi.yml
+ echo "inaccessible-members: never" >> $(pwd)/boost/libs/url/mrdocs-multi.yml
+ echo "filters:" >> $(pwd)/boost/libs/url/mrdocs-multi.yml
+ echo " symbols:" >> $(pwd)/boost/libs/url/mrdocs-multi.yml
+ echo " exclude:" >> $(pwd)/boost/libs/url/mrdocs-multi.yml
+ echo " - 'boost::urls::detail'" >> $(pwd)/boost/libs/url/mrdocs-multi.yml
+ echo " - 'boost::urls::*::detail'" >> $(pwd)/boost/libs/url/mrdocs-multi.yml
set -x
for variant in single multi; do
for format in adoc html xml; do
mkdir -p "demos/boost-url/$variant/$format"
- mrdox --config="$(pwd)/boost/libs/url/mrdox-$variant.yml" "$(pwd)/boost/libs/url/__build__/compile_commands.json" --addons="$(pwd)/share/mrdox/addons" --format="$format" --output="$(pwd)/demos/boost-url/$variant/$format"
+ mrdocs --config="$(pwd)/boost/libs/url/mrdocs-$variant.yml" "$(pwd)/boost/libs/url/__build__/compile_commands.json" --addons="$(pwd)/share/mrdocs/addons" --format="$format" --output="$(pwd)/demos/boost-url/$variant/$format"
done
asciidoctor -R "$(pwd)/demos/boost-url/$variant/adoc" -D "$(pwd)/demos/boost-url/$variant/adoc-asciidoc" "$(pwd)/demos/boost-url/$variant/adoc/**/*.adoc"
done
@@ -421,7 +421,7 @@ jobs:
contents: write
steps:
- - name: Clone mrdox
+ - name: Clone mrdocs
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
@@ -458,7 +458,7 @@ jobs:
if: ${{ github.event_name == 'push' && (contains(fromJSON('["master", "develop"]'), github.ref_name) || startsWith(github.ref, 'refs/tags/')) }}
uses: softprops/action-gh-release@v1
with:
- files: build/MrDox-?.?.?-*.*
+ files: build/MrDocs-?.?.?-*.*
name: ${{ github.ref_name || github.ref }}
tag_name: ${{ github.ref_name || github.ref }}${{ ((!startsWith(github.ref, 'refs/tags/')) && '-release') || '' }}
body_path: CHANGELOG.md
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e336fa33a..143f2ed96 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,7 @@
# Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
# Copyright (c) 2023 Alan de Freitas (alandefreitas@gmail.com)
#
-# Official repository: https://github.com/cppalliance/mrdox
+# Official repository: https://github.com/cppalliance/mrdocs
#
#-------------------------------------------------
@@ -23,38 +23,38 @@ elseif(NOT GENERATOR_IS_MULTI_CONFIG AND NOT CMAKE_BUILD_TYPE)
endif()
cmake_policy(SET CMP0111 OLD)
project(
- MrDox
+ MrDocs
VERSION 1.0.0
DESCRIPTION "C++ Documentation Tool"
- HOMEPAGE_URL "https://github.com/cppalliance/mrdox"
+ HOMEPAGE_URL "https://github.com/cppalliance/mrdocs"
LANGUAGES CXX C
)
include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
-option(MRDOX_INSTALL "Configure install target" ON)
-option(MRDOX_PACKAGE "Build install package" ON)
-option(MRDOX_BUILD_SHARED "Link shared" ${BUILD_SHARED_LIBS})
-option(MRDOX_BUILD_TESTS "Build tests" ${BUILD_TESTING})
-if (MRDOX_BUILD_TESTS OR MRDOX_INSTALL)
- option(MRDOX_BUILD_DOCS "Build documentation" ON)
+option(MRDOCS_INSTALL "Configure install target" ON)
+option(MRDOCS_PACKAGE "Build install package" ON)
+option(MRDOCS_BUILD_SHARED "Link shared" ${BUILD_SHARED_LIBS})
+option(MRDOCS_BUILD_TESTS "Build tests" ${BUILD_TESTING})
+if (MRDOCS_BUILD_TESTS OR MRDOCS_INSTALL)
+ option(MRDOCS_BUILD_DOCS "Build documentation" ON)
else()
- option(MRDOX_BUILD_DOCS "Build documentation" OFF)
+ option(MRDOCS_BUILD_DOCS "Build documentation" OFF)
endif()
-option(MRDOX_GENERATE_REFERENCE "Generate MrDox reference" ${MRDOX_BUILD_DOCS})
-option(MRDOX_GENERATE_ANTORA_REFERENCE "Generate MrDox reference in Antora module pages" OFF)
+option(MRDOCS_GENERATE_REFERENCE "Generate MrDocs reference" ${MRDOCS_BUILD_DOCS})
+option(MRDOCS_GENERATE_ANTORA_REFERENCE "Generate MrDocs reference in Antora module pages" OFF)
-if (MRDOX_BUILD_SHARED)
- set(MRDOX_LINK_MODE SHARED)
- set(MRDOX_LINK_MODE_DEFINITION -DMRDOX_SHARED_LINK)
+if (MRDOCS_BUILD_SHARED)
+ set(MRDOCS_LINK_MODE SHARED)
+ set(MRDOCS_LINK_MODE_DEFINITION -DMRDOCS_SHARED_LINK)
else()
- set(MRDOX_LINK_MODE_DEFINITION -DMRDOX_STATIC_LINK)
+ set(MRDOCS_LINK_MODE_DEFINITION -DMRDOCS_STATIC_LINK)
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
- set(MRDOX_GCC ON)
+ set(MRDOCS_GCC ON)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
- set(MRDOX_CLANG ON)
+ set(MRDOCS_CLANG ON)
endif()
#-------------------------------------------------
@@ -136,7 +136,7 @@ unset(CMAKE_FOLDER)
#-------------------------------------------------
#
-# mrdox-core
+# mrdocs-core
#
#-------------------------------------------------
@@ -147,9 +147,9 @@ file(
include/*.hpp include/*.ipp
include/*.natvis
SourceFileNames.cpp)
-add_library(mrdox-core ${LIB_SOURCES})
-target_compile_features(mrdox-core PUBLIC cxx_std_20)
-target_include_directories(mrdox-core
+add_library(mrdocs-core ${LIB_SOURCES})
+target_compile_features(mrdocs-core PUBLIC cxx_std_20)
+target_include_directories(mrdocs-core
PUBLIC
"$"
"$"
@@ -157,23 +157,23 @@ target_include_directories(mrdox-core
"${PROJECT_SOURCE_DIR}/src"
"${PROJECT_SOURCE_DIR}/include")
target_compile_definitions(
- mrdox-core
+ mrdocs-core
PUBLIC
- ${MRDOX_LINK_MODE_DEFINITION}
+ ${MRDOCS_LINK_MODE_DEFINITION}
PRIVATE
- -DMRDOX_TOOL
+ -DMRDOCS_TOOL
)
# Deps
-target_include_directories(mrdox-core SYSTEM PUBLIC ${LLVM_INCLUDE_DIRS})
-target_include_directories(mrdox-core SYSTEM PUBLIC ${CLANG_INCLUDE_DIRS})
-target_link_libraries(mrdox-core PUBLIC fmt::fmt duktape::duktape)
+target_include_directories(mrdocs-core SYSTEM PUBLIC ${LLVM_INCLUDE_DIRS})
+target_include_directories(mrdocs-core SYSTEM PUBLIC ${CLANG_INCLUDE_DIRS})
+target_link_libraries(mrdocs-core PUBLIC fmt::fmt duktape::duktape)
# Clang
if (CLANG_SIMPLE_LIBS)
- target_link_libraries(mrdox-core PUBLIC LLVM clang clang-cpp)
+ target_link_libraries(mrdocs-core PUBLIC LLVM clang clang-cpp)
else()
- target_link_libraries(mrdox-core
+ target_link_libraries(mrdocs-core
PUBLIC
clangAST
clangBasic
@@ -187,7 +187,7 @@ endif()
# Windows, Win64
if (WIN32)
target_compile_definitions(
- mrdox-core
+ mrdocs-core
PUBLIC
-D_WIN32_WINNT=0x0601
-D_CRT_SECURE_NO_WARNINGS
@@ -197,15 +197,15 @@ if (WIN32)
if(MSVC)
get_target_property(LLVM_CONFIGURATION_TYPE LLVMCore IMPORTED_CONFIGURATIONS)
if (LLVM_CONFIGURATION_TYPE STREQUAL RELWITHDEBINFO)
- # Handle Debug/RelWithDebInfo mismatch between mrdox and LLVM
- target_compile_definitions(mrdox-core PUBLIC $<$:-D_ITERATOR_DEBUG_LEVEL=0>)
- target_compile_options(mrdox-core PUBLIC $<$:/MD>)
+ # Handle Debug/RelWithDebInfo mismatch between mrdocs and LLVM
+ target_compile_definitions(mrdocs-core PUBLIC $<$:-D_ITERATOR_DEBUG_LEVEL=0>)
+ target_compile_options(mrdocs-core PUBLIC $<$:/MD>)
endif()
if("${CMAKE_GENERATOR_PLATFORM}" STREQUAL "Win64") # 64-bit
- target_compile_options(mrdox-core PUBLIC /arch:AMD64)
+ target_compile_options(mrdocs-core PUBLIC /arch:AMD64)
endif()
target_compile_options(
- mrdox-core
+ mrdocs-core
PUBLIC
/permissive- # strict C++
/W4 # enable all warnings
@@ -215,9 +215,9 @@ if (WIN32)
endif()
endif ()
-if (MRDOX_CLANG)
+if (MRDOCS_CLANG)
target_compile_options(
- mrdox-core
+ mrdocs-core
PUBLIC
-Wno-unused-private-field
-Wno-unused-value
@@ -233,10 +233,10 @@ endif ()
#-------------------------------------------------
file(GLOB_RECURSE TOOL_SOURCES CONFIGURE_DEPENDS src/tool/*.cpp src/tool/*.hpp)
-add_executable(mrdox ${TOOL_SOURCES})
-target_compile_definitions(mrdox PRIVATE -DMRDOX_TOOL)
+add_executable(mrdocs ${TOOL_SOURCES})
+target_compile_definitions(mrdocs PRIVATE -DMRDOCS_TOOL)
-target_include_directories(mrdox
+target_include_directories(mrdocs
PUBLIC
"$"
"$"
@@ -245,18 +245,18 @@ target_include_directories(mrdox
"${PROJECT_SOURCE_DIR}/src"
)
-target_compile_definitions(mrdox PRIVATE -DMRDOX_TOOL)
-target_link_libraries(mrdox PUBLIC mrdox-core)
-if (MRDOX_CLANG)
+target_compile_definitions(mrdocs PRIVATE -DMRDOCS_TOOL)
+target_link_libraries(mrdocs PUBLIC mrdocs-core)
+if (MRDOCS_CLANG)
target_compile_options(
- mrdox
+ mrdocs
PRIVATE
-Wno-covered-switch-default
)
endif ()
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
-source_group(TREE ${PROJECT_SOURCE_DIR}/include/mrdox PREFIX "include" FILES ${INCLUDES})
+source_group(TREE ${PROJECT_SOURCE_DIR}/include/mrdocs PREFIX "include" FILES ${INCLUDES})
source_group(TREE ${PROJECT_SOURCE_DIR}/source PREFIX "source" FILES ${SOURCES})
#-------------------------------------------------
@@ -265,35 +265,35 @@ source_group(TREE ${PROJECT_SOURCE_DIR}/source PREFIX "source" FILES ${SOURCES})
#
#-------------------------------------------------
-if (MRDOX_BUILD_TESTS)
+if (MRDOCS_BUILD_TESTS)
#-------------------------------------------------
# Unit tests
#-------------------------------------------------
include(CTest)
file(GLOB_RECURSE TEST_SUITE_FILES CONFIGURE_DEPENDS src/test_suite/*.cpp src/test_suite/*.hpp)
file(GLOB_RECURSE UNIT_TEST_SOURCES CONFIGURE_DEPENDS src/test/*.cpp src/test/*.hpp)
- add_executable(mrdox-test ${TEST_SUITE_FILES} ${UNIT_TEST_SOURCES})
- target_include_directories(mrdox-test
+ add_executable(mrdocs-test ${TEST_SUITE_FILES} ${UNIT_TEST_SOURCES})
+ target_include_directories(mrdocs-test
PRIVATE
"${PROJECT_SOURCE_DIR}/include"
"${PROJECT_SOURCE_DIR}/src"
)
- target_link_libraries(mrdox-test PUBLIC mrdox-core)
- if (MRDOX_CLANG)
- target_compile_options(mrdox-test PRIVATE -Wno-covered-switch-default)
+ target_link_libraries(mrdocs-test PUBLIC mrdocs-core)
+ if (MRDOCS_CLANG)
+ target_compile_options(mrdocs-test PRIVATE -Wno-covered-switch-default)
endif ()
- target_compile_definitions(mrdox-test PRIVATE -DMRDOX_TEST_FILES_DIR="${CMAKE_CURRENT_SOURCE_DIR}/test-files")
+ target_compile_definitions(mrdocs-test PRIVATE -DMRDOCS_TEST_FILES_DIR="${CMAKE_CURRENT_SOURCE_DIR}/test-files")
add_custom_command(
# if we run tests, we need the addons in the right place.
- TARGET mrdox-test
+ TARGET mrdocs-test
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
- ${CMAKE_SOURCE_DIR}/share/mrdox/addons
+ ${CMAKE_SOURCE_DIR}/share/mrdocs/addons
${CMAKE_BINARY_DIR}/addons
BYPRODUCTS ${CMAKE_BINARY_DIR}/addons
- DEPENDS ${CMAKE_SOURCE_DIR}/share/mrdox/addons
+ DEPENDS ${CMAKE_SOURCE_DIR}/share/mrdocs/addons
)
- add_test(NAME mrdox-test COMMAND mrdox-test --action test "${PROJECT_SOURCE_DIR}/test-files/old-tests")
+ add_test(NAME mrdocs-test COMMAND mrdocs-test --action test "${PROJECT_SOURCE_DIR}/test-files/old-tests")
#-------------------------------------------------
# XML lint
@@ -308,15 +308,15 @@ if (MRDOX_BUILD_TESTS)
add_custom_command(
COMMAND ${Java_JAVA_EXECUTABLE} -jar ${CMAKE_CURRENT_SOURCE_DIR}/util/trang.jar
- ${CMAKE_CURRENT_SOURCE_DIR}/mrdox.rnc ${CMAKE_CURRENT_BINARY_DIR}/mrdox.rng
- OUTPUT mrdox.rng
- DEPENDS mrdox.rnc)
- add_custom_target(mrdox_rng ALL DEPENDS mrdox.rng)
+ ${CMAKE_CURRENT_SOURCE_DIR}/mrdocs.rnc ${CMAKE_CURRENT_BINARY_DIR}/mrdocs.rng
+ OUTPUT mrdocs.rng
+ DEPENDS mrdocs.rnc)
+ add_custom_target(mrdocs_rng ALL DEPENDS mrdocs.rng)
file(GLOB_RECURSE XML_SOURCES CONFIGURE_DEPENDS test-files/*.xml)
add_test(NAME xml-lint
COMMAND ${LIBXML2_XMLLINT_EXECUTABLE} --dropdtd --noout
- --relaxng ${CMAKE_CURRENT_BINARY_DIR}/mrdox.rng ${XML_SOURCES}
+ --relaxng ${CMAKE_CURRENT_BINARY_DIR}/mrdocs.rng ${XML_SOURCES}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endif()
endif()
@@ -327,27 +327,27 @@ endif()
#
#-------------------------------------------------
-if (MRDOX_BUILD_DOCS)
+if (MRDOCS_BUILD_DOCS)
#-------------------------------------------------
# Reference
#-------------------------------------------------
- if (MRDOX_GENERATE_REFERENCE)
- include(share/cmake/MrDox.cmake)
- set(MRDOX_REFERENCE_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/docs/reference)
+ if (MRDOCS_GENERATE_REFERENCE)
+ include(share/cmake/MrDocs.cmake)
+ set(MRDOCS_REFERENCE_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/docs/reference)
file(GLOB_RECURSE REFERENCE_SOURCES CONFIGURE_DEPENDS include/*.hpp)
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
- add_mrdox(generate_reference
- CONFIG docs/mrdox.yml
+ add_mrdocs(generate_reference
+ CONFIG docs/mrdocs.yml
FORMAT adoc
- COMMENT "Generate MrDox reference"
- OUTPUT ${MRDOX_REFERENCE_OUTPUT_DIR}
+ COMMENT "Generate MrDocs reference"
+ OUTPUT ${MRDOCS_REFERENCE_OUTPUT_DIR}
${REFERENCE_SOURCES})
- if (MRDOX_GENERATE_ANTORA_REFERENCE)
- set(MRDOX_ANTORA_REFERENCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/docs/modules/ROOT/pages/reference)
+ if (MRDOCS_GENERATE_ANTORA_REFERENCE)
+ set(MRDOCS_ANTORA_REFERENCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/docs/modules/ROOT/pages/reference)
add_custom_target(generate_antora_reference
- COMMAND ${CMAKE_COMMAND} -E copy_directory ${MRDOX_REFERENCE_OUTPUT_DIR} ${MRDOX_ANTORA_REFERENCE_DIR}
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${MRDOCS_REFERENCE_OUTPUT_DIR} ${MRDOCS_ANTORA_REFERENCE_DIR}
DEPENDS generate_reference
- COMMENT "Copy MrDox reference to Antora")
+ COMMENT "Copy MrDocs reference to Antora")
endif()
endif()
@@ -363,7 +363,7 @@ if (MRDOX_BUILD_DOCS)
set(DOCS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/docs)
set(DOCS_BUILD_DIR ${DOCS_SOURCE_DIR}/build/site)
- set(DOCS_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/doc/mrdox/html)
+ set(DOCS_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/doc/mrdocs/html)
# Add custom target for generating documentation
add_custom_target(generate_docs
@@ -373,10 +373,10 @@ if (MRDOX_BUILD_DOCS)
COMMAND ${CMAKE_COMMAND} -E echo "Run Antora"
COMMAND ${NPX_EXECUTABLE} antora local-antora-playbook.yml
WORKING_DIRECTORY ${DOCS_SOURCE_DIR}
- COMMENT "Generating MrDox documentation"
+ COMMENT "Generating MrDocs documentation"
USES_TERMINAL
)
- if (MRDOX_GENERATE_REFERENCE AND MRDOX_GENERATE_ANTORA_REFERENCE)
+ if (MRDOCS_GENERATE_REFERENCE AND MRDOCS_GENERATE_ANTORA_REFERENCE)
add_dependencies(generate_docs generate_antora_reference)
endif()
elseif (NOT NPM_EXECUTABLE AND NPX_EXECUTABLE)
@@ -394,37 +394,37 @@ endif ()
#
#-------------------------------------------------
-if (MRDOX_INSTALL)
+if (MRDOCS_INSTALL)
#-------------------------------------------------
# bin
#-------------------------------------------------
- install(TARGETS mrdox
- EXPORT mrdox-targets
+ install(TARGETS mrdocs
+ EXPORT mrdocs-targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
- set(MRDOX_EXECUTABLE $)
+ set(MRDOCS_EXECUTABLE $)
#-------------------------------------------------
# lib
#-------------------------------------------------
- install(TARGETS mrdox-core duktape
- EXPORT mrdox-targets
+ install(TARGETS mrdocs-core duktape
+ EXPORT mrdocs-targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT development
)
- install(EXPORT mrdox-targets
- FILE mrdox-targets.cmake
- NAMESPACE mrdox::
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/mrdox)
+ install(EXPORT mrdocs-targets
+ FILE mrdocs-targets.cmake
+ NAMESPACE mrdocs::
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/mrdocs)
#-------------------------------------------------
# include
#-------------------------------------------------
- install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/mrdox
+ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/mrdocs
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT development
FILES_MATCHING
@@ -452,7 +452,7 @@ if (MRDOX_INSTALL)
#-------------------------------------------------
# doc
#-------------------------------------------------
- if (MRDOX_BUILD_DOCS AND NPM_EXECUTABLE AND NPX_EXECUTABLE)
+ if (MRDOCS_BUILD_DOCS AND NPM_EXECUTABLE AND NPX_EXECUTABLE)
if (EXISTS ${DOCS_BUILD_DIR})
install(DIRECTORY ${DOCS_BUILD_DIR}
DESTINATION ${CMAKE_INSTALL_DOCDIR}
@@ -464,31 +464,31 @@ if (MRDOX_INSTALL)
#-------------------------------------------------
# lib/cmake
#-------------------------------------------------
- set(CONFIG_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/mrdox)
+ set(CONFIG_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/mrdocs)
- # mrdox-config-version.cmake
+ # mrdocs-config-version.cmake
if (CMAKE_PROJECT_VERSION VERSION_LESS 1.0.0)
set(compatibility_mode SameMajorVersion)
else ()
set(compatibility_mode SameMinorVersion)
endif ()
write_basic_package_version_file(
- mrdox-config-version.cmake
+ mrdocs-config-version.cmake
VERSION ${PACKAGE_VERSION}
COMPATIBILITY ${compatibility_mode})
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mrdox-config-version.cmake
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/mrdox)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mrdocs-config-version.cmake
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/mrdocs)
- # mrdox-config.cmake
+ # mrdocs-config.cmake
set(INCLUDE_INSTALL_DIR include/)
set(LIB_INSTALL_DIR lib/)
configure_package_config_file(
- ${CMAKE_CURRENT_SOURCE_DIR}/mrdox-config.cmake.in # input file
- ${CMAKE_CURRENT_BINARY_DIR}/mrdox-config.cmake # output file
- INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/mrdox
+ ${CMAKE_CURRENT_SOURCE_DIR}/mrdocs-config.cmake.in # input file
+ ${CMAKE_CURRENT_BINARY_DIR}/mrdocs-config.cmake # output file
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/mrdocs
PATH_VARS CMAKE_INSTALL_LIBDIR INCLUDE_INSTALL_DIR LIB_INSTALL_DIR)
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mrdox-config.cmake
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/mrdox)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/mrdocs-config.cmake
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/mrdocs)
endif ()
#-------------------------------------------------
@@ -496,9 +496,9 @@ endif ()
# Packages
#
#-------------------------------------------------
-if (MRDOX_INSTALL AND MRDOX_PACKAGE)
+if (MRDOCS_INSTALL AND MRDOCS_PACKAGE)
# Project description
- set(CPACK_PACKAGE_VENDOR "mrdox")
+ set(CPACK_PACKAGE_VENDOR "mrdocs")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY ${PROJECT_DESCRIPTION})
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
diff --git a/CMakePresets.json b/CMakePresets.json
index 9189282a7..97ca400f0 100644
--- a/CMakePresets.json
+++ b/CMakePresets.json
@@ -19,7 +19,7 @@
"LLVM_ROOT": "$env{LLVM_ROOT}",
"Clang_ROOT": "$env{LLVM_ROOT}",
"DUKTAPE_SOURCE_ROOT": "$env{DUKTAPE_SOURCE_ROOT}",
- "MRDOX_BUILD_TESTS": "ON"
+ "MRDOCS_BUILD_TESTS": "ON"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
@@ -55,7 +55,7 @@
"description": "Release Config without Tests.",
"binaryDir": "${sourceDir}/build/dist",
"cacheVariables": {
- "MRDOX_BUILD_TESTS": "OFF"
+ "MRDOCS_BUILD_TESTS": "OFF"
}
}
]
diff --git a/README.adoc b/README.adoc
index a7d0a3511..035adcd7a 100644
--- a/README.adoc
+++ b/README.adoc
@@ -16,12 +16,12 @@ cmake --build . -j --config Release
cmake --install .
----
-Once LLVM is available in `/path/to/llvm+clang`, you can build and install mrdox with:
+Once LLVM is available in `/path/to/llvm+clang`, you can build and install mrdocs with:
[source,bash]
----
-git clone https://github.com/cppalliance/mrdox
-cd mrdox
+git clone https://github.com/cppalliance/mrdocs
+cd mrdocs
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D LLVM_ROOT=/path/to/llvm+clang -D Clang_ROOT=/path/to/llvm+clang
cd build
cmake --build . -j
@@ -37,11 +37,11 @@ cmake --install .
* old program with lots of technical debt
* not written by me
-=== MrDox:
+=== MrDocs:
* narrow and deep focus on {cpp} only
* uses clang's unstable libtooling API:
-** Understands ALL C++: if clang can compile it, MrDox knows about it
+** Understands ALL C++: if clang can compile it, MrDocs knows about it
** This includes up to {cpp}20 and even experimental things in {cpp}23
* brand-new program with no technical debt
* written by me
diff --git a/SourceFileNames.cpp b/SourceFileNames.cpp
index 2aa80cd87..b86205251 100644
--- a/SourceFileNames.cpp
+++ b/SourceFileNames.cpp
@@ -5,7 +5,7 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
/*
diff --git a/docs/.asciidoctorconfig b/docs/.asciidoctorconfig
index 6b1dd4d44..d7697ee5a 100644
--- a/docs/.asciidoctorconfig
+++ b/docs/.asciidoctorconfig
@@ -1,3 +1,3 @@
:linkcss:
-:stylesdir: https://cppalliance.org/mrdox/_/css
+:stylesdir: https://cppalliance.org/mrdocs/_/css
:stylesheet: site.css
diff --git a/docs/antora-playbook.yml b/docs/antora-playbook.yml
index 6636e20ca..2b4dc450a 100644
--- a/docs/antora-playbook.yml
+++ b/docs/antora-playbook.yml
@@ -1,7 +1,7 @@
# npm install
# npx antora --fetch antora-playbook.yml
site:
- title: MrDox
+ title: MrDocs
url: https://cppalliance.github.io/mrdox/
start_page: mrdox::index.adoc
robots: allow
diff --git a/docs/antora.yml b/docs/antora.yml
index c49a5bd12..d25c2478e 100644
--- a/docs/antora.yml
+++ b/docs/antora.yml
@@ -1,5 +1,5 @@
-name: mrdox
-title: MrDox
+name: mrdocs
+title: MrDocs
version: true
start_page: index.adoc
asciidoc:
diff --git a/docs/local-antora-playbook.yml b/docs/local-antora-playbook.yml
index 9f189b1b1..8d162f025 100644
--- a/docs/local-antora-playbook.yml
+++ b/docs/local-antora-playbook.yml
@@ -1,7 +1,7 @@
# npm install
# npx antora --fetch local-antora-playbook.yml
site:
- title: MrDox
+ title: MrDocs
url: https://cppalliance.github.io/mrdox/
start_page: mrdox::index.adoc
robots: allow
diff --git a/docs/modules/ROOT/images/MrDoxBanner.png b/docs/modules/ROOT/images/MrDocsBanner.png
similarity index 100%
rename from docs/modules/ROOT/images/MrDoxBanner.png
rename to docs/modules/ROOT/images/MrDocsBanner.png
diff --git a/docs/modules/ROOT/pages/commands.adoc b/docs/modules/ROOT/pages/commands.adoc
index 38975bafd..010b4da3d 100644
--- a/docs/modules/ROOT/pages/commands.adoc
+++ b/docs/modules/ROOT/pages/commands.adoc
@@ -1,6 +1,6 @@
= Commands
-These are the Doxygen-style "@" commands recognized by MrDox:
+These are the Doxygen-style "@" commands recognized by MrDocs:
== Italics / Emphasis
[]
diff --git a/docs/modules/ROOT/pages/design-notes.adoc b/docs/modules/ROOT/pages/design-notes.adoc
index d4e6e0f3a..b8f5e7677 100644
--- a/docs/modules/ROOT/pages/design-notes.adoc
+++ b/docs/modules/ROOT/pages/design-notes.adoc
@@ -13,7 +13,7 @@ full interface for user-defined types.
== Bitcode
AST traversal is performed in parallel on a per-translation-unit basis.
-To maximize the size of the code base MrDox is capable of processing, `Info`
+To maximize the size of the code base MrDocs is capable of processing, `Info`
types generated during traversal are serialized to a compressed bitcode representation.
Once AST traversal is complete for all translation units, the bitcode is deserialized
back into `Info` types, and then merged to form the corpus. The merging step is necessar
diff --git a/docs/modules/ROOT/pages/index.adoc b/docs/modules/ROOT/pages/index.adoc
index ae45f07f3..dddbc22df 100644
--- a/docs/modules/ROOT/pages/index.adoc
+++ b/docs/modules/ROOT/pages/index.adoc
@@ -1,22 +1,22 @@
-= MrDox
+= MrDocs
Alan Freitas
-:description: MrDox: A Clang/LLVM tool for building reference documentation from C++ code and javadoc comments.
+:description: MrDocs: A Clang/LLVM tool for building reference documentation from C++ code and javadoc comments.
:sectanchors:
-:url-repo: https://github.com/cppalliance/mrdox
-:page-tags: mrdox
+:url-repo: https://github.com/cppalliance/mrdocs
+:page-tags: mrdocs
:navtitle: Home
-image::MrDoxBanner.png[]
+image::MrDocsBanner.png[]
-Welcome to MrDox, the ultimate solution for generating comprehensive reference documentation from your {cpp} codebase and javadoc comments. MrDox harnesses the power of Clang/LLVM, offering a seamless and efficient way to document your {cpp} projects.
+Welcome to MrDocs, the ultimate solution for generating comprehensive reference documentation from your {cpp} codebase and javadoc comments. MrDocs harnesses the power of Clang/LLVM, offering a seamless and efficient way to document your {cpp} projects.
-With MrDox, you can effortlessly extract valuable insights and produce detailed documentation for your {cpp} code. By leveraging the rich semantic knowledge provided by Clang/LLVM, MrDox accurately captures the nuances of your codebase, including class hierarchies, functions, and their respective parameters and return types. This ensures that your documentation is not only informative but also up-to-date, eliminating the need for manual documentation maintenance.
+With MrDocs, you can effortlessly extract valuable insights and produce detailed documentation for your {cpp} code. By leveraging the rich semantic knowledge provided by Clang/LLVM, MrDocs accurately captures the nuances of your codebase, including class hierarchies, functions, and their respective parameters and return types. This ensures that your documentation is not only informative but also up-to-date, eliminating the need for manual documentation maintenance.
-The integration of javadoc-style comments takes your documentation to the next level. With MrDox, you can easily embed human-readable explanations, usage examples, and additional contextual information directly within your code. These comments serve as a valuable resource for both developers and consumers of your code, promoting clarity and understanding.
+The integration of javadoc-style comments takes your documentation to the next level. With MrDocs, you can easily embed human-readable explanations, usage examples, and additional contextual information directly within your code. These comments serve as a valuable resource for both developers and consumers of your code, promoting clarity and understanding.
-MrDox seamlessly fits into your development workflow, with the freedom to customize the output format to suit your project requirements. MrDox offers versatile options for output formats, including XML and Asciidoc. In addition to the provided output formats, MrDox empowers users to bring their own creativity and customization to the documentation generation process. With support for handlebars templates, you can create and apply your own unique templates to the generated documentation. This allows you to customize the styling, layout, and overall presentation of your documentation, making it truly personalized and aligned with your project's branding.
+MrDocs seamlessly fits into your development workflow, with the freedom to customize the output format to suit your project requirements. MrDocs offers versatile options for output formats, including XML and Asciidoc. In addition to the provided output formats, MrDocs empowers users to bring their own creativity and customization to the documentation generation process. With support for handlebars templates, you can create and apply your own unique templates to the generated documentation. This allows you to customize the styling, layout, and overall presentation of your documentation, making it truly personalized and aligned with your project's branding.
-MrDox empowers you to produce high-quality documentation that benefits both developers and users. Explore the power of MrDox today and experience the ease of building comprehensive reference documentation for your {cpp} projects. Say goodbye to tedious manual documentation and embrace the efficiency and accuracy of MrDox.
+MrDocs empowers you to produce high-quality documentation that benefits both developers and users. Explore the power of MrDocs today and experience the ease of building comprehensive reference documentation for your {cpp} projects. Say goodbye to tedious manual documentation and embrace the efficiency and accuracy of MrDocs.
== Comparison
@@ -27,11 +27,11 @@ MrDox empowers you to produce high-quality documentation that benefits both deve
* old program with lots of technical debt
* not written by me
-=== MrDox:
+=== MrDocs:
* narrow and deep focus on {cpp} only
* uses clang's unstable libtooling API:
-** Understands ALL C++: if clang can compile it, MrDox knows about it
+** Understands ALL C++: if clang can compile it, MrDocs knows about it
** This includes up to {cpp}20 and even experimental things in {cpp}23
* brand-new program with no technical debt
* written by me
diff --git a/docs/modules/ROOT/pages/install.adoc b/docs/modules/ROOT/pages/install.adoc
index b1618c95c..16683a48a 100644
--- a/docs/modules/ROOT/pages/install.adoc
+++ b/docs/modules/ROOT/pages/install.adoc
@@ -2,17 +2,17 @@
== Binaries
-Binary packages are available from our https://github.com/cppalliance/mrdox/releases[Release Page,window="_blank"]
+Binary packages are available from our https://github.com/cppalliance/mrdocs/releases[Release Page,window="_blank"]
== Source
-=== Cloning MrDox
+=== Cloning MrDocs
-Clone the MrDox repository with:
+Clone the MrDocs repository with:
[source,bash]
----
-git clone https://github.com/cppalliance/mrdox
+git clone https://github.com/cppalliance/mrdocs
----
=== Requirements
@@ -28,14 +28,14 @@ cd third-party
[NOTE]
====
These instructions assume all dependencies are installed in the `third-party` directory for simplicity.
-Fell free to install them anywhere you want and adjust the main MrDox configuration command later.
+Fell free to install them anywhere you want and adjust the main MrDocs configuration command later.
====
=== LLVM
-MrDox depends on a specific recent version of LLVM: https://github.com/llvm/llvm-project/tree/731264b0c2af7aa46bd39625202a99e06cfccff9[731264b0]
+MrDocs depends on a specific recent version of LLVM: https://github.com/llvm/llvm-project/tree/731264b0c2af7aa46bd39625202a99e06cfccff9[731264b0]
-Because building LLVM may take many hours to complete, we provide pre-built binaries for Windows and Linux: https://mrdox.com/llvm+clang/[LLVM Releases].
+Because building LLVM may take many hours to complete, we provide pre-built binaries for Windows and Linux: https://mrdocs.com/llvm+clang/[LLVM Releases].
You can download the binaries and uncompress them in the `./third-party/llvm+clang` directory.
Alternatively, if building LLVM from source, you can clone the project from the official repository:
@@ -47,7 +47,7 @@ cd llvm-project
git checkout 731264b0c2af7aa46bd39625202a99e06cfccff9
----
-Configure LLVM with the settings required by MrDox:
+Configure LLVM with the settings required by MrDocs:
Windows (from administrator `cmd.exe`, after running `vcvars64.bat`):
@@ -63,7 +63,7 @@ Unix variants:
cmake -S llvm -B build -D LLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -D CMAKE_BUILD_TYPE=RelWithDebInfo -D LLVM_ENABLE_RTTI=ON -D CMAKE_INSTALL_PREFIX=../llvm+clang/RelWithDebInfo
----
-As you can see from the step above, we configure a `RelWithDebInfo` version of LLVM for MrDox by default.
+As you can see from the step above, we configure a `RelWithDebInfo` version of LLVM for MrDocs by default.
This is a release build with debug information.
Other possible CMake configurations supported by LLVM are `Debug` (including debug information and no optimizations), `Release` (including optimizations and no debug information), and `MinSizeRel` (which optimizes for size).
@@ -75,7 +75,7 @@ To create such an installation, set `CMAKE_CONFIGURATION_TYPES` or `CMAKE_BUILD_
This should give you an optimized build with all debug features and flags, such as an appropriate https://learn.microsoft.com/en-us/cpp/standard-library/iterator-debug-level[`_ITERATOR_DEBUG_LEVEL`] and the `/MDd` flag in MSVC.
In other platforms, this should give you a release somewhat equivalent to `RelWithDebInfo` optimized for debugging experience. `-Og` offers a reasonable level of optimization while maintaining fast compilation and a good debugging experience.
-This custom configuration can be installed in an alternative directory, such as `../llvm+clang/DebWithOpt`, to be used by the MrDox `Debug` builds by developers.
+This custom configuration can be installed in an alternative directory, such as `../llvm+clang/DebWithOpt`, to be used by the MrDocs `Debug` builds by developers.
====
Then build and install it:
@@ -96,7 +96,7 @@ cd ../..
==== Duktape
-Duktape is a JavaScript engine that is used by MrDox to parse and evaluate JavaScript code.
+Duktape is a JavaScript engine that is used by MrDocs to parse and evaluate JavaScript code.
The release files can be obtained from the Duktape repository:
@@ -107,7 +107,7 @@ tar -xvf "duktape-2.7.0.tar.xz"
----
Duktape provides no CMake integration scripts.
-The MrDox configuration script needs direct access to the installed source files for Duktape so that's all you need to do.
+The MrDocs configuration script needs direct access to the installed source files for Duktape so that's all you need to do.
==== VcPkg dependencies
@@ -147,39 +147,39 @@ Unix variants:
./vcpkg fmt zlib libxml2[tools]
----
-Return from `./third-party/vcpkg` to the parent directory of `third-party` (the one containing the `mrdox` directory) to build and install MrDox:
+Return from `./third-party/vcpkg` to the parent directory of `third-party` (the one containing the `mrdocs` directory) to build and install MrDocs:
[source,bash]
----
cd ../..
----
-=== MrDox
+=== MrDocs
-Once the dependencies are available in `third-party`, you can configure MrDox with:
+Once the dependencies are available in `third-party`, you can configure MrDocs with:
Windows:
[source,commandline]
----
-cmake -S mrdox -B build -G "Visual Studio 17 2022" -A x64 -D CMAKE_CONFIGURATION_TYPES="RelWithDebInfo" -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -D LLVM_ROOT="%cd%/third-party/llvm+clang/RelWithDebInfo" -D DUKTAPE_SOURCE_ROOT="%cd%/third-party/duktape-2.7.0" -D CMAKE_TOOLCHAIN_FILE="%cd%/third-party/vcpkg/scripts/buildsystems/vcpkg.cmake"
+cmake -S mrdocs -B build -G "Visual Studio 17 2022" -A x64 -D CMAKE_CONFIGURATION_TYPES="RelWithDebInfo" -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -D LLVM_ROOT="%cd%/third-party/llvm+clang/RelWithDebInfo" -D DUKTAPE_SOURCE_ROOT="%cd%/third-party/duktape-2.7.0" -D CMAKE_TOOLCHAIN_FILE="%cd%/third-party/vcpkg/scripts/buildsystems/vcpkg.cmake"
----
Unix variants:
[source,bash]
----
-cmake -S mrdox -B build -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -D LLVM_ROOT="$(pwd)/third-party/llvm+clang/RelWithDebInfo" -D DUKTAPE_SOURCE_ROOT="$(pwd)/third-party/duktape-2.7.0" -D CMAKE_TOOLCHAIN_FILE="$(pwd)/third-party/vcpkg/scripts/buildsystems/vcpkg.cmake"
+cmake -S mrdocs -B build -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -D LLVM_ROOT="$(pwd)/third-party/llvm+clang/RelWithDebInfo" -D DUKTAPE_SOURCE_ROOT="$(pwd)/third-party/duktape-2.7.0" -D CMAKE_TOOLCHAIN_FILE="$(pwd)/third-party/vcpkg/scripts/buildsystems/vcpkg.cmake"
----
[TIP]
====
-The MrDox repository also includes a `CMakePresets.json` file that contains the parameters to configure MrDox with CMake.
+The MrDocs repository also includes a `CMakePresets.json` file that contains the parameters to configure MrDocs with CMake.
To specify the installation directories, you can use the `LLVM_ROOT`, `DUKTAPE_SOURCE_ROOT`, `CMAKE_TOOLCHAIN_FILE` environment variables.
To specify a generator (`-G`) and platform name (`-A`), you can use the `CMAKE_GENERATOR` and `CMAKE_GENERATOR_PLATFORM` environment variables.
-Alternatively, you can create a `CMakeUserPresets.json` file in the `mrdox` directory with the specific values you want to override in each configuration.
+Alternatively, you can create a `CMakeUserPresets.json` file in the `mrdocs` directory with the specific values you want to override in each configuration.
This is typically more convenient than using environment variables when working on an IDE.
The repository includes a `CMakeUserPresets.json.example` file that can be used as a template.
====
@@ -204,12 +204,12 @@ If any custom build of LLVM is being used (such as `DebWithOpt`), the `LLVM_ROOT
== Package layout
-The MrDox installation directory follows the "Filesystem Hierarchy Standard" (FHS) layout:
+The MrDocs installation directory follows the "Filesystem Hierarchy Standard" (FHS) layout:
-* `bin`: the MrDox executable intended to be used by users or invoked from the command line.
-* `share`: resource files installed by MrDox
-* `doc`: the MrDox documentation
-* `include`: the MrDox headers
-* `lib`: the MrDox library
+* `bin`: the MrDocs executable intended to be used by users or invoked from the command line.
+* `share`: resource files installed by MrDocs
+* `doc`: the MrDocs documentation
+* `include`: the MrDocs headers
+* `lib`: the MrDocs library
The FHS layout provides a directory structure that also serves as a widely accepted convention for organizing files and directories in Unix-like systems, but that can be used in any operating system.
diff --git a/docs/modules/ROOT/pages/usage.adoc b/docs/modules/ROOT/pages/usage.adoc
index 4d3905cdf..341efb46e 100644
--- a/docs/modules/ROOT/pages/usage.adoc
+++ b/docs/modules/ROOT/pages/usage.adoc
@@ -1,18 +1,18 @@
= Usage
-== MrDox invocation
+== MrDocs invocation
For consistency, these instructions assume you have the following environment variables set:
[source,bash]
----
-MRDOX_ROOT=/path/to/mrdox
+MRDOCS_ROOT=/path/to/mrdocs
PROJECT_SOURCE_DIR=/path/to/your/project/source
-MRDOX_CONFIG=$PROJECT_SOURCE_DIR/docs/mrdox.yml
+MRDOCS_CONFIG=$PROJECT_SOURCE_DIR/docs/mrdocs.yml
PROJECT_BUILD_DIR=$PROJECT_SOURCE_DIR/build-docs
----
-Where `MRDOX_ROOT` is the path of the mrdox executable, and `MRDOX_CONFIG` is the path to the `mrdox.yml` configuration file.
+Where `MRDOCS_ROOT` is the path of the mrdocs executable, and `MRDOCS_CONFIG` is the path to the `mrdocs.yml` configuration file.
We also assume `PROJECT_SOURCE_DIR` is the path to the root of your project's source code, where its main `CMakeLists.txt` file is located, and `PROJECT_BUILD_DIR` is the path to the directory where you want to generate the documentation.
Feel free to change these variables to suit your needs.
@@ -28,7 +28,7 @@ cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
At this step, you can also add any other flags you want to pass to `cmake`, such as `-DCMAKE_BUILD_TYPE=Release` or `-DCMAKE_CXX_COMPILER=clang++`.
By running CMake with the `CMAKE_EXPORT_COMPILE_COMMANDS` flag, you will generate a `compile_commands.json` file in your build directory.
-This file contains all the information mrdox needs to generate the documentation.
+This file contains all the information mrdocs needs to generate the documentation.
Now let's generate the reference files.
The following command will generate the documentation with the most common options:
@@ -36,66 +36,66 @@ The following command will generate the documentation with the most common optio
[source,bash]
----
cd $PROJECT_BUILD_DIR
-MRDOX_OUTPUT=$PROJECT_BUILD_DIR/docs/reference/adoc
-$MRDOX_ROOT/mrdox $PROJECT_BUILD_DIR/compile_commands.json --format=adoc --config=$MRDOX_CONFIG --addons=$MRDOX_ROOT/addons --output=$MRDOX_OUTPUT
+MRDOCS_OUTPUT=$PROJECT_BUILD_DIR/docs/reference/adoc
+$MRDOCS_ROOT/mrdocs $PROJECT_BUILD_DIR/compile_commands.json --format=adoc --config=$MRDOCS_CONFIG --addons=$MRDOCS_ROOT/addons --output=$MRDOCS_OUTPUT
----
Here's a description of these options:
* `--format=adoc`: the output format.
It can be any of the generators available.
-* `--config=$MRDOX_CONFIG`: the path to the `mrdox.yml` configuration file.
+* `--config=$MRDOCS_CONFIG`: the path to the `mrdocs.yml` configuration file.
This file more advanced information about the project.
-* `--addons=$MRDOX_ROOT/addons`: the path to the `addons` directory.
+* `--addons=$MRDOCS_ROOT/addons`: the path to the `addons` directory.
This directory contains the addons that are used to generate the documentation.
Among other things, it contains the default templates for the generator.
This option defaults to current directory if not provided.
-* `--output=$MRDOX_ROOT/output/adoc`: the path to the output directory.
+* `--output=$MRDOCS_ROOT/output/adoc`: the path to the output directory.
This is where the generated documentation will be placed.
-MrDox ignores non-c++ source files, so nothing more needs to be done to generate the documentation for your project.
+MrDocs ignores non-c++ source files, so nothing more needs to be done to generate the documentation for your project.
== Demos
-A few examples of reference documentation generated with MrDox are available in https://mrdox.com/demos/.
+A few examples of reference documentation generated with MrDocs are available in https://mrdocs.com/demos/.
-== MrDox configuration file
+== MrDocs configuration file
-The `mrdox.yml` configuration file contains information about the project that is not available in the `compile_commands.json` file or from the command line.
-The most important information is the `source-root` options, which determines the root of the source tree relative to the `mrdox.yml` file.
+The `mrdocs.yml` configuration file contains information about the project that is not available in the `compile_commands.json` file or from the command line.
+The most important information is the `source-root` options, which determines the root of the source tree relative to the `mrdocs.yml` file.
-Other options are available, such as the `concurrency` option, which determines the number of threads mrdox will use to generate the documentation.
+Other options are available, such as the `concurrency` option, which determines the number of threads mrdocs will use to generate the documentation.
This option defaults to the number of cores available on the machine.
[source,yaml]
----
concurrency: 1 # number of threads to use
-source-root: ../ # source files relative to the mrdox.yml file
+source-root: ../ # source files relative to the mrdocs.yml file
multipage: false # generate multiple pages
verbose: true # print verbose output
----
-== MrDox CMake Module
+== MrDocs CMake Module
-MrDox also provides a CMake module that can be used to generate the documentation from your project's script.
+MrDocs also provides a CMake module that can be used to generate the documentation from your project's script.
You can include the CMake module with:
[source,cmake]
----
-find_package(MrDox REQUIRED)
+find_package(MrDocs REQUIRED)
# ...
-include(MrDox)
+include(MrDocs)
----
-The module will define the `add_mrdox` function, which can be used define a CMake target that generates the documentation for your project.
+The module will define the `add_mrdocs` function, which can be used define a CMake target that generates the documentation for your project.
The syntax is similar to other cmake functions, such as `add_executable` or `add_library`:
[source,cmake]
----
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
-add_mrdox(
+add_mrdocs(
[EXCLUDE_FROM_ALL]
- [CONFIG ]
+ [CONFIG ]
[FORMAT ]
[ADDONS ]
[COMMENT comment]
@@ -109,13 +109,13 @@ The `` corresponds to the logical target name and must be globally unique
* If `EXCLUDE_FROM_ALL` is given the corresponding property will be set on the created target.
See documentation of the https://cmake.org/cmake/help/latest/prop_tgt/EXCLUDE_FROM_ALL.html[`EXCLUDE_FROM_ALL`] target property for details.
-* The `CONFIG` option specifies the path to the `mrdox.yml` configuration file.
+* The `CONFIG` option specifies the path to the `mrdocs.yml` configuration file.
If not specified, the function will look for the configuration file in your project directory.
-* The `FORMAT` option specifies the generator used by MrDox.
+* The `FORMAT` option specifies the generator used by MrDocs.
If this option is not specified, the function will use the default generator, which is `adoc`.
-* The `ADDONS` option specifies a custom path to the `addons` directory. By default, the function will use the `addons` directory in the MrDox installation directory.
+* The `ADDONS` option specifies a custom path to the `addons` directory. By default, the function will use the `addons` directory in the MrDocs installation directory.
* The `OUTPUT` option specifies the path to the output directory.
If not specified, the function will use the default output directory, which is relative to the current binary directory.
diff --git a/docs/mrdox.yml b/docs/mrdocs.yml
similarity index 100%
rename from docs/mrdox.yml
rename to docs/mrdocs.yml
diff --git a/include/mrdox/ADT/BitField.hpp b/include/mrdocs/ADT/BitField.hpp
similarity index 93%
rename from include/mrdox/ADT/BitField.hpp
rename to include/mrdocs/ADT/BitField.hpp
index b66180feb..7e27d6e30 100644
--- a/include/mrdox/ADT/BitField.hpp
+++ b/include/mrdocs/ADT/BitField.hpp
@@ -6,18 +6,18 @@
//
// Copyright (c) 2023 Klemens D. Morgenstern
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_ADT_BITFIELD_HPP
-#define MRDOX_API_ADT_BITFIELD_HPP
+#ifndef MRDOCS_API_ADT_BITFIELD_HPP
+#define MRDOCS_API_ADT_BITFIELD_HPP
#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
constexpr std::uint32_t makeMask(
unsigned char Offset, unsigned char Size)
@@ -82,7 +82,7 @@ using BitFlag = BitField;
using BitFieldFullValue = BitField<0, 32>;
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/ADT/Optional.hpp b/include/mrdocs/ADT/Optional.hpp
similarity index 93%
rename from include/mrdox/ADT/Optional.hpp
rename to include/mrdocs/ADT/Optional.hpp
index 3490112d0..745bf0b67 100644
--- a/include/mrdox/ADT/Optional.hpp
+++ b/include/mrdocs/ADT/Optional.hpp
@@ -6,19 +6,19 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_ADT_OPTIONAL_HPP
-#define MRDOX_API_ADT_OPTIONAL_HPP
+#ifndef MRDOCS_API_ADT_OPTIONAL_HPP
+#define MRDOCS_API_ADT_OPTIONAL_HPP
-#include
+#include
#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
/** The default empty predicate.
@@ -132,7 +132,7 @@ class Optional
}
};
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Config.hpp b/include/mrdocs/Config.hpp
similarity index 90%
rename from include/mrdox/Config.hpp
rename to include/mrdocs/Config.hpp
index d17905d42..e768d50af 100644
--- a/include/mrdox/Config.hpp
+++ b/include/mrdocs/Config.hpp
@@ -6,14 +6,14 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_CONFIG_HPP
-#define MRDOX_API_CONFIG_HPP
+#ifndef MRDOCS_API_CONFIG_HPP
+#define MRDOCS_API_CONFIG_HPP
-#include
-#include
+#include
+#include
#include
#include
#include
@@ -23,7 +23,7 @@
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
class ThreadPool;
@@ -35,7 +35,7 @@ class ThreadPool;
particular directory from which absolute paths
are calculated from relative paths.
*/
-class MRDOX_DECL
+class MRDOCS_DECL
Config
{
protected:
@@ -94,13 +94,13 @@ class MRDOX_DECL
/** Destructor.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
~Config() noexcept = 0;
/** Return a pool of threads for executing work.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
ThreadPool&
threadPool() const noexcept = 0;
@@ -114,7 +114,7 @@ class MRDOX_DECL
virtual Settings const& settings() const noexcept = 0;
};
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Corpus.hpp b/include/mrdocs/Corpus.hpp
similarity index 90%
rename from include/mrdox/Corpus.hpp
rename to include/mrdocs/Corpus.hpp
index 0247ae91e..a77e0ceec 100644
--- a/include/mrdox/Corpus.hpp
+++ b/include/mrdocs/Corpus.hpp
@@ -6,15 +6,15 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_CORPUS_HPP
-#define MRDOX_API_CORPUS_HPP
+#ifndef MRDOCS_API_CORPUS_HPP
+#define MRDOCS_API_CORPUS_HPP
-#include
-#include
-#include
+#include
+#include
+#include
#include
#include
#include
@@ -22,11 +22,11 @@
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
/** The collection of declarations in extracted form.
*/
-class MRDOX_VISIBLE
+class MRDOCS_VISIBLE
Corpus
{
protected:
@@ -42,7 +42,7 @@ class MRDOX_VISIBLE
public:
/** Destructor.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
~Corpus() noexcept;
@@ -54,27 +54,27 @@ class MRDOX_VISIBLE
/** Return the begin iterator for the index of all symbols.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
iterator
begin() const noexcept = 0;
/** Return the end iterator for the index.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
iterator
end() const noexcept = 0;
/** Return the metadata for the global namespace.
*/
- MRDOX_DECL
+ MRDOCS_DECL
NamespaceInfo const&
globalNamespace() const noexcept;
/** Return the Info with the matching ID, or nullptr.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
Info const*
find(SymbolID const& id) const noexcept = 0;
@@ -117,7 +117,7 @@ class MRDOX_VISIBLE
//--------------------------------------------
// KRYSTIAN NOTE: temporary
- MRDOX_DECL
+ MRDOCS_DECL
std::string&
getFullyQualifiedName(
const Info& I,
@@ -133,7 +133,7 @@ get(
SymbolID const& id) const noexcept
{
auto I = find(id);
- MRDOX_ASSERT(I != nullptr);
+ MRDOCS_ASSERT(I != nullptr);
if constexpr(std::is_same_v)
{
return *I;
@@ -141,7 +141,7 @@ get(
else
{
auto const& J = *static_cast(I);
- MRDOX_ASSERT(J.Kind == T::kind_id);
+ MRDOCS_ASSERT(J.Kind == T::kind_id);
return J;
}
}
@@ -220,14 +220,14 @@ class Corpus::iterator
iterator& operator++() noexcept
{
- MRDOX_ASSERT(val_);
+ MRDOCS_ASSERT(val_);
val_ = next_(corpus_, val_);
return *this;
}
iterator operator++(int) noexcept
{
- MRDOX_ASSERT(val_);
+ MRDOCS_ASSERT(val_);
auto temp = *this;
val_ = next_(corpus_, val_);
return temp;
@@ -235,13 +235,13 @@ class Corpus::iterator
const_pointer operator->() const noexcept
{
- MRDOX_ASSERT(val_);
+ MRDOCS_ASSERT(val_);
return val_;
}
const_reference operator*() const noexcept
{
- MRDOX_ASSERT(val_);
+ MRDOCS_ASSERT(val_);
return *val_;
}
@@ -256,7 +256,7 @@ class Corpus::iterator
}
};
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Dom.hpp b/include/mrdocs/Dom.hpp
similarity index 64%
rename from include/mrdox/Dom.hpp
rename to include/mrdocs/Dom.hpp
index 70dea4b9d..87b0309ad 100644
--- a/include/mrdox/Dom.hpp
+++ b/include/mrdocs/Dom.hpp
@@ -5,12 +5,12 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_HPP
-#define MRDOX_API_DOM_HPP
+#ifndef MRDOCS_API_DOM_HPP
+#define MRDOCS_API_DOM_HPP
-#include
+#include
#endif
diff --git a/include/mrdox/Dom/Array.hpp b/include/mrdocs/Dom/Array.hpp
similarity index 96%
rename from include/mrdox/Dom/Array.hpp
rename to include/mrdocs/Dom/Array.hpp
index 75b9d2786..4b3ab1934 100644
--- a/include/mrdox/Dom/Array.hpp
+++ b/include/mrdocs/Dom/Array.hpp
@@ -5,20 +5,20 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_ARRAY_HPP
-#define MRDOX_API_DOM_ARRAY_HPP
+#ifndef MRDOCS_API_DOM_ARRAY_HPP
+#define MRDOCS_API_DOM_ARRAY_HPP
-#include
+#include
#include
#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
namespace dom {
class ArrayImpl;
@@ -34,7 +34,7 @@ class Value;
these ordered sequences of values.
*/
-class MRDOX_DECL
+class MRDOCS_DECL
Array final
{
std::shared_ptr impl_;
@@ -125,7 +125,7 @@ class MRDOX_DECL
Array(impl_type impl) noexcept
: impl_(std::move(impl))
{
- MRDOX_ASSERT(impl_);
+ MRDOCS_ASSERT(impl_);
}
/** Constructor.
@@ -299,7 +299,7 @@ class MRDOX_DECL
This interface is used by Array types.
*/
-class MRDOX_DECL
+class MRDOCS_DECL
ArrayImpl
{
public:
@@ -348,7 +348,7 @@ class MRDOX_DECL
This implementation is backed by a simple
vector and allows appending.
*/
-class MRDOX_DECL
+class MRDOCS_DECL
DefaultArrayImpl : public ArrayImpl
{
public:
@@ -386,10 +386,10 @@ newArray(Args&&... args)
}
} // dom
-} // mrdox
+} // mrdocs
} // clang
// This is here because of circular references
-#include
+#include
#endif
diff --git a/include/mrdox/Dom/Array.ipp b/include/mrdocs/Dom/Array.ipp
similarity index 92%
rename from include/mrdox/Dom/Array.ipp
rename to include/mrdocs/Dom/Array.ipp
index bbfb72332..d36da06dd 100644
--- a/include/mrdox/Dom/Array.ipp
+++ b/include/mrdocs/Dom/Array.ipp
@@ -5,14 +5,14 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_ARRAY_IPP
-#define MRDOX_API_DOM_ARRAY_IPP
+#ifndef MRDOCS_API_DOM_ARRAY_IPP
+#define MRDOCS_API_DOM_ARRAY_IPP
namespace clang {
-namespace mrdox {
+namespace mrdocs {
namespace dom {
//------------------------------------------------
@@ -21,7 +21,7 @@ namespace dom {
//
//------------------------------------------------
-class MRDOX_DECL
+class MRDOCS_DECL
Array::iterator
{
ArrayImpl const* obj_ = nullptr;
@@ -91,7 +91,7 @@ public:
auto operator<=>(iterator const& other) const noexcept
{
- MRDOX_ASSERT(obj_ == other.obj_);
+ MRDOCS_ASSERT(obj_ == other.obj_);
return i_ <=> other.i_;
}
@@ -99,13 +99,13 @@ public:
// VFALCO Why does ranges need these? Isn't <=> enough?
bool operator==(iterator const& other) const noexcept
{
- MRDOX_ASSERT(obj_ == other.obj_);
+ MRDOCS_ASSERT(obj_ == other.obj_);
return i_ == other.i_;
}
bool operator!=(iterator const& other) const noexcept
{
- MRDOX_ASSERT(obj_ == other.obj_);
+ MRDOCS_ASSERT(obj_ == other.obj_);
return i_ != other.i_;
}
#endif
@@ -134,7 +134,7 @@ public:
difference_type operator-(iterator other) const noexcept
{
- MRDOX_ASSERT(obj_ == other.obj_);
+ MRDOCS_ASSERT(obj_ == other.obj_);
return static_cast(i_) - static_cast(other.i_);
}
@@ -225,7 +225,7 @@ Array operator+(Array const& lhs, Array const& rhs)
}
} // dom
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Dom/Function.hpp b/include/mrdocs/Dom/Function.hpp
similarity index 95%
rename from include/mrdox/Dom/Function.hpp
rename to include/mrdocs/Dom/Function.hpp
index 7020f02d6..4595fe902 100644
--- a/include/mrdox/Dom/Function.hpp
+++ b/include/mrdocs/Dom/Function.hpp
@@ -5,20 +5,20 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_FUNCTION_HPP
-#define MRDOX_API_DOM_FUNCTION_HPP
+#ifndef MRDOCS_API_DOM_FUNCTION_HPP
+#define MRDOCS_API_DOM_FUNCTION_HPP
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
namespace dom {
class Array;
@@ -139,7 +139,7 @@ class FunctionImpl;
template
class DefaultFunctionImpl;
-class MRDOX_DECL
+class MRDOCS_DECL
Function
{
using impl_type = std::shared_ptr;
@@ -150,7 +150,7 @@ class MRDOX_DECL
std::shared_ptr impl) noexcept
: impl_(std::move(impl))
{
- MRDOX_ASSERT(impl_);
+ MRDOCS_ASSERT(impl_);
}
public:
@@ -266,7 +266,7 @@ class MRDOX_DECL
//
//------------------------------------------------
-class MRDOX_DECL
+class MRDOCS_DECL
FunctionImpl
{
public:
@@ -370,10 +370,10 @@ Function makeVariadicInvocable(F&& f)
}
} // dom
-} // mrdox
+} // mrdocs
} // clang
// This is here because of circular references
-#include
+#include
#endif
diff --git a/include/mrdox/Dom/Function.ipp b/include/mrdocs/Dom/Function.ipp
similarity index 97%
rename from include/mrdox/Dom/Function.ipp
rename to include/mrdocs/Dom/Function.ipp
index 64c8cdf2f..8947811ee 100644
--- a/include/mrdox/Dom/Function.ipp
+++ b/include/mrdocs/Dom/Function.ipp
@@ -5,14 +5,14 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_FUNCTION_IPP
-#define MRDOX_API_DOM_FUNCTION_IPP
+#ifndef MRDOCS_API_DOM_FUNCTION_IPP
+#define MRDOCS_API_DOM_FUNCTION_IPP
namespace clang {
-namespace mrdox {
+namespace mrdocs {
namespace dom {
inline char const* Function::type_key() const noexcept
@@ -256,7 +256,7 @@ call(Array const& args) const ->
}
} // dom
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Dom/Kind.hpp b/include/mrdocs/Dom/Kind.hpp
similarity index 93%
rename from include/mrdox/Dom/Kind.hpp
rename to include/mrdocs/Dom/Kind.hpp
index ec0df56fc..f89b2f08d 100644
--- a/include/mrdox/Dom/Kind.hpp
+++ b/include/mrdocs/Dom/Kind.hpp
@@ -5,17 +5,17 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_KIND_HPP
-#define MRDOX_API_DOM_KIND_HPP
+#ifndef MRDOCS_API_DOM_KIND_HPP
+#define MRDOCS_API_DOM_KIND_HPP
-#include
+#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
namespace dom {
/** The type of data in a Value.
@@ -101,7 +101,7 @@ toString(Kind const& value)
}
} // dom
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Dom/Object.hpp b/include/mrdocs/Dom/Object.hpp
similarity index 96%
rename from include/mrdox/Dom/Object.hpp
rename to include/mrdocs/Dom/Object.hpp
index 12c237429..00d86b07a 100644
--- a/include/mrdox/Dom/Object.hpp
+++ b/include/mrdocs/Dom/Object.hpp
@@ -5,20 +5,20 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_OBJECT_HPP
-#define MRDOX_API_DOM_OBJECT_HPP
+#ifndef MRDOCS_API_DOM_OBJECT_HPP
+#define MRDOCS_API_DOM_OBJECT_HPP
-#include
-#include
+#include
+#include
#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
namespace dom {
class ObjectImpl;
@@ -67,7 +67,7 @@ class Value;
functions.
@endparblock
*/
-class MRDOX_DECL
+class MRDOCS_DECL
Object final
{
std::shared_ptr impl_;
@@ -158,7 +158,7 @@ class MRDOX_DECL
impl_type impl) noexcept
: impl_(std::move(impl))
{
- MRDOX_ASSERT(impl_);
+ MRDOCS_ASSERT(impl_);
}
/** Constructor.
@@ -330,7 +330,7 @@ class MRDOX_DECL
This interface is used by Object types.
*/
-class MRDOX_DECL
+class MRDOCS_DECL
ObjectImpl
{
public:
@@ -396,7 +396,7 @@ newObject(Args&&... args)
/** The default Object implementation.
*/
-class MRDOX_DECL
+class MRDOCS_DECL
DefaultObjectImpl : public ObjectImpl
{
public:
@@ -429,7 +429,7 @@ class MRDOX_DECL
initialized when the first property is
set or accessed.
*/
-class MRDOX_DECL
+class MRDOCS_DECL
LazyObjectImpl : public ObjectImpl
{
std::atomic> mutable sp_;
@@ -455,10 +455,10 @@ class MRDOX_DECL
};
} // dom
-} // mrdox
+} // mrdocs
} // clang
// This is here because of circular references
-#include
+#include
#endif
diff --git a/include/mrdox/Dom/Object.ipp b/include/mrdocs/Dom/Object.ipp
similarity index 92%
rename from include/mrdox/Dom/Object.ipp
rename to include/mrdocs/Dom/Object.ipp
index 94c7bee83..4d131553f 100644
--- a/include/mrdox/Dom/Object.ipp
+++ b/include/mrdocs/Dom/Object.ipp
@@ -5,14 +5,14 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_OBJECT_IPP
-#define MRDOX_API_DOM_OBJECT_IPP
+#ifndef MRDOCS_API_DOM_OBJECT_IPP
+#define MRDOCS_API_DOM_OBJECT_IPP
namespace clang {
-namespace mrdox {
+namespace mrdocs {
namespace dom {
//------------------------------------------------
@@ -143,17 +143,17 @@ Object::visit(F&& fn) const
}
} // dom
-} // mrdox
+} // mrdocs
} // clang
//------------------------------------------------
template<>
-struct fmt::formatter
+struct fmt::formatter
: fmt::formatter
{
auto format(
- clang::mrdox::dom::Object const& value,
+ clang::mrdocs::dom::Object const& value,
fmt::format_context& ctx) const
{
return fmt::formatter::format(
diff --git a/include/mrdox/Dom/String.hpp b/include/mrdocs/Dom/String.hpp
similarity index 95%
rename from include/mrdox/Dom/String.hpp
rename to include/mrdocs/Dom/String.hpp
index e75dd994d..8a06a5fb9 100644
--- a/include/mrdox/Dom/String.hpp
+++ b/include/mrdocs/Dom/String.hpp
@@ -5,18 +5,18 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_STRING_HPP
-#define MRDOX_API_DOM_STRING_HPP
+#ifndef MRDOCS_API_DOM_STRING_HPP
+#define MRDOCS_API_DOM_STRING_HPP
-#include
-#include
+#include
+#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
namespace dom {
class String;
@@ -28,7 +28,7 @@ concept StringLikeTy =
! std::is_same_v &&
std::convertible_to;
-class MRDOX_DECL
+class MRDOCS_DECL
String final
{
const char* ptr_ = nullptr;
@@ -36,7 +36,7 @@ class MRDOX_DECL
bool
is_literal() const noexcept
{
- MRDOX_ASSERT(! empty());
+ MRDOCS_ASSERT(! empty());
// for string literals, data_ stores a pointer
// to the first character of the string.
// for ref-counted strings, data_ stores a pointer
@@ -336,17 +336,17 @@ class MRDOX_DECL
};
} // dom
-} // mrdox
+} // mrdocs
} // clang
//------------------------------------------------
template<>
-struct fmt::formatter
+struct fmt::formatter
: fmt::formatter
{
auto format(
- clang::mrdox::dom::String const& value,
+ clang::mrdocs::dom::String const& value,
fmt::format_context& ctx) const
{
return fmt::formatter::format(
diff --git a/include/mrdox/Dom/Value.hpp b/include/mrdocs/Dom/Value.hpp
similarity index 93%
rename from include/mrdox/Dom/Value.hpp
rename to include/mrdocs/Dom/Value.hpp
index a4a79db2f..bf4bff4b7 100644
--- a/include/mrdox/Dom/Value.hpp
+++ b/include/mrdocs/Dom/Value.hpp
@@ -5,27 +5,27 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_VALUE_HPP
-#define MRDOX_API_DOM_VALUE_HPP
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
+#ifndef MRDOCS_API_DOM_VALUE_HPP
+#define MRDOCS_API_DOM_VALUE_HPP
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
#include // BAD
#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
/** Create a wrapper for a safe string.
@@ -56,7 +56,7 @@ namespace dom {
/** A variant container for any kind of Dom value.
*/
-class MRDOX_DECL
+class MRDOCS_DECL
Value
{
Kind kind_{Kind::Undefined};
@@ -73,7 +73,7 @@ class MRDOX_DECL
friend class Array;
friend class Object;
- friend Value clang::mrdox::safeString(std::string_view str);
+ friend Value clang::mrdocs::safeString(std::string_view str);
public:
~Value();
@@ -245,7 +245,7 @@ class MRDOX_DECL
*/
bool getBool() const noexcept
{
- MRDOX_ASSERT(isBoolean());
+ MRDOCS_ASSERT(isBoolean());
return b_ != 0;
}
@@ -256,7 +256,7 @@ class MRDOX_DECL
std::int64_t
getInteger() const noexcept
{
- MRDOX_ASSERT(isInteger());
+ MRDOCS_ASSERT(isInteger());
return i_;
}
@@ -267,7 +267,7 @@ class MRDOX_DECL
String const&
getString() const noexcept
{
- MRDOX_ASSERT(isString() || isSafeString());
+ MRDOCS_ASSERT(isString() || isSafeString());
return str_;
}
@@ -542,7 +542,7 @@ namespace JSON
@param value The value to stringify.
*/
-MRDOX_DECL
+MRDOCS_DECL
std::string
stringify(dom::Value const& value);
}
@@ -571,22 +571,22 @@ safeString(SV const& str) {
return safeString(std::string_view(str));
}
-} // mrdox
+} // mrdocs
} // clang
// These are here because of circular references
-#include
-#include
-#include
+#include
+#include
+#include
//------------------------------------------------
template<>
-struct fmt::formatter
+struct fmt::formatter
: public fmt::formatter
{
auto format(
- clang::mrdox::dom::Value const& value,
+ clang::mrdocs::dom::Value const& value,
fmt::format_context& ctx) const
{
return fmt::formatter::format(
diff --git a/include/mrdox/Generator.hpp b/include/mrdocs/Generator.hpp
similarity index 89%
rename from include/mrdox/Generator.hpp
rename to include/mrdocs/Generator.hpp
index cb8b2a172..dcc4f7c41 100644
--- a/include/mrdox/Generator.hpp
+++ b/include/mrdocs/Generator.hpp
@@ -6,35 +6,35 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
// Generator classes for converting declaration
// information into documentation in a specified format.
-#ifndef MRDOX_API_GENERATOR_HPP
-#define MRDOX_API_GENERATOR_HPP
+#ifndef MRDOCS_API_GENERATOR_HPP
+#define MRDOCS_API_GENERATOR_HPP
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
/** Base class for documentation generators.
*/
-class MRDOX_VISIBLE
+class MRDOCS_VISIBLE
Generator
{
public:
/** Destructor.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
~Generator() noexcept;
@@ -44,14 +44,14 @@ class MRDOX_VISIBLE
the generator in command line options and in
configuration files.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
std::string_view
id() const noexcept = 0;
/** Return the display name of the generator.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
std::string_view
displayName() const noexcept = 0;
@@ -68,7 +68,7 @@ class MRDOX_VISIBLE
The returned string should not include
a leading period.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
std::string_view
fileExtension() const noexcept = 0;
@@ -93,7 +93,7 @@ class MRDOX_VISIBLE
@param config The configuration to use.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
Error
build(
@@ -116,7 +116,7 @@ class MRDOX_VISIBLE
@param corpus The metadata to emit.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
Error
buildOne(
@@ -136,7 +136,7 @@ class MRDOX_VISIBLE
@param corpus The metadata to emit.
*/
- MRDOX_DECL
+ MRDOCS_DECL
Error
buildOne(
std::string_view fileName,
@@ -152,14 +152,14 @@ class MRDOX_VISIBLE
@param corpus The metadata to emit.
*/
- MRDOX_DECL
+ MRDOCS_DECL
Error
buildOneString(
std::string& dest,
Corpus const& corpus) const;
};
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Generators.hpp b/include/mrdocs/Generators.hpp
similarity index 81%
rename from include/mrdox/Generators.hpp
rename to include/mrdocs/Generators.hpp
index b44f87bff..55441e80f 100644
--- a/include/mrdox/Generators.hpp
+++ b/include/mrdocs/Generators.hpp
@@ -5,23 +5,23 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_GENERATORS_HPP
-#define MRDOX_API_GENERATORS_HPP
+#ifndef MRDOCS_API_GENERATORS_HPP
+#define MRDOCS_API_GENERATORS_HPP
-#include
-#include
+#include
+#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
/** A dynamic list of Generator
*/
-class MRDOX_VISIBLE
+class MRDOCS_VISIBLE
Generators
{
protected:
@@ -38,20 +38,20 @@ class MRDOX_VISIBLE
/** Destructor.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
~Generators() noexcept;
/** Return an iterator to the beginning.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
iterator
begin() const noexcept = 0;
/** Return an iterator to the end.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
iterator
end() const noexcept = 0;
@@ -63,7 +63,7 @@ class MRDOX_VISIBLE
@param name The name of the generator. The
name must be an exact match, including case.
*/
- MRDOX_DECL
+ MRDOCS_DECL
virtual
Generator const*
find(
@@ -72,11 +72,11 @@ class MRDOX_VISIBLE
/** Return a reference to the global Generators instance.
*/
-MRDOX_DECL
+MRDOCS_DECL
Generators const&
getGenerators() noexcept;
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdocs/Metadata.hpp b/include/mrdocs/Metadata.hpp
new file mode 100644
index 000000000..3a07e800a
--- /dev/null
+++ b/include/mrdocs/Metadata.hpp
@@ -0,0 +1,38 @@
+//
+// This is a derivative work. originally part of the LLVM Project.
+// Licensed under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
+//
+// Official repository: https://github.com/cppalliance/mrdocs
+//
+
+#ifndef MRDOCS_API_METADATA_HPP
+#define MRDOCS_API_METADATA_HPP
+
+#include
+
+// All headers related to
+// metadata extracted from AST
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#endif
diff --git a/include/mrdox/Metadata/DomMetadata.hpp b/include/mrdocs/Metadata/DomMetadata.hpp
similarity index 87%
rename from include/mrdox/Metadata/DomMetadata.hpp
rename to include/mrdocs/Metadata/DomMetadata.hpp
index f05d89752..88f61fb54 100644
--- a/include/mrdox/Metadata/DomMetadata.hpp
+++ b/include/mrdocs/Metadata/DomMetadata.hpp
@@ -5,21 +5,21 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_DOM_DOMMETADATA_HPP
-#define MRDOX_API_DOM_DOMMETADATA_HPP
+#ifndef MRDOCS_API_DOM_DOMMETADATA_HPP
+#define MRDOCS_API_DOM_DOMMETADATA_HPP
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
/** Front-end factory for producing Dom nodes.
@@ -27,7 +27,7 @@ namespace mrdox {
then uses it to create the Dom nodes used for
rendering in template engines.
*/
-class MRDOX_DECL
+class MRDOCS_DECL
DomCorpus
{
class Impl;
@@ -98,7 +98,7 @@ class MRDOX_DECL
Javadoc const& jd) const;
};
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Metadata/Enum.hpp b/include/mrdocs/Metadata/Enum.hpp
similarity index 81%
rename from include/mrdox/Metadata/Enum.hpp
rename to include/mrdocs/Metadata/Enum.hpp
index c9f647a8d..9e00901b3 100644
--- a/include/mrdox/Metadata/Enum.hpp
+++ b/include/mrdocs/Metadata/Enum.hpp
@@ -6,24 +6,24 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_METADATA_ENUM_HPP
-#define MRDOX_API_METADATA_ENUM_HPP
+#ifndef MRDOCS_API_METADATA_ENUM_HPP
+#define MRDOCS_API_METADATA_ENUM_HPP
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
#include
#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
// Information for a single possible value of an enumeration.
struct EnumValueInfo
@@ -76,7 +76,7 @@ struct EnumInfo
}
};
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Metadata/Expression.hpp b/include/mrdocs/Metadata/Expression.hpp
similarity index 81%
rename from include/mrdox/Metadata/Expression.hpp
rename to include/mrdocs/Metadata/Expression.hpp
index a4312aa19..890ab6813 100644
--- a/include/mrdox/Metadata/Expression.hpp
+++ b/include/mrdocs/Metadata/Expression.hpp
@@ -5,19 +5,19 @@
//
// Copyright (c) 2023 Krystian Stasiowski (sdkrystian@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_METADATA_EXPRESSION_HPP
-#define MRDOX_API_METADATA_EXPRESSION_HPP
+#ifndef MRDOCS_API_METADATA_EXPRESSION_HPP
+#define MRDOCS_API_METADATA_EXPRESSION_HPP
-#include
+#include
#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
/** Represents an expression */
struct ExprInfo
@@ -46,6 +46,6 @@ struct ConstantExprInfo
};
} // clang
-} // mrdox
+} // mrdocs
#endif
diff --git a/include/mrdox/Metadata/Field.hpp b/include/mrdocs/Metadata/Field.hpp
similarity index 80%
rename from include/mrdox/Metadata/Field.hpp
rename to include/mrdocs/Metadata/Field.hpp
index 19953cebe..72d99dbff 100644
--- a/include/mrdox/Metadata/Field.hpp
+++ b/include/mrdocs/Metadata/Field.hpp
@@ -7,22 +7,22 @@
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
// Copyright (c) 2023 Krystian Stasiowski (sdkrystian@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_METADATA_FIELD_HPP
-#define MRDOX_API_METADATA_FIELD_HPP
+#ifndef MRDOCS_API_METADATA_FIELD_HPP
+#define MRDOCS_API_METADATA_FIELD_HPP
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
union FieldFlags
{
@@ -72,7 +72,7 @@ struct FieldInfo
}
};
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Metadata/Function.hpp b/include/mrdocs/Metadata/Function.hpp
similarity index 87%
rename from include/mrdox/Metadata/Function.hpp
rename to include/mrdocs/Metadata/Function.hpp
index 022c58eb7..d0741c8cf 100644
--- a/include/mrdox/Metadata/Function.hpp
+++ b/include/mrdocs/Metadata/Function.hpp
@@ -7,32 +7,32 @@
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
// Copyright (c) 2023 Krystian Stasiowski (sdkrystian@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_METADATA_FUNCTION_HPP
-#define MRDOX_API_METADATA_FUNCTION_HPP
+#ifndef MRDOCS_API_METADATA_FUNCTION_HPP
+#define MRDOCS_API_METADATA_FUNCTION_HPP
-#include
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
/** Return the name of an operator as a string.
@param include_keyword Whether the name
should be prefixed with the `operator` keyword.
*/
-MRDOX_DECL
+MRDOCS_DECL
std::string_view
getOperatorName(
OperatorKind kind,
@@ -40,7 +40,7 @@ getOperatorName(
/** Return the short name of an operator as a string.
*/
-MRDOX_DECL
+MRDOCS_DECL
std::string_view
getShortOperatorName(
OperatorKind kind) noexcept;
@@ -50,7 +50,7 @@ getShortOperatorName(
@param include_keyword Whether the name
should be prefixed with `operator_`.
*/
-MRDOX_DECL
+MRDOCS_DECL
std::string_view
getSafeOperatorName(
OperatorKind kind,
@@ -68,7 +68,7 @@ enum class FunctionClass
Deduction,
};
-MRDOX_DECL dom::String toString(FunctionClass kind) noexcept;
+MRDOCS_DECL dom::String toString(FunctionClass kind) noexcept;
/** Bit constants used with function specifiers.
*/
@@ -169,7 +169,7 @@ struct FunctionInfo
//------------------------------------------------
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Metadata/Info.hpp b/include/mrdocs/Metadata/Info.hpp
similarity index 92%
rename from include/mrdox/Metadata/Info.hpp
rename to include/mrdocs/Metadata/Info.hpp
index 64d6e2317..cb1bc1071 100644
--- a/include/mrdox/Metadata/Info.hpp
+++ b/include/mrdocs/Metadata/Info.hpp
@@ -6,18 +6,18 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_METADATA_INFO_HPP
-#define MRDOX_API_METADATA_INFO_HPP
+#ifndef MRDOCS_API_METADATA_INFO_HPP
+#define MRDOCS_API_METADATA_INFO_HPP
-#include
-#include
-#include
-#include
-#include
-#include
+#include
+#include
+#include
+#include
+#include
+#include
#include
#include
#include
@@ -25,7 +25,7 @@
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
struct NamespaceInfo;
struct RecordInfo;
@@ -50,11 +50,11 @@ enum class InfoKind
Specialization
};
-MRDOX_DECL dom::String toString(InfoKind kind) noexcept;
+MRDOCS_DECL dom::String toString(InfoKind kind) noexcept;
/** Common properties of all symbols
*/
-struct MRDOX_VISIBLE
+struct MRDOCS_VISIBLE
Info
{
/** The unique identifier for this symbol.
@@ -120,7 +120,7 @@ struct MRDOX_VISIBLE
// Observers
//
- MRDOX_DECL
+ MRDOCS_DECL
std::string
extractName() const;
@@ -219,11 +219,11 @@ visit(
InfoTy, SpecializationInfo>&>(II),
std::forward(args)...);
default:
- MRDOX_UNREACHABLE();
+ MRDOCS_UNREACHABLE();
}
}
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Metadata/Interface.hpp b/include/mrdocs/Metadata/Interface.hpp
similarity index 87%
rename from include/mrdox/Metadata/Interface.hpp
rename to include/mrdocs/Metadata/Interface.hpp
index 6d1c45858..e8e48941e 100644
--- a/include/mrdox/Metadata/Interface.hpp
+++ b/include/mrdocs/Metadata/Interface.hpp
@@ -6,22 +6,22 @@
//
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_METADATA_INTERFACE_HPP
-#define MRDOX_API_METADATA_INTERFACE_HPP
+#ifndef MRDOCS_API_METADATA_INTERFACE_HPP
+#define MRDOCS_API_METADATA_INTERFACE_HPP
-#include
-#include
-#include
+#include
+#include
+#include
#include
#include
#include
#include
namespace clang {
-namespace mrdox {
+namespace mrdocs {
/** The aggregated interface for a given struct, class, or union.
*/
@@ -55,7 +55,7 @@ class Interface
*/
Tranche Private;
- MRDOX_DECL
+ MRDOCS_DECL
friend
Interface
makeInterface(
@@ -88,13 +88,13 @@ class Interface
@param corpus The complete metadata.
*/
-MRDOX_DECL
+MRDOCS_DECL
Interface
makeInterface(
RecordInfo const& Derived,
Corpus const& corpus);
-} // mrdox
+} // mrdocs
} // clang
#endif
diff --git a/include/mrdox/Metadata/Javadoc.hpp b/include/mrdocs/Metadata/Javadoc.hpp
similarity index 97%
rename from include/mrdox/Metadata/Javadoc.hpp
rename to include/mrdocs/Metadata/Javadoc.hpp
index 5cd94336f..10152d007 100644
--- a/include/mrdox/Metadata/Javadoc.hpp
+++ b/include/mrdocs/Metadata/Javadoc.hpp
@@ -7,15 +7,15 @@
// Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com)
// Copyright (c) 2023 Krystian Stasiowski (sdkrystian@gmail.com)
//
-// Official repository: https://github.com/cppalliance/mrdox
+// Official repository: https://github.com/cppalliance/mrdocs
//
-#ifndef MRDOX_API_METADATA_JAVADOC_HPP
-#define MRDOX_API_METADATA_JAVADOC_HPP
+#ifndef MRDOCS_API_METADATA_JAVADOC_HPP
+#define MRDOCS_API_METADATA_JAVADOC_HPP
-#include