From b41307572d5920d628cd986e63adfc978e1a46ca Mon Sep 17 00:00:00 2001 From: pantor Date: Wed, 30 Aug 2023 11:30:11 +0200 Subject: [PATCH] rename source files to underscore notation --- CMakeLists.txt | 24 +++++++++---------- doc/web-gui/make_wasm.sh | 7 ++++-- scripts/patch-c++11.sh | 4 ++-- ...rst-step1.cpp => position_first_step1.cpp} | 0 ...rst-step2.cpp => position_first_step2.cpp} | 0 ...nd-step1.cpp => position_second_step1.cpp} | 0 ...nd-step2.cpp => position_second_step2.cpp} | 0 ...ird-step1.cpp => position_third_step1.cpp} | 0 ...ird-step2.cpp => position_third_step2.cpp} | 0 ...nd-step1.cpp => velocity_second_step1.cpp} | 0 ...nd-step2.cpp => velocity_second_step2.cpp} | 0 ...ird-step1.cpp => velocity_third_step1.cpp} | 0 ...ird-step2.cpp => velocity_third_step2.cpp} | 0 ...chmark-target.cpp => benchmark_target.cpp} | 0 test/{test-target.cpp => test_target.cpp} | 0 ...target-known.cpp => test_target_known.cpp} | 0 16 files changed, 19 insertions(+), 16 deletions(-) rename src/ruckig/{position-first-step1.cpp => position_first_step1.cpp} (100%) rename src/ruckig/{position-first-step2.cpp => position_first_step2.cpp} (100%) rename src/ruckig/{position-second-step1.cpp => position_second_step1.cpp} (100%) rename src/ruckig/{position-second-step2.cpp => position_second_step2.cpp} (100%) rename src/ruckig/{position-third-step1.cpp => position_third_step1.cpp} (100%) rename src/ruckig/{position-third-step2.cpp => position_third_step2.cpp} (100%) rename src/ruckig/{velocity-second-step1.cpp => velocity_second_step1.cpp} (100%) rename src/ruckig/{velocity-second-step2.cpp => velocity_second_step2.cpp} (100%) rename src/ruckig/{velocity-third-step1.cpp => velocity_third_step1.cpp} (100%) rename src/ruckig/{velocity-third-step2.cpp => velocity_third_step2.cpp} (100%) rename test/{benchmark-target.cpp => benchmark_target.cpp} (100%) rename test/{test-target.cpp => test_target.cpp} (100%) rename test/{test-target-known.cpp => test_target_known.cpp} (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bfbc66a..c1f8951e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,16 +22,16 @@ endif() add_library(ruckig src/ruckig/brake.cpp - src/ruckig/position-first-step1.cpp - src/ruckig/position-first-step2.cpp - src/ruckig/position-second-step1.cpp - src/ruckig/position-second-step2.cpp - src/ruckig/position-third-step1.cpp - src/ruckig/position-third-step2.cpp - src/ruckig/velocity-second-step1.cpp - src/ruckig/velocity-second-step2.cpp - src/ruckig/velocity-third-step1.cpp - src/ruckig/velocity-third-step2.cpp + src/ruckig/position_first_step1.cpp + src/ruckig/position_first_step2.cpp + src/ruckig/position_second_step1.cpp + src/ruckig/position_second_step2.cpp + src/ruckig/position_third_step1.cpp + src/ruckig/position_third_step2.cpp + src/ruckig/velocity_second_step1.cpp + src/ruckig/velocity_second_step2.cpp + src/ruckig/velocity_third_step1.cpp + src/ruckig/velocity_third_step2.cpp ) add_library(ruckig::ruckig ALIAS ruckig) @@ -146,7 +146,7 @@ install(FILES if(BUILD_TESTS) enable_testing() - add_executable(test-target test/test-target.cpp test/test-target-known.cpp) + add_executable(test-target test/test_target.cpp test/test_target_known.cpp) target_link_libraries(test-target PRIVATE ruckig) target_include_directories(test-target PRIVATE third_party) @@ -161,7 +161,7 @@ endif() if(BUILD_BENCHMARK) - add_executable(benchmark-target test/benchmark-target.cpp) + add_executable(benchmark-target test/benchmark_target.cpp) target_link_libraries(benchmark-target PRIVATE ruckig) endif() diff --git a/doc/web-gui/make_wasm.sh b/doc/web-gui/make_wasm.sh index 6352d1ed..1f2e3ebd 100644 --- a/doc/web-gui/make_wasm.sh +++ b/doc/web-gui/make_wasm.sh @@ -1,6 +1,9 @@ emcc src/ruckig/wasm.cpp src/ruckig/brake.cpp \ - src/ruckig/position-first-step1.cpp src/ruckig/position-first-step2.cpp src/ruckig/position-second-step1.cpp src/ruckig/position-second-step2.cpp src/ruckig/position-third-step1.cpp src/ruckig/position-third-step2.cpp \ - src/ruckig/velocity-second-step1.cpp src/ruckig/velocity-second-step2.cpp src/ruckig/velocity-third-step1.cpp src/ruckig/velocity-third-step2.cpp \ + src/ruckig/position_first_step1.cpp src/ruckig/position_first_step2.cpp \ + src/ruckig/position_second_step1.cpp src/ruckig/position_second_step2.cpp \ + src/ruckig/position_third_step1.cpp src/ruckig/position_third_step2.cpp \ + src/ruckig/velocity_second_step1.cpp src/ruckig/velocity_second_step2.cpp \ + src/ruckig/velocity_third_step1.cpp src/ruckig/velocity_third_step2.cpp \ -Iinclude -Ithird_party \ -std=c++17 -lembind -Os \ -s MODULARIZE -s EXPORT_ES6 -s EXPORT_NAME='RuckigModule' -s ENVIRONMENT='web' -s EXPORTED_RUNTIME_METHODS=ccall,cwrap \ diff --git a/scripts/patch-c++11.sh b/scripts/patch-c++11.sh index 25a6028b..57cb9978 100644 --- a/scripts/patch-c++11.sh +++ b/scripts/patch-c++11.sh @@ -24,7 +24,7 @@ replace include/ruckig/roots.hpp -e 's|if constexpr|if|g' replace include/ruckig/ruckig.hpp -e 's|||g' -e 's|if constexpr|if|g' replace include/ruckig/trajectory.hpp -e 's|if constexpr|if|g' replace include/ruckig/velocity.hpp -e 's|||g' -replace test/test-target.cpp -e 's|std::nullopt|nonstd::nullopt|g' -e 's|||g' -replace test/test-target-known.cpp -e 's|std::nullopt|nonstd::nullopt|g' -e 's|||g' +replace test/test_target.cpp -e 's|std::nullopt|nonstd::nullopt|g' -e 's|||g' +replace test/test_target_known.cpp -e 's|std::nullopt|nonstd::nullopt|g' -e 's|||g' replace CMakeLists.txt -e 's|cxx_std_17|cxx_std_11|g' -e 's|if(BUILD_BENCHMARK)|if(FALSE)|g' diff --git a/src/ruckig/position-first-step1.cpp b/src/ruckig/position_first_step1.cpp similarity index 100% rename from src/ruckig/position-first-step1.cpp rename to src/ruckig/position_first_step1.cpp diff --git a/src/ruckig/position-first-step2.cpp b/src/ruckig/position_first_step2.cpp similarity index 100% rename from src/ruckig/position-first-step2.cpp rename to src/ruckig/position_first_step2.cpp diff --git a/src/ruckig/position-second-step1.cpp b/src/ruckig/position_second_step1.cpp similarity index 100% rename from src/ruckig/position-second-step1.cpp rename to src/ruckig/position_second_step1.cpp diff --git a/src/ruckig/position-second-step2.cpp b/src/ruckig/position_second_step2.cpp similarity index 100% rename from src/ruckig/position-second-step2.cpp rename to src/ruckig/position_second_step2.cpp diff --git a/src/ruckig/position-third-step1.cpp b/src/ruckig/position_third_step1.cpp similarity index 100% rename from src/ruckig/position-third-step1.cpp rename to src/ruckig/position_third_step1.cpp diff --git a/src/ruckig/position-third-step2.cpp b/src/ruckig/position_third_step2.cpp similarity index 100% rename from src/ruckig/position-third-step2.cpp rename to src/ruckig/position_third_step2.cpp diff --git a/src/ruckig/velocity-second-step1.cpp b/src/ruckig/velocity_second_step1.cpp similarity index 100% rename from src/ruckig/velocity-second-step1.cpp rename to src/ruckig/velocity_second_step1.cpp diff --git a/src/ruckig/velocity-second-step2.cpp b/src/ruckig/velocity_second_step2.cpp similarity index 100% rename from src/ruckig/velocity-second-step2.cpp rename to src/ruckig/velocity_second_step2.cpp diff --git a/src/ruckig/velocity-third-step1.cpp b/src/ruckig/velocity_third_step1.cpp similarity index 100% rename from src/ruckig/velocity-third-step1.cpp rename to src/ruckig/velocity_third_step1.cpp diff --git a/src/ruckig/velocity-third-step2.cpp b/src/ruckig/velocity_third_step2.cpp similarity index 100% rename from src/ruckig/velocity-third-step2.cpp rename to src/ruckig/velocity_third_step2.cpp diff --git a/test/benchmark-target.cpp b/test/benchmark_target.cpp similarity index 100% rename from test/benchmark-target.cpp rename to test/benchmark_target.cpp diff --git a/test/test-target.cpp b/test/test_target.cpp similarity index 100% rename from test/test-target.cpp rename to test/test_target.cpp diff --git a/test/test-target-known.cpp b/test/test_target_known.cpp similarity index 100% rename from test/test-target-known.cpp rename to test/test_target_known.cpp