diff --git a/docs/Doxyfile b/docs/Doxyfile index 63e4a323..8a82a9c7 100644 --- a/docs/Doxyfile +++ b/docs/Doxyfile @@ -703,9 +703,7 @@ RECURSIVE = YES # Note that relative paths are relative to the directory from which doxygen is # run. -EXCLUDE = ../include/DSPatchVersion.h \ - ../include/fast_any \ - ../subprojects \ +EXCLUDE = ../include/fast_any \ ../tests \ ../tutorial diff --git a/meson.build b/meson.build index c6555b2c..daa3c3ce 100644 --- a/meson.build +++ b/meson.build @@ -12,7 +12,6 @@ opencppcoverage = find_program('opencppcoverage', required: false) opencppcoverage_args = [ '--sources', meson.project_name(), - '--excluded_sources', 'subprojects', '--excluded_sources', 'tests', '--excluded_sources', 'tutorial' ] @@ -68,13 +67,7 @@ if find_program('cppcheck', required: false).found() '--suppress=missingIncludeSystem', '--suppress=*:' + meson.current_source_dir() + '/include/fast_any/any.h', - '-i', meson.current_source_dir() + '/build', - '-i', meson.current_source_dir() + '/builddir', - '-i', meson.current_source_dir() + '/subprojects', - '-I', meson.current_source_dir() + '/include', - '-I', meson.current_source_dir() + '/tests', - '-I', meson.current_source_dir() + '/tutorial', extra_cppcheck_args, @@ -86,12 +79,8 @@ endif # Configure DSPatch -dspatch_inc = include_directories( - 'include' -) - dspatch_dep = declare_dependency( - include_directories: dspatch_inc, + include_directories: include_directories('include'), dependencies: dependency('threads') ) diff --git a/scripts/clang-format.bat b/scripts/clang-format.bat index 7d3aa890..44d3f064 100644 --- a/scripts/clang-format.bat +++ b/scripts/clang-format.bat @@ -12,7 +12,7 @@ for %%f in ("*.cpp", "*.h") do ( for /D %%d in (*) do ( cd %%d - if not %%d==build if not %%d==builddir if not %%d==subprojects call :processDir + if not %%d==build if not %%d==builddir call :processDir cd .. ) diff --git a/scripts/clang-format.sh b/scripts/clang-format.sh index 12458165..9dbe3873 100644 --- a/scripts/clang-format.sh +++ b/scripts/clang-format.sh @@ -3,4 +3,4 @@ DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" cd "$DIR/.." -find . -iname *.h -o -iname *.cpp | grep -v build | grep -v builddir | grep -v subprojects | xargs clang-format --style=file --verbose -i +find . -iname *.h -o -iname *.cpp | grep -v build | grep -v builddir | xargs clang-format --style=file --verbose -i diff --git a/subprojects/catch/meson.build b/subprojects/catch/meson.build deleted file mode 100644 index 6a5cacbc..00000000 --- a/subprojects/catch/meson.build +++ /dev/null @@ -1,11 +0,0 @@ -project('catch', 'cpp', - default_options: [ - 'cpp_std=c++17', - 'warning_level=0', - 'werror=false' - ] -) - -catch_dep = declare_dependency( - include_directories: include_directories('.') -) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f9698c39..31c93564 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,7 +2,6 @@ project(DSPatchTests) include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../include - ${CMAKE_CURRENT_SOURCE_DIR}/../subprojects/catch ${CMAKE_CURRENT_SOURCE_DIR} ) diff --git a/subprojects/catch/catch.hpp b/tests/catch/catch.hpp similarity index 100% rename from subprojects/catch/catch.hpp rename to tests/catch/catch.hpp diff --git a/tests/main.cpp b/tests/main.cpp index ff65ffb0..1c0e5e85 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -30,7 +30,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include -#include +#include #include "components/Adder.h" #include "components/BranchSyncProbe.h" diff --git a/tests/meson.build b/tests/meson.build index a5e2e254..7bcdabb4 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,8 +1,3 @@ -# Configure catch - -catch = subproject('catch') -catch_dep = catch.get_variable('catch_dep') - # Configure tests dspatch_tests_src = [ @@ -16,7 +11,7 @@ dspatch_tests = executable( format_first, dspatch_tests_src, include_directories: dspatch_tests_inc, - dependencies: [dspatch_dep, catch_dep] + dependencies: dspatch_dep ) # Add code coverage