diff --git a/.clang-tidy b/.clang-tidy index f969c9178..8caa25fd1 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,5 @@ --- -Checks: 'clang-diagnostic-*,clang-analyzer-*,-*,bugprone-*,concurrency-*,performance-*,-macro*,readability-identifier-naming,-bugprone-exception-escape' +Checks: '-*,clang-diagnostic-*,clang-analyzer-*,bugprone-*,-bugprone-exception-escape,concurrency-*,performance-*,-macro*,readability-identifier-naming' WarningsAsErrors: '*' HeaderFilterRegex: './src/.*' AnalyzeTemporaryDtors: false diff --git a/.github/workflows/analyzers.yml b/.github/workflows/analyzers.yml index f2ee2ecb5..7b5831e83 100644 --- a/.github/workflows/analyzers.yml +++ b/.github/workflows/analyzers.yml @@ -148,4 +148,3 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | sonar-scanner --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" --define sonar.scm.revision=${{ github.event.workflow_run.head_sha }} --define sonar.pullrequest.key=${{ steps.source-run-info.outputs.pullRequestNumber }} --define sonar.pullrequest.branch=${{ steps.source-run-info.outputs.sourceHeadBranch }} --define sonar.pullrequest.base=${{ steps.source-run-info.outputs.targetBranch }} - diff --git a/.github/workflows/comment_benchmarks_v2.yml b/.github/workflows/comment_benchmarks_v2.yml index 4a11dc38c..5ec809c4e 100644 --- a/.github/workflows/comment_benchmarks_v2.yml +++ b/.github/workflows/comment_benchmarks_v2.yml @@ -89,4 +89,3 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./gh-pages - diff --git a/.gitignore b/.gitignore index 8e45ff4bf..c0440aca6 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,3 @@ CMakeUserPresets.json gen_docs/ gen_images/ - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e5d6c8051..8779b59d8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,11 +10,16 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - - id: trailing-whitespace - require_serial: true - # - id: end-of-file-fixer - - id: check-yaml - - id: check-added-large-files + - id: check-added-large-files # prevents giant files from being committed. + - id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems. + - id: check-merge-conflict # checks for files that contain merge conflict strings. + - id: check-yaml # checks yaml files for parseable syntax. + - id: detect-private-key # detects the presence of private keys. + - id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline. + - id: fix-byte-order-marker # removes utf-8 byte order marker. + - id: mixed-line-ending # replaces or checks mixed line ending. + - id: requirements-txt-fixer # sorts entries in requirements.txt. + - id: trailing-whitespace # trims trailing whitespace. - repo: https://github.com/pre-commit/mirrors-clang-format rev: 'v18.1.3' @@ -23,21 +28,3 @@ repos: args: ["-style=file", "-i"] types_or: [c++, c] require_serial: true - -# - repo: local -# hooks: -# - id: compile_json -# name: compile_json -# entry: cmake --preset=ci-coverage-clang -# always_run: true -# require_serial: true -# pass_filenames: false -# language: system - -# - repo: https://github.com/pocc/pre-commit-hooks -# rev: master -# hooks: -# - id: clang-tidy -# args: [--fix-errors, -config-file=.clang-tidy, "--checks=-*,bugprone-*,concurrency-*,performance-*", -p=build, ./src/*] -# # files: src -# entry: /usr/local/opt/llvm/bin/clang-tidy diff --git a/.vscode/extensions.json b/.vscode/extensions.json index ab468097f..8a6a9ff8a 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -4,4 +4,4 @@ "ms-vscode.cmake-tools", "cschlosser.doxdocgen" ] -} \ No newline at end of file +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 12b00899b..e1d826210 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -10,4 +10,4 @@ "sonarlint.connectedMode.project": { "projectKey": "victimsnino_ReactivePlusPlus" } -} \ No newline at end of file +} diff --git a/cmake/dependencies.cmake b/cmake/dependencies.cmake index 6d53ff9f9..18c2cc8e0 100644 --- a/cmake/dependencies.cmake +++ b/cmake/dependencies.cmake @@ -89,4 +89,4 @@ if (RPP_BUILD_BENCHMARKS) set_target_properties(nanobench PROPERTIES CXX_CPPCHECK "") set_target_properties(nanobench PROPERTIES FOLDER 3rdparty) -endif() \ No newline at end of file +endif() diff --git a/cmake/dev-mode.cmake b/cmake/dev-mode.cmake index 3f2869d5a..3f204f404 100644 --- a/cmake/dev-mode.cmake +++ b/cmake/dev-mode.cmake @@ -7,4 +7,4 @@ if(CMAKE_EXPORT_COMPILE_COMMANDS) set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES}) -endif() \ No newline at end of file +endif() diff --git a/cmake/install-config.cmake.in b/cmake/install-config.cmake.in index 18c2a9b8e..1389cc4d1 100644 --- a/cmake/install-config.cmake.in +++ b/cmake/install-config.cmake.in @@ -4,4 +4,4 @@ find_package(Threads REQUIRED) include("${CMAKE_CURRENT_LIST_DIR}/RPPTargets.cmake") -check_required_components(RPP) \ No newline at end of file +check_required_components(RPP) diff --git a/cmake/variables.cmake b/cmake/variables.cmake index 2bf3e941e..e7bbebde0 100644 --- a/cmake/variables.cmake +++ b/cmake/variables.cmake @@ -55,4 +55,4 @@ if (RPP_DEVELOPER_MODE) if(RPP_ENABLE_COVERAGE) include(cmake/coverage.cmake) endif() -endif() \ No newline at end of file +endif() diff --git a/docs/readme.md b/docs/readme.md index 5562ae73f..67c97b705 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -442,4 +442,4 @@ rpp::source::just(1,2,3) | rpp::ops::flat_map([](const rpp::constraint::observable_of_type auto& observable) { // or just `const auto& observable` return observable | rpp::ops::filter([](int v){ return v % 2 == 0;}); }); -``` \ No newline at end of file +``` diff --git a/src/examples/rpp/CMakeLists.txt b/src/examples/rpp/CMakeLists.txt index c87e4d0ed..502889a8d 100644 --- a/src/examples/rpp/CMakeLists.txt +++ b/src/examples/rpp/CMakeLists.txt @@ -6,4 +6,4 @@ add_subdirectory(linesfrombytes) if (RPP_BUILD_SFML_CODE) add_subdirectory(sfml) -endif() \ No newline at end of file +endif() diff --git a/src/examples/rpp/basic/CMakeLists.txt b/src/examples/rpp/basic/CMakeLists.txt index a43b49a55..1a31985f7 100644 --- a/src/examples/rpp/basic/CMakeLists.txt +++ b/src/examples/rpp/basic/CMakeLists.txt @@ -3,4 +3,4 @@ add_executable(basic_sample ) target_link_libraries(basic_sample PRIVATE RPP::rpp) -set_target_properties(basic_sample PROPERTIES FOLDER Examples/rpp) \ No newline at end of file +set_target_properties(basic_sample PROPERTIES FOLDER Examples/rpp) diff --git a/src/examples/rpp/basic/basic.cpp b/src/examples/rpp/basic/basic.cpp index c38fb8c55..295406ef5 100644 --- a/src/examples/rpp/basic/basic.cpp +++ b/src/examples/rpp/basic/basic.cpp @@ -13,4 +13,4 @@ int main() // NOLINT(bugprone-exception-escape) | rpp::operators::subscribe([](char v) { std::cout << v; }); return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/CMakeLists.txt b/src/examples/rpp/doxygen/CMakeLists.txt index 88a93374a..e599a21b7 100644 --- a/src/examples/rpp/doxygen/CMakeLists.txt +++ b/src/examples/rpp/doxygen/CMakeLists.txt @@ -6,4 +6,4 @@ foreach(SOURCE ${FILES}) add_executable(${TARGET} ${SOURCE}) target_link_libraries(${TARGET} PRIVATE rpp) set_target_properties(${TARGET} PROPERTIES FOLDER Examples/rpp/Doxygen) -endforeach() \ No newline at end of file +endforeach() diff --git a/src/examples/rpp/doxygen/as_blocking.cpp b/src/examples/rpp/doxygen/as_blocking.cpp index 1468c3489..42d62fb3e 100644 --- a/src/examples/rpp/doxygen/as_blocking.cpp +++ b/src/examples/rpp/doxygen/as_blocking.cpp @@ -18,4 +18,4 @@ int main() // NOLINT(bugprone-exception-escape) std::cout << "done" << std::endl; // output: COMPLETED done //! [as_blocking] -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/concat.cpp b/src/examples/rpp/doxygen/concat.cpp index 20fc9a462..9d0ca9723 100644 --- a/src/examples/rpp/doxygen/concat.cpp +++ b/src/examples/rpp/doxygen/concat.cpp @@ -29,4 +29,4 @@ int main() // NOLINT(bugprone-exception-escape) | rpp::operators::subscribe([](int v) { std::cout << v << ", "; }, [](const std::exception_ptr&) {}, []() { std::cout << "completed\n"; }); // Output: 1, 2, 1, 2, 3, completed //! [concat_as_operator] -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/connect.cpp b/src/examples/rpp/doxygen/connect.cpp index 125efebae..826213409 100644 --- a/src/examples/rpp/doxygen/connect.cpp +++ b/src/examples/rpp/doxygen/connect.cpp @@ -47,4 +47,4 @@ int main() // NOLINT(bugprone-exception-escape) // observer value 5 // DISPOSE //! [connect] -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/create.cpp b/src/examples/rpp/doxygen/create.cpp index 12fe61eb6..c4d4e8b47 100644 --- a/src/examples/rpp/doxygen/create.cpp +++ b/src/examples/rpp/doxygen/create.cpp @@ -24,4 +24,4 @@ int main() // NOLINT(bugprone-exception-escape) .subscribe([](int v) { std::cout << v << std::endl; }); // Output: 42 //! [create with capture] -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/defer.cpp b/src/examples/rpp/doxygen/defer.cpp index 7c1e00327..d4075eaef 100644 --- a/src/examples/rpp/doxygen/defer.cpp +++ b/src/examples/rpp/doxygen/defer.cpp @@ -39,4 +39,4 @@ int main() // NOLINT(bugprone-exception-escape) // 0 // On complete //! [defer mutable source] -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/filter.cpp b/src/examples/rpp/doxygen/filter.cpp index b9ea6f7f6..a45329188 100644 --- a/src/examples/rpp/doxygen/filter.cpp +++ b/src/examples/rpp/doxygen/filter.cpp @@ -14,4 +14,4 @@ int main() // NOLINT(bugprone-exception-escape) // Output: 0 2 4 6 8 //! [Filter] return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/first.cpp b/src/examples/rpp/doxygen/first.cpp index 2b34eb6b4..65ffc9e52 100644 --- a/src/examples/rpp/doxygen/first.cpp +++ b/src/examples/rpp/doxygen/first.cpp @@ -29,4 +29,4 @@ int main() // Output: -x //! [first_empty] return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/from.cpp b/src/examples/rpp/doxygen/from.cpp index 505d8bed4..24b87fee4 100644 --- a/src/examples/rpp/doxygen/from.cpp +++ b/src/examples/rpp/doxygen/from.cpp @@ -37,4 +37,4 @@ int main() // NOLINT(bugprone-exception-escape) //! [from_callable] } return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/interval.cpp b/src/examples/rpp/doxygen/interval.cpp index e5d646347..e0a61fd75 100644 --- a/src/examples/rpp/doxygen/interval.cpp +++ b/src/examples/rpp/doxygen/interval.cpp @@ -36,4 +36,4 @@ int main() // NOLINT(bugprone-exception-escape) // emit 3 duration since start 25ms // On complete //! [defer from_iterable] -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/last.cpp b/src/examples/rpp/doxygen/last.cpp index 62e2da510..cb5af243b 100644 --- a/src/examples/rpp/doxygen/last.cpp +++ b/src/examples/rpp/doxygen/last.cpp @@ -29,4 +29,4 @@ int main() // Output: -x //! [last empty] return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/map.cpp b/src/examples/rpp/doxygen/map.cpp index c60d1512a..4e22e1332 100644 --- a/src/examples/rpp/doxygen/map.cpp +++ b/src/examples/rpp/doxygen/map.cpp @@ -22,4 +22,4 @@ int main() // NOLINT(bugprone-exception-escape) // Output: 42 VAL //! [Changed type] return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/repeat.cpp b/src/examples/rpp/doxygen/repeat.cpp index a85971450..ced61c777 100644 --- a/src/examples/rpp/doxygen/repeat.cpp +++ b/src/examples/rpp/doxygen/repeat.cpp @@ -29,4 +29,4 @@ int main() // Output: 1 2 3 1 2 3 1 2 3 1 completed //! [repeat_infinitely] return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/skip.cpp b/src/examples/rpp/doxygen/skip.cpp index b14ea923e..dfaa8defa 100644 --- a/src/examples/rpp/doxygen/skip.cpp +++ b/src/examples/rpp/doxygen/skip.cpp @@ -14,4 +14,4 @@ int main() // Output: 2 3 4 5 //! [skip] return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/start_wih.cpp b/src/examples/rpp/doxygen/start_wih.cpp index 4da038b51..a0865468e 100644 --- a/src/examples/rpp/doxygen/start_wih.cpp +++ b/src/examples/rpp/doxygen/start_wih.cpp @@ -30,4 +30,4 @@ int main() //! [start_with_observable_as_value] return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/take.cpp b/src/examples/rpp/doxygen/take.cpp index 6092bfcd7..dca51dab2 100644 --- a/src/examples/rpp/doxygen/take.cpp +++ b/src/examples/rpp/doxygen/take.cpp @@ -14,4 +14,4 @@ int main() // NOLINT(bugprone-exception-escape) // Output: 0 1 //! [take] return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/take_while.cpp b/src/examples/rpp/doxygen/take_while.cpp index a8a83145b..3eea416fb 100644 --- a/src/examples/rpp/doxygen/take_while.cpp +++ b/src/examples/rpp/doxygen/take_while.cpp @@ -14,4 +14,4 @@ int main() // NOLINT(bugprone-exception-escape) // Output: 0 1 2 3 4 //! [take_while] return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/doxygen/timeout.cpp b/src/examples/rpp/doxygen/timeout.cpp index ef83bf0cf..8d4357e97 100644 --- a/src/examples/rpp/doxygen/timeout.cpp +++ b/src/examples/rpp/doxygen/timeout.cpp @@ -43,4 +43,4 @@ int main() // NOLINT(bugprone-exception-escape) }); //! [default] } -} \ No newline at end of file +} diff --git a/src/examples/rpp/linesfrombytes/CMakeLists.txt b/src/examples/rpp/linesfrombytes/CMakeLists.txt index d46b1224f..f46c1176e 100644 --- a/src/examples/rpp/linesfrombytes/CMakeLists.txt +++ b/src/examples/rpp/linesfrombytes/CMakeLists.txt @@ -3,4 +3,4 @@ linesfrombytes.cpp ) target_link_libraries(linesfrombytes PRIVATE RPP::rpp) -set_target_properties(linesfrombytes PROPERTIES FOLDER Examples/rpp) \ No newline at end of file +set_target_properties(linesfrombytes PROPERTIES FOLDER Examples/rpp) diff --git a/src/examples/rpp/linesfrombytes/linesfrombytes.cpp b/src/examples/rpp/linesfrombytes/linesfrombytes.cpp index 48a83381e..1da936d2b 100644 --- a/src/examples/rpp/linesfrombytes/linesfrombytes.cpp +++ b/src/examples/rpp/linesfrombytes/linesfrombytes.cpp @@ -74,4 +74,4 @@ int main() // NOLINT(bugprone-exception-escape) // print result lines | rpp::operators::subscribe([](const std::string& s) { std::cout << s << std::endl; }); return 0; -} \ No newline at end of file +} diff --git a/src/examples/rpp/long_chain/CMakeLists.txt b/src/examples/rpp/long_chain/CMakeLists.txt index 3501de7de..3ea2eaa05 100644 --- a/src/examples/rpp/long_chain/CMakeLists.txt +++ b/src/examples/rpp/long_chain/CMakeLists.txt @@ -3,4 +3,4 @@ add_executable(long_chain_sample ) target_link_libraries(long_chain_sample PRIVATE RPP::rpp) -set_target_properties(long_chain_sample PROPERTIES FOLDER Examples/rpp) \ No newline at end of file +set_target_properties(long_chain_sample PROPERTIES FOLDER Examples/rpp) diff --git a/src/examples/rpp/package/CMakeLists.txt b/src/examples/rpp/package/CMakeLists.txt index b0eab544f..3928d4761 100644 --- a/src/examples/rpp/package/CMakeLists.txt +++ b/src/examples/rpp/package/CMakeLists.txt @@ -5,4 +5,4 @@ find_package(RPP REQUIRED CONFIG) add_executable(${PROJECT_NAME} ../basic/basic.cpp) target_link_libraries(${PROJECT_NAME} PRIVATE RPP::rpp) -target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20) \ No newline at end of file +target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20) diff --git a/src/examples/rpp/sfml/CMakeLists.txt b/src/examples/rpp/sfml/CMakeLists.txt index a4f138f15..4c39731b6 100644 --- a/src/examples/rpp/sfml/CMakeLists.txt +++ b/src/examples/rpp/sfml/CMakeLists.txt @@ -1 +1 @@ -add_subdirectory(snake) \ No newline at end of file +add_subdirectory(snake) diff --git a/src/examples/rpp/sfml/snake/CMakeLists.txt b/src/examples/rpp/sfml/snake/CMakeLists.txt index 06366b221..11da08bbf 100644 --- a/src/examples/rpp/sfml/snake/CMakeLists.txt +++ b/src/examples/rpp/sfml/snake/CMakeLists.txt @@ -19,4 +19,4 @@ if (WIN32) add_custom_command (TARGET ${TARGET} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $) add_custom_command (TARGET ${TARGET} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $) add_custom_command (TARGET ${TARGET} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $) -endif() \ No newline at end of file +endif() diff --git a/src/examples/rpp/sfml/snake/canvas.cpp b/src/examples/rpp/sfml/snake/canvas.cpp index 65d3831ae..bfdc34717 100644 --- a/src/examples/rpp/sfml/snake/canvas.cpp +++ b/src/examples/rpp/sfml/snake/canvas.cpp @@ -19,4 +19,4 @@ sf::Vector2u get_window_size(size_t rows_count, size_t cols_count) { return {static_cast(static_cast(cols_count) * (s_cell_size + s_gap_size)), static_cast(static_cast(rows_count) * (s_cell_size + s_gap_size))}; -} \ No newline at end of file +} diff --git a/src/examples/rpp/sfml/snake/canvas.hpp b/src/examples/rpp/sfml/snake/canvas.hpp index b1e058c52..8f4e52a17 100644 --- a/src/examples/rpp/sfml/snake/canvas.hpp +++ b/src/examples/rpp/sfml/snake/canvas.hpp @@ -5,4 +5,4 @@ #include "snake.hpp" sf::RectangleShape get_rectangle_at(Coordinates location, sf::Color color); -sf::Vector2u get_window_size(size_t rows_count, size_t cols_count); \ No newline at end of file +sf::Vector2u get_window_size(size_t rows_count, size_t cols_count); diff --git a/src/examples/rpp/sfml/snake/main.cpp b/src/examples/rpp/sfml/snake/main.cpp index f3bf1de57..236ff5cd9 100644 --- a/src/examples/rpp/sfml/snake/main.cpp +++ b/src/examples/rpp/sfml/snake/main.cpp @@ -82,4 +82,4 @@ int main() } return EXIT_SUCCESS; -} \ No newline at end of file +} diff --git a/src/examples/rpp/sfml/snake/snake.cpp b/src/examples/rpp/sfml/snake/snake.cpp index 79e861036..4459c6c7e 100644 --- a/src/examples/rpp/sfml/snake/snake.cpp +++ b/src/examples/rpp/sfml/snake/snake.cpp @@ -144,4 +144,4 @@ rpp::dynamic_observable get_shapes_to_draw(const rpp::dynami return get_presents_stream(events) | rpp::ops::with_latest_from([](const auto&, const auto& v) { return v; }, drawable_objects) | rpp::ops::switch_on_next(); -} \ No newline at end of file +} diff --git a/src/examples/rpp/sfml/snake/snake.hpp b/src/examples/rpp/sfml/snake/snake.hpp index c6cb63326..56da27a3e 100644 --- a/src/examples/rpp/sfml/snake/snake.hpp +++ b/src/examples/rpp/sfml/snake/snake.hpp @@ -4,4 +4,4 @@ #include "utils.hpp" -rpp::dynamic_observable get_shapes_to_draw(const rpp::dynamic_observable& events); \ No newline at end of file +rpp::dynamic_observable get_shapes_to_draw(const rpp::dynamic_observable& events); diff --git a/src/examples/rpp/sfml/snake/utils.hpp b/src/examples/rpp/sfml/snake/utils.hpp index 7a7bd7537..4521c9825 100644 --- a/src/examples/rpp/sfml/snake/utils.hpp +++ b/src/examples/rpp/sfml/snake/utils.hpp @@ -36,4 +36,4 @@ auto get_presents_stream(const auto& events) { return events | rpp::ops::filter([](const CustomEvent& ev) { return std::holds_alternative(ev); }) | rpp::ops::map([](const CustomEvent& ev) { return std::get(ev); }); -} \ No newline at end of file +} diff --git a/src/examples/rpp/two_async_streams/CMakeLists.txt b/src/examples/rpp/two_async_streams/CMakeLists.txt index 0a9d4f0d3..3c2c1d64c 100644 --- a/src/examples/rpp/two_async_streams/CMakeLists.txt +++ b/src/examples/rpp/two_async_streams/CMakeLists.txt @@ -3,4 +3,4 @@ add_executable(two_async_streams ) target_link_libraries(two_async_streams PRIVATE RPP::rpp) -set_target_properties(two_async_streams PROPERTIES FOLDER Examples/rpp) \ No newline at end of file +set_target_properties(two_async_streams PROPERTIES FOLDER Examples/rpp) diff --git a/src/examples/rpp/two_async_streams/two_async_streams.cpp b/src/examples/rpp/two_async_streams/two_async_streams.cpp index 04af74473..ef2fd027b 100644 --- a/src/examples/rpp/two_async_streams/two_async_streams.cpp +++ b/src/examples/rpp/two_async_streams/two_async_streams.cpp @@ -51,4 +51,4 @@ int main() // NOLINT(bugprone-exception-escape) std::cout << "EXIT" << std::endl; return 0; -} \ No newline at end of file +} diff --git a/src/examples/rppqt/basic/CMakeLists.txt b/src/examples/rppqt/basic/CMakeLists.txt index fa2fd0959..5cb59f4b0 100644 --- a/src/examples/rppqt/basic/CMakeLists.txt +++ b/src/examples/rppqt/basic/CMakeLists.txt @@ -2,4 +2,3 @@ add_executable(basic_rppqt basic_rppqt.cpp) target_link_libraries(basic_rppqt PRIVATE rpp rppqt) set_target_properties(basic_rppqt PROPERTIES FOLDER Examples/rppqt) rpp_add_qt_support_to_executable(basic_rppqt) - diff --git a/src/examples/rppqt/basic/basic_rppqt.cpp b/src/examples/rppqt/basic/basic_rppqt.cpp index 23fab0fa0..c6885954e 100644 --- a/src/examples/rppqt/basic/basic_rppqt.cpp +++ b/src/examples/rppqt/basic/basic_rppqt.cpp @@ -48,4 +48,4 @@ int main(int argc, char* argv[]) window.show(); return app.exec(); -} \ No newline at end of file +} diff --git a/src/examples/rppqt/doxygen/CMakeLists.txt b/src/examples/rppqt/doxygen/CMakeLists.txt index 3d13e37ec..6126c3204 100644 --- a/src/examples/rppqt/doxygen/CMakeLists.txt +++ b/src/examples/rppqt/doxygen/CMakeLists.txt @@ -8,4 +8,3 @@ foreach(SOURCE ${FILES}) set_target_properties(${TARGET} PROPERTIES FOLDER Examples/rppqt/Doxygen) rpp_add_qt_support_to_executable(${TARGET}) endforeach() - diff --git a/src/rpp/rpp/defs.hpp b/src/rpp/rpp/defs.hpp index 72d38e940..829bca9ff 100644 --- a/src/rpp/rpp/defs.hpp +++ b/src/rpp/rpp/defs.hpp @@ -21,4 +21,4 @@ #define RPP_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]] #else #define RPP_NO_UNIQUE_ADDRESS [[no_unique_address]] -#endif \ No newline at end of file +#endif diff --git a/src/rpp/rpp/disposables/callback_disposable.hpp b/src/rpp/rpp/disposables/callback_disposable.hpp index 6712778c3..bf6a7b501 100644 --- a/src/rpp/rpp/disposables/callback_disposable.hpp +++ b/src/rpp/rpp/disposables/callback_disposable.hpp @@ -48,4 +48,4 @@ namespace rpp { return disposable_wrapper::make>>(std::forward(invocable)); } -} // namespace rpp \ No newline at end of file +} // namespace rpp diff --git a/src/rpp/rpp/disposables/details/base_disposable.hpp b/src/rpp/rpp/disposables/details/base_disposable.hpp index 62ac16f63..0cb4e3f35 100644 --- a/src/rpp/rpp/disposables/details/base_disposable.hpp +++ b/src/rpp/rpp/disposables/details/base_disposable.hpp @@ -49,4 +49,4 @@ namespace rpp::details using base_disposable = base_disposable_impl; using base_composite_disposable = base_disposable_impl; -} // namespace rpp::details \ No newline at end of file +} // namespace rpp::details diff --git a/src/rpp/rpp/disposables/details/container.hpp b/src/rpp/rpp/disposables/details/container.hpp index 1ca901551..1271f4600 100644 --- a/src/rpp/rpp/disposables/details/container.hpp +++ b/src/rpp/rpp/disposables/details/container.hpp @@ -170,4 +170,4 @@ namespace rpp::details::disposables static void dispose() {} static void clear() {} }; -} // namespace rpp::details::disposables \ No newline at end of file +} // namespace rpp::details::disposables diff --git a/src/rpp/rpp/disposables/disposable_wrapper.hpp b/src/rpp/rpp/disposables/disposable_wrapper.hpp index f821178a5..ba7af165f 100644 --- a/src/rpp/rpp/disposables/disposable_wrapper.hpp +++ b/src/rpp/rpp/disposables/disposable_wrapper.hpp @@ -240,4 +240,4 @@ namespace rpp::details private: std::weak_ptr m_weak{}; }; -} // namespace rpp::details \ No newline at end of file +} // namespace rpp::details diff --git a/src/rpp/rpp/disposables/fwd.hpp b/src/rpp/rpp/disposables/fwd.hpp index 188ad94ec..6cfb7344a 100644 --- a/src/rpp/rpp/disposables/fwd.hpp +++ b/src/rpp/rpp/disposables/fwd.hpp @@ -73,4 +73,4 @@ namespace rpp template disposable_wrapper make_callback_disposable(Fn&& invocable); -} // namespace rpp \ No newline at end of file +} // namespace rpp diff --git a/src/rpp/rpp/disposables/interface_composite_disposable.hpp b/src/rpp/rpp/disposables/interface_composite_disposable.hpp index cf4a6de4a..feebfd028 100644 --- a/src/rpp/rpp/disposables/interface_composite_disposable.hpp +++ b/src/rpp/rpp/disposables/interface_composite_disposable.hpp @@ -31,4 +31,4 @@ namespace rpp // dispose all added disposables, clear container but not dispose original disposable virtual void clear() = 0; }; -} // namespace rpp \ No newline at end of file +} // namespace rpp diff --git a/src/rpp/rpp/disposables/interface_disposable.hpp b/src/rpp/rpp/disposables/interface_disposable.hpp index c5d478899..467746e4f 100644 --- a/src/rpp/rpp/disposables/interface_disposable.hpp +++ b/src/rpp/rpp/disposables/interface_disposable.hpp @@ -47,4 +47,4 @@ namespace rpp virtual void dispose_impl(Mode mode) noexcept = 0; }; -} // namespace rpp \ No newline at end of file +} // namespace rpp diff --git a/src/rpp/rpp/disposables/refcount_disposable.hpp b/src/rpp/rpp/disposables/refcount_disposable.hpp index e3e25f2a7..c41521cde 100644 --- a/src/rpp/rpp/disposables/refcount_disposable.hpp +++ b/src/rpp/rpp/disposables/refcount_disposable.hpp @@ -108,4 +108,4 @@ namespace rpp } } } -} // namespace rpp \ No newline at end of file +} // namespace rpp diff --git a/src/rpp/rpp/fwd.hpp b/src/rpp/rpp/fwd.hpp index 5249ae1c4..03a2f3c46 100644 --- a/src/rpp/rpp/fwd.hpp +++ b/src/rpp/rpp/fwd.hpp @@ -21,4 +21,4 @@ #include #include #include -#include \ No newline at end of file +#include diff --git a/src/rpp/rpp/memory_model.hpp b/src/rpp/rpp/memory_model.hpp index 7e67d9523..601f1974d 100644 --- a/src/rpp/rpp/memory_model.hpp +++ b/src/rpp/rpp/memory_model.hpp @@ -29,4 +29,4 @@ namespace rpp::constraint { template concept memory_model = std::same_as || std::same_as; -} // namespace rpp::constraint \ No newline at end of file +} // namespace rpp::constraint diff --git a/src/rpp/rpp/observables/blocking_observable.hpp b/src/rpp/rpp/observables/blocking_observable.hpp index 53a19a32f..da3ec3852 100644 --- a/src/rpp/rpp/observables/blocking_observable.hpp +++ b/src/rpp/rpp/observables/blocking_observable.hpp @@ -93,4 +93,4 @@ namespace rpp public: using observable>::observable; }; -} // namespace rpp \ No newline at end of file +} // namespace rpp diff --git a/src/rpp/rpp/observables/details/chain_strategy.hpp b/src/rpp/rpp/observables/details/chain_strategy.hpp index ee35fc035..a87dc8b1d 100644 --- a/src/rpp/rpp/observables/details/chain_strategy.hpp +++ b/src/rpp/rpp/observables/details/chain_strategy.hpp @@ -103,4 +103,4 @@ namespace rpp template using make_chain_observable_t = typename make_chain_observable::type; -} // namespace rpp \ No newline at end of file +} // namespace rpp diff --git a/src/rpp/rpp/observables/details/disposable_strategy.hpp b/src/rpp/rpp/observables/details/disposable_strategy.hpp index 94518d630..00afdba0c 100644 --- a/src/rpp/rpp/observables/details/disposable_strategy.hpp +++ b/src/rpp/rpp/observables/details/disposable_strategy.hpp @@ -116,4 +116,4 @@ namespace rpp::details::observables requires observers::constraint::disposable_strategy; }; } // namespace constraint -} // namespace rpp::details::observables \ No newline at end of file +} // namespace rpp::details::observables diff --git a/src/rpp/rpp/observables/dynamic_observable.hpp b/src/rpp/rpp/observables/dynamic_observable.hpp index f0e384007..db0b2a201 100644 --- a/src/rpp/rpp/observables/dynamic_observable.hpp +++ b/src/rpp/rpp/observables/dynamic_observable.hpp @@ -101,4 +101,4 @@ namespace rpp { } }; -} // namespace rpp \ No newline at end of file +} // namespace rpp diff --git a/src/rpp/rpp/observables/grouped_observable.hpp b/src/rpp/rpp/observables/grouped_observable.hpp index 6c1798314..6baf64437 100644 --- a/src/rpp/rpp/observables/grouped_observable.hpp +++ b/src/rpp/rpp/observables/grouped_observable.hpp @@ -44,4 +44,4 @@ namespace rpp private: KeyType m_key; }; -} // namespace rpp \ No newline at end of file +} // namespace rpp diff --git a/src/rpp/rpp/observers/details/disposable_strategy.hpp b/src/rpp/rpp/observers/details/disposable_strategy.hpp index a667a0fab..30db40c10 100644 --- a/src/rpp/rpp/observers/details/disposable_strategy.hpp +++ b/src/rpp/rpp/observers/details/disposable_strategy.hpp @@ -103,4 +103,4 @@ namespace rpp::details::observers static void dispose() {} }; -} // namespace rpp::details::observers \ No newline at end of file +} // namespace rpp::details::observers diff --git a/src/rpp/rpp/observers/details/fwd.hpp b/src/rpp/rpp/observers/details/fwd.hpp index afd2ef419..c9eb936a4 100644 --- a/src/rpp/rpp/observers/details/fwd.hpp +++ b/src/rpp/rpp/observers/details/fwd.hpp @@ -81,4 +81,4 @@ namespace rpp::details::observers template using deduce_disposable_strategy_t = std::remove_pointer_t())>; -} // namespace rpp::details::observers \ No newline at end of file +} // namespace rpp::details::observers diff --git a/src/rpp/rpp/observers/dynamic_observer.hpp b/src/rpp/rpp/observers/dynamic_observer.hpp index faa454b23..deaf499d1 100644 --- a/src/rpp/rpp/observers/dynamic_observer.hpp +++ b/src/rpp/rpp/observers/dynamic_observer.hpp @@ -123,4 +123,4 @@ namespace rpp { } }; -} // namespace rpp \ No newline at end of file +} // namespace rpp diff --git a/src/rpp/rpp/observers/fwd.hpp b/src/rpp/rpp/observers/fwd.hpp index 9b16914f4..d7236777a 100644 --- a/src/rpp/rpp/observers/fwd.hpp +++ b/src/rpp/rpp/observers/fwd.hpp @@ -236,4 +236,4 @@ namespace rpp::constraint template concept observer_of_type = observer> && std::same_as>, Type>; -} // namespace rpp::constraint \ No newline at end of file +} // namespace rpp::constraint diff --git a/src/rpp/rpp/operators/as_blocking.hpp b/src/rpp/rpp/operators/as_blocking.hpp index d8b6021d4..4b363bd8c 100644 --- a/src/rpp/rpp/operators/as_blocking.hpp +++ b/src/rpp/rpp/operators/as_blocking.hpp @@ -48,4 +48,4 @@ namespace rpp::operators { return details::as_blocking_t{}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/buffer.hpp b/src/rpp/rpp/operators/buffer.hpp index 59f8b743a..f2e772ea6 100644 --- a/src/rpp/rpp/operators/buffer.hpp +++ b/src/rpp/rpp/operators/buffer.hpp @@ -109,4 +109,4 @@ namespace rpp::operators { return details::buffer_t{count}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/concat.hpp b/src/rpp/rpp/operators/concat.hpp index 6b063e897..0802a5666 100644 --- a/src/rpp/rpp/operators/concat.hpp +++ b/src/rpp/rpp/operators/concat.hpp @@ -246,4 +246,4 @@ namespace rpp::operators { return details::concat_t{}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/details/combining_strategy.hpp b/src/rpp/rpp/operators/details/combining_strategy.hpp index 1d7995cdd..099dd2c30 100644 --- a/src/rpp/rpp/operators/details/combining_strategy.hpp +++ b/src/rpp/rpp/operators/details/combining_strategy.hpp @@ -121,4 +121,4 @@ namespace rpp::operators::details (..., observables.subscribe(rpp::observer, TStrategy...>>{disposable})); } }; -} // namespace rpp::operators::details \ No newline at end of file +} // namespace rpp::operators::details diff --git a/src/rpp/rpp/operators/details/forwarding_subject.hpp b/src/rpp/rpp/operators/details/forwarding_subject.hpp index fdc059082..91b0f3e60 100644 --- a/src/rpp/rpp/operators/details/forwarding_subject.hpp +++ b/src/rpp/rpp/operators/details/forwarding_subject.hpp @@ -75,4 +75,4 @@ namespace rpp::operators::details disposable_wrapper_impl m_refcount; disposable_wrapper_impl> m_state = disposable_wrapper_impl>::make(); }; -} // namespace rpp::operators::details \ No newline at end of file +} // namespace rpp::operators::details diff --git a/src/rpp/rpp/operators/distinct.hpp b/src/rpp/rpp/operators/distinct.hpp index ff4286885..9f2151fc8 100644 --- a/src/rpp/rpp/operators/distinct.hpp +++ b/src/rpp/rpp/operators/distinct.hpp @@ -87,4 +87,4 @@ namespace rpp::operators { return details::distinct_t{}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/distinct_until_changed.hpp b/src/rpp/rpp/operators/distinct_until_changed.hpp index da57bab38..91ecf0ccb 100644 --- a/src/rpp/rpp/operators/distinct_until_changed.hpp +++ b/src/rpp/rpp/operators/distinct_until_changed.hpp @@ -102,4 +102,4 @@ namespace rpp::operators { return details::distinct_until_changed_t>{std::forward(equality_fn)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/filter.hpp b/src/rpp/rpp/operators/filter.hpp index 7844e77b5..32b842569 100644 --- a/src/rpp/rpp/operators/filter.hpp +++ b/src/rpp/rpp/operators/filter.hpp @@ -96,4 +96,4 @@ namespace rpp::operators { return details::filter_t>{std::forward(predicate)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/finally.hpp b/src/rpp/rpp/operators/finally.hpp index 18b2d5037..88102784a 100644 --- a/src/rpp/rpp/operators/finally.hpp +++ b/src/rpp/rpp/operators/finally.hpp @@ -58,4 +58,4 @@ namespace rpp::operators { return details::finally_t>{std::forward(last_fn)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/first.hpp b/src/rpp/rpp/operators/first.hpp index 50f6da93e..01ada3504 100644 --- a/src/rpp/rpp/operators/first.hpp +++ b/src/rpp/rpp/operators/first.hpp @@ -92,4 +92,4 @@ namespace rpp::operators { return details::first_t{}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/group_by.hpp b/src/rpp/rpp/operators/group_by.hpp index e9b32e9f9..4e1d8d1fc 100644 --- a/src/rpp/rpp/operators/group_by.hpp +++ b/src/rpp/rpp/operators/group_by.hpp @@ -224,4 +224,4 @@ namespace rpp::operators std::forward(value_selector), std::forward(comparator)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/last.hpp b/src/rpp/rpp/operators/last.hpp index 0a2833672..a3643051b 100644 --- a/src/rpp/rpp/operators/last.hpp +++ b/src/rpp/rpp/operators/last.hpp @@ -100,4 +100,4 @@ namespace rpp::operators { return details::last_t{}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/map.hpp b/src/rpp/rpp/operators/map.hpp index 6bcb48968..74e3fad4d 100644 --- a/src/rpp/rpp/operators/map.hpp +++ b/src/rpp/rpp/operators/map.hpp @@ -99,4 +99,4 @@ namespace rpp::operators { return details::map_t>{std::forward(callable)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/on_error_resume_next.hpp b/src/rpp/rpp/operators/on_error_resume_next.hpp index 222778696..95b259a7b 100644 --- a/src/rpp/rpp/operators/on_error_resume_next.hpp +++ b/src/rpp/rpp/operators/on_error_resume_next.hpp @@ -119,4 +119,4 @@ namespace rpp::operators { return details::on_error_resume_next_t>{std::forward(selector)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/publish.hpp b/src/rpp/rpp/operators/publish.hpp index 581e7df04..86ef0bd10 100644 --- a/src/rpp/rpp/operators/publish.hpp +++ b/src/rpp/rpp/operators/publish.hpp @@ -22,4 +22,4 @@ namespace rpp::operators { return multicast(); } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/reduce.hpp b/src/rpp/rpp/operators/reduce.hpp index d72ad586b..1d9b74f83 100644 --- a/src/rpp/rpp/operators/reduce.hpp +++ b/src/rpp/rpp/operators/reduce.hpp @@ -175,4 +175,4 @@ namespace rpp::operators { return details::reduce_no_seed_t>{std::forward(accumulator)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/ref_count.hpp b/src/rpp/rpp/operators/ref_count.hpp index b5ce41f8c..2cba0c3d2 100644 --- a/src/rpp/rpp/operators/ref_count.hpp +++ b/src/rpp/rpp/operators/ref_count.hpp @@ -30,4 +30,4 @@ namespace rpp::operators { return rpp::operators::details::ref_count_t{}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/repeat.hpp b/src/rpp/rpp/operators/repeat.hpp index 74bae6498..284ce12ce 100644 --- a/src/rpp/rpp/operators/repeat.hpp +++ b/src/rpp/rpp/operators/repeat.hpp @@ -95,4 +95,4 @@ namespace rpp::operators { return details::infinite_repeat_t{}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/scan.hpp b/src/rpp/rpp/operators/scan.hpp index fde385524..66064e127 100644 --- a/src/rpp/rpp/operators/scan.hpp +++ b/src/rpp/rpp/operators/scan.hpp @@ -188,4 +188,4 @@ namespace rpp::operators { return details::scan_no_seed_t>{std::forward(accumulator)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/skip.hpp b/src/rpp/rpp/operators/skip.hpp index e050a2b2f..b130556df 100644 --- a/src/rpp/rpp/operators/skip.hpp +++ b/src/rpp/rpp/operators/skip.hpp @@ -94,4 +94,4 @@ namespace rpp::operators { return details::skip_t{count}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/start_with.hpp b/src/rpp/rpp/operators/start_with.hpp index 745635307..87a72047a 100644 --- a/src/rpp/rpp/operators/start_with.hpp +++ b/src/rpp/rpp/operators/start_with.hpp @@ -166,4 +166,4 @@ namespace rpp::operators { return start_with_values(scheduler, std::forward(v), std::forward(vals)...); } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/subscribe.hpp b/src/rpp/rpp/operators/subscribe.hpp index e597aced9..84ca2933d 100644 --- a/src/rpp/rpp/operators/subscribe.hpp +++ b/src/rpp/rpp/operators/subscribe.hpp @@ -403,4 +403,4 @@ namespace rpp::operators { return subscribe(composite_disposable_wrapper::make(), std::forward(on_next), rpp::utils::rethrow_error_t{}, std::forward(on_completed)); } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/take.hpp b/src/rpp/rpp/operators/take.hpp index 814ba6f93..da1fd80c1 100644 --- a/src/rpp/rpp/operators/take.hpp +++ b/src/rpp/rpp/operators/take.hpp @@ -97,4 +97,4 @@ namespace rpp::operators { return details::take_t{count}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/take_last.hpp b/src/rpp/rpp/operators/take_last.hpp index 6203db1f1..2517f0a87 100644 --- a/src/rpp/rpp/operators/take_last.hpp +++ b/src/rpp/rpp/operators/take_last.hpp @@ -124,4 +124,4 @@ namespace rpp::operators { return details::take_last_t{count}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/take_until.hpp b/src/rpp/rpp/operators/take_until.hpp index acb43f37f..1cf382a11 100644 --- a/src/rpp/rpp/operators/take_until.hpp +++ b/src/rpp/rpp/operators/take_until.hpp @@ -143,4 +143,4 @@ namespace rpp::operators { return details::take_until_t>{std::forward(until_observable)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/take_while.hpp b/src/rpp/rpp/operators/take_while.hpp index a6ed05aae..9d6d8d8d0 100644 --- a/src/rpp/rpp/operators/take_while.hpp +++ b/src/rpp/rpp/operators/take_while.hpp @@ -96,4 +96,4 @@ namespace rpp::operators { return details::take_while_t>{std::forward(predicate)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/tap.hpp b/src/rpp/rpp/operators/tap.hpp index 74d20b052..c23af676d 100644 --- a/src/rpp/rpp/operators/tap.hpp +++ b/src/rpp/rpp/operators/tap.hpp @@ -165,4 +165,4 @@ namespace rpp::operators std::forward(on_error), std::forward(on_completed)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/throttle.hpp b/src/rpp/rpp/operators/throttle.hpp index 1aadb929b..a68c3faf6 100644 --- a/src/rpp/rpp/operators/throttle.hpp +++ b/src/rpp/rpp/operators/throttle.hpp @@ -103,4 +103,4 @@ namespace rpp::operators { return details::throttle_t>{period}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/timeout.hpp b/src/rpp/rpp/operators/timeout.hpp index beda2ed36..5143a2ce0 100644 --- a/src/rpp/rpp/operators/timeout.hpp +++ b/src/rpp/rpp/operators/timeout.hpp @@ -239,4 +239,4 @@ namespace rpp::operators { return details::timeout_with_error_t{period, scheduler}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/window.hpp b/src/rpp/rpp/operators/window.hpp index b717bd432..d93a59c63 100644 --- a/src/rpp/rpp/operators/window.hpp +++ b/src/rpp/rpp/operators/window.hpp @@ -153,4 +153,4 @@ namespace rpp::operators { return details::window_t{count}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/window_toggle.hpp b/src/rpp/rpp/operators/window_toggle.hpp index c05fb3dd6..fedd416b2 100644 --- a/src/rpp/rpp/operators/window_toggle.hpp +++ b/src/rpp/rpp/operators/window_toggle.hpp @@ -245,4 +245,4 @@ namespace rpp::operators { return details::window_toggle_t, std::decay_t>{std::forward(openings), std::forward(closings_selector)}; } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/operators/zip.hpp b/src/rpp/rpp/operators/zip.hpp index ae0247314..f4be887e3 100644 --- a/src/rpp/rpp/operators/zip.hpp +++ b/src/rpp/rpp/operators/zip.hpp @@ -134,4 +134,4 @@ namespace rpp::operators { return zip(rpp::utils::pack_to_tuple{}, std::forward(observable), std::forward(observables)...); } -} // namespace rpp::operators \ No newline at end of file +} // namespace rpp::operators diff --git a/src/rpp/rpp/rpp.hpp b/src/rpp/rpp/rpp.hpp index 4f1630f81..a56c66e5e 100644 --- a/src/rpp/rpp/rpp.hpp +++ b/src/rpp/rpp/rpp.hpp @@ -17,4 +17,4 @@ #include #include #include -#include \ No newline at end of file +#include diff --git a/src/rpp/rpp/schedulers.hpp b/src/rpp/rpp/schedulers.hpp index c17af9520..b72d9d901 100644 --- a/src/rpp/rpp/schedulers.hpp +++ b/src/rpp/rpp/schedulers.hpp @@ -20,4 +20,4 @@ #include #include #include -#include \ No newline at end of file +#include diff --git a/src/rpp/rpp/schedulers/current_thread.hpp b/src/rpp/rpp/schedulers/current_thread.hpp index ccc97170f..74aad619b 100644 --- a/src/rpp/rpp/schedulers/current_thread.hpp +++ b/src/rpp/rpp/schedulers/current_thread.hpp @@ -199,4 +199,4 @@ namespace rpp::schedulers return rpp::schedulers::worker{}; } }; -} // namespace rpp::schedulers \ No newline at end of file +} // namespace rpp::schedulers diff --git a/src/rpp/rpp/schedulers/details/queue.hpp b/src/rpp/rpp/schedulers/details/queue.hpp index 7dd93b4b5..44b4c6870 100644 --- a/src/rpp/rpp/schedulers/details/queue.hpp +++ b/src/rpp/rpp/schedulers/details/queue.hpp @@ -218,4 +218,4 @@ namespace rpp::schedulers::details std::shared_ptr m_head{}; std::shared_ptr m_shared_data{}; }; -} // namespace rpp::schedulers::details \ No newline at end of file +} // namespace rpp::schedulers::details diff --git a/src/rpp/rpp/schedulers/details/utils.hpp b/src/rpp/rpp/schedulers/details/utils.hpp index 17af2fdbe..605d51384 100644 --- a/src/rpp/rpp/schedulers/details/utils.hpp +++ b/src/rpp/rpp/schedulers/details/utils.hpp @@ -159,4 +159,4 @@ namespace rpp::schedulers::details return timepoint; } -} // namespace rpp::schedulers::details \ No newline at end of file +} // namespace rpp::schedulers::details diff --git a/src/rpp/rpp/schedulers/details/worker.hpp b/src/rpp/rpp/schedulers/details/worker.hpp index e97fa0562..a3cf2e681 100644 --- a/src/rpp/rpp/schedulers/details/worker.hpp +++ b/src/rpp/rpp/schedulers/details/worker.hpp @@ -71,4 +71,4 @@ namespace rpp::schedulers private: RPP_NO_UNIQUE_ADDRESS Strategy m_strategy; }; -} // namespace rpp::schedulers \ No newline at end of file +} // namespace rpp::schedulers diff --git a/src/rpp/rpp/schedulers/fwd.hpp b/src/rpp/rpp/schedulers/fwd.hpp index 9e13b4814..31fcd4c76 100644 --- a/src/rpp/rpp/schedulers/fwd.hpp +++ b/src/rpp/rpp/schedulers/fwd.hpp @@ -204,4 +204,4 @@ namespace rpp::schedulers::utils { template using get_worker_t = std::decay_t().create_worker())>; -} // namespace rpp::schedulers::utils \ No newline at end of file +} // namespace rpp::schedulers::utils diff --git a/src/rpp/rpp/sources.hpp b/src/rpp/rpp/sources.hpp index d1427ec5a..814a1c4a2 100644 --- a/src/rpp/rpp/sources.hpp +++ b/src/rpp/rpp/sources.hpp @@ -27,4 +27,4 @@ #include #include #include -#include \ No newline at end of file +#include diff --git a/src/rpp/rpp/sources/defer.hpp b/src/rpp/rpp/sources/defer.hpp index ae44c847d..d9578a045 100644 --- a/src/rpp/rpp/sources/defer.hpp +++ b/src/rpp/rpp/sources/defer.hpp @@ -58,4 +58,4 @@ namespace rpp::source { return defer_observable>, Factory>{std::forward(observable_factory)}; } -} // namespace rpp::source \ No newline at end of file +} // namespace rpp::source diff --git a/src/rpp/rpp/sources/empty.hpp b/src/rpp/rpp/sources/empty.hpp index 177746f9a..49826b6b1 100644 --- a/src/rpp/rpp/sources/empty.hpp +++ b/src/rpp/rpp/sources/empty.hpp @@ -52,4 +52,4 @@ namespace rpp::source { return empty_observable{}; } -} // namespace rpp::source \ No newline at end of file +} // namespace rpp::source diff --git a/src/rpp/rpp/sources/error.hpp b/src/rpp/rpp/sources/error.hpp index 80fc2e7a7..f75ea7059 100644 --- a/src/rpp/rpp/sources/error.hpp +++ b/src/rpp/rpp/sources/error.hpp @@ -53,4 +53,4 @@ namespace rpp::source { return error_observable{std::move(err)}; } -} // namespace rpp::source \ No newline at end of file +} // namespace rpp::source diff --git a/src/rpp/rpp/sources/fwd.hpp b/src/rpp/rpp/sources/fwd.hpp index 08691c68c..feb77ae56 100644 --- a/src/rpp/rpp/sources/fwd.hpp +++ b/src/rpp/rpp/sources/fwd.hpp @@ -88,4 +88,4 @@ namespace rpp::source template auto timer(rpp::schedulers::time_point when, TScheduler&& scheduler); -} // namespace rpp::source \ No newline at end of file +} // namespace rpp::source diff --git a/src/rpp/rpp/sources/interval.hpp b/src/rpp/rpp/sources/interval.hpp index 6c15c582f..d79e8864f 100644 --- a/src/rpp/rpp/sources/interval.hpp +++ b/src/rpp/rpp/sources/interval.hpp @@ -120,4 +120,4 @@ namespace rpp::source { return interval(period, period, std::forward(scheduler)); } -} // namespace rpp::source \ No newline at end of file +} // namespace rpp::source diff --git a/src/rpp/rpp/sources/just.hpp b/src/rpp/rpp/sources/just.hpp index 56f045ac5..a92451b60 100644 --- a/src/rpp/rpp/sources/just.hpp +++ b/src/rpp/rpp/sources/just.hpp @@ -10,4 +10,4 @@ #pragma once -#include \ No newline at end of file +#include diff --git a/src/rpp/rpp/sources/never.hpp b/src/rpp/rpp/sources/never.hpp index da14ec8d2..da4d10ad1 100644 --- a/src/rpp/rpp/sources/never.hpp +++ b/src/rpp/rpp/sources/never.hpp @@ -50,4 +50,4 @@ namespace rpp::source { return never_observable{}; } -} // namespace rpp::source \ No newline at end of file +} // namespace rpp::source diff --git a/src/rpp/rpp/sources/timer.hpp b/src/rpp/rpp/sources/timer.hpp index 0c57c74fb..63f895264 100644 --- a/src/rpp/rpp/sources/timer.hpp +++ b/src/rpp/rpp/sources/timer.hpp @@ -41,4 +41,4 @@ namespace rpp::source { return interval(when, rpp::schedulers::duration::zero(), std::forward(scheduler)) | operators::take(1); } -} // namespace rpp::source \ No newline at end of file +} // namespace rpp::source diff --git a/src/rpp/rpp/subjects.hpp b/src/rpp/rpp/subjects.hpp index 49cb7b52b..43c04ff7b 100644 --- a/src/rpp/rpp/subjects.hpp +++ b/src/rpp/rpp/subjects.hpp @@ -19,4 +19,4 @@ #include #include -#include \ No newline at end of file +#include diff --git a/src/rpp/rpp/subjects/behavior_subject.hpp b/src/rpp/rpp/subjects/behavior_subject.hpp index 9219c9a44..110f82b9b 100644 --- a/src/rpp/rpp/subjects/behavior_subject.hpp +++ b/src/rpp/rpp/subjects/behavior_subject.hpp @@ -135,4 +135,4 @@ namespace rpp::subjects public: using details::behavior_subject_base::behavior_subject_base; }; -} // namespace rpp::subjects \ No newline at end of file +} // namespace rpp::subjects diff --git a/src/rpp/rpp/subjects/details/subject_state.hpp b/src/rpp/rpp/subjects/details/subject_state.hpp index de624fa1e..b902fa304 100644 --- a/src/rpp/rpp/subjects/details/subject_state.hpp +++ b/src/rpp/rpp/subjects/details/subject_state.hpp @@ -176,4 +176,4 @@ namespace rpp::subjects::details std::mutex m_mutex{}; RPP_NO_UNIQUE_ADDRESS std::conditional_t m_serialized_mutex{}; }; -} // namespace rpp::subjects::details \ No newline at end of file +} // namespace rpp::subjects::details diff --git a/src/rpp/rpp/subjects/publish_subject.hpp b/src/rpp/rpp/subjects/publish_subject.hpp index 2237768f8..c095fc501 100644 --- a/src/rpp/rpp/subjects/publish_subject.hpp +++ b/src/rpp/rpp/subjects/publish_subject.hpp @@ -96,4 +96,4 @@ namespace rpp::subjects public: using details::publish_subject_base::publish_subject_base; }; -} // namespace rpp::subjects \ No newline at end of file +} // namespace rpp::subjects diff --git a/src/rpp/rpp/subjects/replay_subject.hpp b/src/rpp/rpp/subjects/replay_subject.hpp index c86477520..a4a549d3a 100644 --- a/src/rpp/rpp/subjects/replay_subject.hpp +++ b/src/rpp/rpp/subjects/replay_subject.hpp @@ -179,4 +179,4 @@ namespace rpp::subjects public: using details::replay_subject_base::replay_subject_base; }; -} // namespace rpp::subjects \ No newline at end of file +} // namespace rpp::subjects diff --git a/src/rpp/rpp/utils/exceptions.hpp b/src/rpp/rpp/utils/exceptions.hpp index 3b4c06f54..6569b0207 100644 --- a/src/rpp/rpp/utils/exceptions.hpp +++ b/src/rpp/rpp/utils/exceptions.hpp @@ -28,4 +28,4 @@ namespace rpp::utils { using std::runtime_error::runtime_error; }; -} // namespace rpp::utils \ No newline at end of file +} // namespace rpp::utils diff --git a/src/rpp/rpp/utils/function_traits.hpp b/src/rpp/rpp/utils/function_traits.hpp index 7749f9877..5d4a3205b 100644 --- a/src/rpp/rpp/utils/function_traits.hpp +++ b/src/rpp/rpp/utils/function_traits.hpp @@ -87,4 +87,4 @@ namespace rpp::utils template using decayed_invoke_result_t = std::decay_t>; -} // namespace rpp::utils \ No newline at end of file +} // namespace rpp::utils diff --git a/src/rpp/rpp/utils/functors.hpp b/src/rpp/rpp/utils/functors.hpp index fe377ef8c..3b36c1a9b 100644 --- a/src/rpp/rpp/utils/functors.hpp +++ b/src/rpp/rpp/utils/functors.hpp @@ -81,4 +81,4 @@ namespace rpp::utils { auto operator()(auto&&... vals) const { return std::make_tuple(std::forward(vals)...); } }; -} // namespace rpp::utils \ No newline at end of file +} // namespace rpp::utils diff --git a/src/rpp/rpp/utils/tuple.hpp b/src/rpp/rpp/utils/tuple.hpp index 100a4dc6c..e3510cd41 100644 --- a/src/rpp/rpp/utils/tuple.hpp +++ b/src/rpp/rpp/utils/tuple.hpp @@ -109,4 +109,4 @@ namespace rpp::utils template tuple(const Args&...) -> tuple; -} // namespace rpp::utils \ No newline at end of file +} // namespace rpp::utils diff --git a/src/rppqt/rppqt/rppqt.hpp b/src/rppqt/rppqt/rppqt.hpp index c993e96b8..3abdd106b 100644 --- a/src/rppqt/rppqt/rppqt.hpp +++ b/src/rppqt/rppqt/rppqt.hpp @@ -12,4 +12,4 @@ #include #include -#include \ No newline at end of file +#include diff --git a/src/rppqt/rppqt/schedulers.hpp b/src/rppqt/rppqt/schedulers.hpp index 338e0138b..f9b6fb6a9 100644 --- a/src/rppqt/rppqt/schedulers.hpp +++ b/src/rppqt/rppqt/schedulers.hpp @@ -17,4 +17,4 @@ * @ingroup rppqt */ -#include \ No newline at end of file +#include diff --git a/src/rppqt/rppqt/sources.hpp b/src/rppqt/rppqt/sources.hpp index 97f05c615..455c707db 100644 --- a/src/rppqt/rppqt/sources.hpp +++ b/src/rppqt/rppqt/sources.hpp @@ -16,4 +16,4 @@ * @ingroup qt_operators */ -#include \ No newline at end of file +#include diff --git a/src/rppqt/rppqt/utils/exceptions.hpp b/src/rppqt/rppqt/utils/exceptions.hpp index cb637e021..7d15276c8 100644 --- a/src/rppqt/rppqt/utils/exceptions.hpp +++ b/src/rppqt/rppqt/utils/exceptions.hpp @@ -18,4 +18,4 @@ namespace rppqt::utils { using std::runtime_error::runtime_error; }; -} // namespace rppqt::utils \ No newline at end of file +} // namespace rppqt::utils diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 9af8a235f..45c99fabe 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -46,4 +46,4 @@ rpp_register_tests(rpp) if (RPP_BUILD_QT_CODE) rpp_register_tests(rppqt) -endif() \ No newline at end of file +endif() diff --git a/src/tests/rpp/test_buffer.cpp b/src/tests/rpp/test_buffer.cpp index ce13f1950..3a5e50342 100644 --- a/src/tests/rpp/test_buffer.cpp +++ b/src/tests/rpp/test_buffer.cpp @@ -139,4 +139,4 @@ TEST_CASE("buffer bundles items") TEST_CASE("buffer satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::buffer(1)); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_combine_latest.cpp b/src/tests/rpp/test_combine_latest.cpp index d14c31f32..35269214b 100644 --- a/src/tests/rpp/test_combine_latest.cpp +++ b/src/tests/rpp/test_combine_latest.cpp @@ -164,4 +164,4 @@ TEST_CASE("combine_latest satisfies disposable contracts") } CHECK(observable_disposable.is_disposed() || observable_disposable.lock().use_count() == 2); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_concat.cpp b/src/tests/rpp/test_concat.cpp index f450beb38..b362a0b51 100644 --- a/src/tests/rpp/test_concat.cpp +++ b/src/tests/rpp/test_concat.cpp @@ -419,4 +419,4 @@ TEST_CASE("concat as operator satisfies disposable contracts") { test_operator_over_observable_with_disposable([](auto&& observable) { return rpp::source::just(observable) | rpp::ops::concat(); }); test_operator_over_observable_with_disposable>([](auto&& observable) { return observable | rpp::ops::concat(); }); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_connectable_observable.cpp b/src/tests/rpp/test_connectable_observable.cpp index 83b651ef6..c330287f7 100644 --- a/src/tests/rpp/test_connectable_observable.cpp +++ b/src/tests/rpp/test_connectable_observable.cpp @@ -329,4 +329,4 @@ TEST_CASE("ref_count") } } } -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_debounce.cpp b/src/tests/rpp/test_debounce.cpp index 222294735..39ff61f89 100644 --- a/src/tests/rpp/test_debounce.cpp +++ b/src/tests/rpp/test_debounce.cpp @@ -123,4 +123,4 @@ TEST_CASE("debounce emit only items where timeout reached") TEST_CASE("debounce satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::debounce(std::chrono::seconds{1}, test_scheduler{})); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_defer.cpp b/src/tests/rpp/test_defer.cpp index 871b88545..34e73738b 100644 --- a/src/tests/rpp/test_defer.cpp +++ b/src/tests/rpp/test_defer.cpp @@ -82,4 +82,4 @@ TEST_CASE("defer on mutable sources") CHECK(mock1.get_received_values() == std::vector{0}); CHECK(mock2.get_received_values() == std::vector{0}); } -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_delay.cpp b/src/tests/rpp/test_delay.cpp index 42790c870..b7dcf3069 100644 --- a/src/tests/rpp/test_delay.cpp +++ b/src/tests/rpp/test_delay.cpp @@ -288,4 +288,4 @@ TEST_CASE("observe_on forward error immediately") CHECK(scheduler.get_schedulings() == std::vector{now + delay_duration}); CHECK(scheduler.get_executions() == std::vector{}); } -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_disposables.cpp b/src/tests/rpp/test_disposables.cpp index d60bdae09..665449389 100644 --- a/src/tests/rpp/test_disposables.cpp +++ b/src/tests/rpp/test_disposables.cpp @@ -369,4 +369,4 @@ TEST_CASE("static_disposable_container works as expected") } } } -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_distinct.cpp b/src/tests/rpp/test_distinct.cpp index 60fcee2bf..560f56893 100644 --- a/src/tests/rpp/test_distinct.cpp +++ b/src/tests/rpp/test_distinct.cpp @@ -66,4 +66,4 @@ TEST_CASE("distinct doesn't produce extra copies") TEST_CASE("distinct satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::distinct()); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_distinct_until_changed.cpp b/src/tests/rpp/test_distinct_until_changed.cpp index 12c1b2484..c7df6c7e6 100644 --- a/src/tests/rpp/test_distinct_until_changed.cpp +++ b/src/tests/rpp/test_distinct_until_changed.cpp @@ -74,4 +74,4 @@ TEST_CASE("distinct_until_changed doesn't produce extra copies") TEST_CASE("distinct_until_changed satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::distinct_until_changed()); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_filter.cpp b/src/tests/rpp/test_filter.cpp index b28c62f71..ce98ffee5 100644 --- a/src/tests/rpp/test_filter.cpp +++ b/src/tests/rpp/test_filter.cpp @@ -73,4 +73,4 @@ TEST_CASE("filter doesn't produce extra copies") TEST_CASE("filter satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::filter([](const int&) { return false; })); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_finally.cpp b/src/tests/rpp/test_finally.cpp index ea30b834b..552940215 100644 --- a/src/tests/rpp/test_finally.cpp +++ b/src/tests/rpp/test_finally.cpp @@ -112,4 +112,4 @@ TEST_CASE("finally satisfies disposable contracts") } CHECK(observable_disposable.is_disposed() || observable_disposable.lock().use_count() == 2); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_first.cpp b/src/tests/rpp/test_first.cpp index 9e55f8fac..a7de00bd1 100644 --- a/src/tests/rpp/test_first.cpp +++ b/src/tests/rpp/test_first.cpp @@ -96,4 +96,4 @@ TEST_CASE("first doesn't produce extra copies") TEST_CASE("first satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::first()); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_flat_map.cpp b/src/tests/rpp/test_flat_map.cpp index ed9a2130f..aff4b2deb 100644 --- a/src/tests/rpp/test_flat_map.cpp +++ b/src/tests/rpp/test_flat_map.cpp @@ -141,4 +141,4 @@ TEMPLATE_TEST_CASE("flat_map", "", rpp::memory_model::use_stack, rpp::memory_mod TEST_CASE("flat_map satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::flat_map([](const auto& v) { return rpp::source::just(v); })); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_from.cpp b/src/tests/rpp/test_from.cpp index 7701da664..d04b3704e 100644 --- a/src/tests/rpp/test_from.cpp +++ b/src/tests/rpp/test_from.cpp @@ -402,4 +402,4 @@ TEMPLATE_TEST_CASE("just variadic", } } } -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_group_by.cpp b/src/tests/rpp/test_group_by.cpp index bed5195ff..f78cee8ff 100644 --- a/src/tests/rpp/test_group_by.cpp +++ b/src/tests/rpp/test_group_by.cpp @@ -290,4 +290,4 @@ TEST_CASE("group_by's disposables tracks 1 dispose per call") TEST_CASE("group_by satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::group_by([](int) { return 0; })); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_last.cpp b/src/tests/rpp/test_last.cpp index cb0d270a3..502b4df65 100644 --- a/src/tests/rpp/test_last.cpp +++ b/src/tests/rpp/test_last.cpp @@ -99,4 +99,4 @@ TEST_CASE("last doesn't produce extra copies") TEST_CASE("last satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::last()); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_map.cpp b/src/tests/rpp/test_map.cpp index 4c7c41dd7..0058b3bac 100644 --- a/src/tests/rpp/test_map.cpp +++ b/src/tests/rpp/test_map.cpp @@ -68,4 +68,4 @@ TEST_CASE("map doesn't produce extra copies") TEST_CASE("map satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::map([](auto&& v) { return std::forward(v); })); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_merge.cpp b/src/tests/rpp/test_merge.cpp index 13d1f7718..5ddcbf837 100644 --- a/src/tests/rpp/test_merge.cpp +++ b/src/tests/rpp/test_merge.cpp @@ -289,4 +289,4 @@ TEST_CASE("merge satisfies disposable contracts") test_operator_with_disposable(rpp::ops::merge_with(observable)); } CHECK(observable_disposable.is_disposed() || observable_disposable.lock().use_count() == 2); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_on_error_resume_next.cpp b/src/tests/rpp/test_on_error_resume_next.cpp index 90d91a583..993ad03c6 100644 --- a/src/tests/rpp/test_on_error_resume_next.cpp +++ b/src/tests/rpp/test_on_error_resume_next.cpp @@ -174,4 +174,4 @@ TEST_CASE("on_error_resume_next satisfies disposable contracts") } CHECK(observable_disposable.is_disposed() || observable_disposable.lock().use_count() == 2); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_reduce.cpp b/src/tests/rpp/test_reduce.cpp index e892d9fd4..be7609552 100644 --- a/src/tests/rpp/test_reduce.cpp +++ b/src/tests/rpp/test_reduce.cpp @@ -101,4 +101,4 @@ TEST_CASE("reduce doesn't produce extra copies") TEST_CASE("reduce satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::reduce([](auto&& s, auto&&) { return s; })); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_repeat.cpp b/src/tests/rpp/test_repeat.cpp index f62f98c54..44573c758 100644 --- a/src/tests/rpp/test_repeat.cpp +++ b/src/tests/rpp/test_repeat.cpp @@ -133,4 +133,4 @@ TEST_CASE("repeat doesn't produce extra copies") TEST_CASE("repeat satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::repeat()); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_scan.cpp b/src/tests/rpp/test_scan.cpp index 36bcc50e2..4c7ae77da 100644 --- a/src/tests/rpp/test_scan.cpp +++ b/src/tests/rpp/test_scan.cpp @@ -163,4 +163,4 @@ TEST_CASE("scan doesn't produce extra copies") TEST_CASE("scan satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::scan([](auto&& s, auto&&) { return s; })); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_scheduler.cpp b/src/tests/rpp/test_scheduler.cpp index dd5850801..33db92ee5 100644 --- a/src/tests/rpp/test_scheduler.cpp +++ b/src/tests/rpp/test_scheduler.cpp @@ -944,4 +944,4 @@ TEST_CASE("current_thread inside new_thread") REQUIRE(done->load()); CHECK(current_thread_invoked->load()); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_start_with.cpp b/src/tests/rpp/test_start_with.cpp index cce218588..58678a2a7 100644 --- a/src/tests/rpp/test_start_with.cpp +++ b/src/tests/rpp/test_start_with.cpp @@ -54,4 +54,4 @@ TEST_CASE("start_with works as concat with prepending instead of adding at the e check(); } } -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_subjects.cpp b/src/tests/rpp/test_subjects.cpp index 9e8ac1f3e..39100a4c1 100644 --- a/src/tests/rpp/test_subjects.cpp +++ b/src/tests/rpp/test_subjects.cpp @@ -487,4 +487,4 @@ TEMPLATE_TEST_CASE("replay subject multicasts values and replay", "", rpp::subje CHECK(mock_4.get_on_completed_count() == 0); } } -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_subscribe_on.cpp b/src/tests/rpp/test_subscribe_on.cpp index 3768db543..5cf0d02cd 100644 --- a/src/tests/rpp/test_subscribe_on.cpp +++ b/src/tests/rpp/test_subscribe_on.cpp @@ -114,4 +114,4 @@ TEST_CASE("subscribe_on schedules job in another scheduler") TEST_CASE("group_by satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::subscribe_on(rpp::schedulers::current_thread{})); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_switch_on_next.cpp b/src/tests/rpp/test_switch_on_next.cpp index 2690fdee6..a4c4e35d0 100644 --- a/src/tests/rpp/test_switch_on_next.cpp +++ b/src/tests/rpp/test_switch_on_next.cpp @@ -234,4 +234,4 @@ TEST_CASE("switch_on_next handles race condition") } } } -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_take.cpp b/src/tests/rpp/test_take.cpp index eeda91967..71eaa8c38 100644 --- a/src/tests/rpp/test_take.cpp +++ b/src/tests/rpp/test_take.cpp @@ -111,4 +111,4 @@ TEST_CASE("take doesn't produce extra copies") TEST_CASE("take satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::take(1)); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_take_last.cpp b/src/tests/rpp/test_take_last.cpp index 2daf3194d..fe2ae7eb8 100644 --- a/src/tests/rpp/test_take_last.cpp +++ b/src/tests/rpp/test_take_last.cpp @@ -178,4 +178,4 @@ TEST_CASE("take_last doesn't produce extra copies") TEST_CASE("take_last satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::take_last(1)); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_take_until.cpp b/src/tests/rpp/test_take_until.cpp index ca2108940..aa637524e 100644 --- a/src/tests/rpp/test_take_until.cpp +++ b/src/tests/rpp/test_take_until.cpp @@ -222,4 +222,4 @@ TEST_CASE("take_until satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::take_until(rpp::source::never())); test_operator_with_disposable(rpp::ops::take_until(rpp::source::empty())); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_take_while.cpp b/src/tests/rpp/test_take_while.cpp index d5a60eb67..6d8ac1bc0 100644 --- a/src/tests/rpp/test_take_while.cpp +++ b/src/tests/rpp/test_take_while.cpp @@ -83,4 +83,4 @@ TEST_CASE("take_while doesn't produce extra copies") TEST_CASE("take_while satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::take_while([](auto) { return true; })); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_tap.cpp b/src/tests/rpp/test_tap.cpp index 85017f9be..b2ac2020f 100644 --- a/src/tests/rpp/test_tap.cpp +++ b/src/tests/rpp/test_tap.cpp @@ -92,4 +92,4 @@ TEST_CASE("tap doesn't produce extra copies") TEST_CASE("tap satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::tap()); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_timeout.cpp b/src/tests/rpp/test_timeout.cpp index daa3c098c..42abaa33d 100644 --- a/src/tests/rpp/test_timeout.cpp +++ b/src/tests/rpp/test_timeout.cpp @@ -157,4 +157,4 @@ TEST_CASE("timeout handles current_thread scheduling") TEST_CASE("timeout satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::timeout(std::chrono::seconds{10000000}, test_scheduler{})); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_timer.cpp b/src/tests/rpp/test_timer.cpp index bc8970764..b54f7aeb1 100644 --- a/src/tests/rpp/test_timer.cpp +++ b/src/tests/rpp/test_timer.cpp @@ -99,4 +99,4 @@ TEST_CASE("timer emit single value at provided time_point") } } } -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_window.cpp b/src/tests/rpp/test_window.cpp index f449f27cf..a0b31124b 100644 --- a/src/tests/rpp/test_window.cpp +++ b/src/tests/rpp/test_window.cpp @@ -213,4 +213,4 @@ TEST_CASE("window disposes original disposable only when everything is disposed" TEST_CASE("window satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::window(1)); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_window_toggle.cpp b/src/tests/rpp/test_window_toggle.cpp index ab4c35e2f..87b58036d 100644 --- a/src/tests/rpp/test_window_toggle.cpp +++ b/src/tests/rpp/test_window_toggle.cpp @@ -231,4 +231,4 @@ TEST_CASE("window_toggle disposes original disposable only when everything is di TEST_CASE("window_toggle satisfies disposable contracts") { test_operator_with_disposable(rpp::ops::window_toggle(rpp::source::just(1), [](int) { return rpp::source::just(1); })); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_with_lastest_from.cpp b/src/tests/rpp/test_with_lastest_from.cpp index 33db928c2..01d464876 100644 --- a/src/tests/rpp/test_with_lastest_from.cpp +++ b/src/tests/rpp/test_with_lastest_from.cpp @@ -203,4 +203,4 @@ TEST_CASE("with_latest_from satisfies disposable contracts") } CHECK(observable_disposable.is_disposed() || observable_disposable.lock().use_count() == 2); -} \ No newline at end of file +} diff --git a/src/tests/rpp/test_zip.cpp b/src/tests/rpp/test_zip.cpp index 6b5eb6dbc..d6de75d2f 100644 --- a/src/tests/rpp/test_zip.cpp +++ b/src/tests/rpp/test_zip.cpp @@ -185,4 +185,4 @@ TEST_CASE("zip satisfies disposable contracts") } CHECK(observable_disposable.is_disposed() || observable_disposable.lock().use_count() == 2); -} \ No newline at end of file +} diff --git a/src/tests/rppqt/test_from_signal.cpp b/src/tests/rppqt/test_from_signal.cpp index e6ff62bf5..04242cd48 100644 --- a/src/tests/rppqt/test_from_signal.cpp +++ b/src/tests/rppqt/test_from_signal.cpp @@ -135,4 +135,4 @@ TEST_CASE("from_signal sends special struct if no args in signal") } } } -} \ No newline at end of file +} diff --git a/src/tests/utils/CMakeLists.txt b/src/tests/utils/CMakeLists.txt index 38191e13f..32ebb8325 100644 --- a/src/tests/utils/CMakeLists.txt +++ b/src/tests/utils/CMakeLists.txt @@ -1,3 +1,3 @@ add_library(rpp_tests_utils INTERFACE) target_include_directories(rpp_tests_utils INTERFACE .) -target_link_libraries(rpp_tests_utils INTERFACE rpp) \ No newline at end of file +target_link_libraries(rpp_tests_utils INTERFACE rpp) diff --git a/src/tests/utils/snitch_logging.hpp b/src/tests/utils/snitch_logging.hpp index 6b569a19e..20d6c0ebb 100644 --- a/src/tests/utils/snitch_logging.hpp +++ b/src/tests/utils/snitch_logging.hpp @@ -41,4 +41,4 @@ namespace std { return append(ss, v.time_since_epoch().count()); } -} // namespace std \ No newline at end of file +} // namespace std