diff options
| author | Omar Boukli-Hacene | 2025-04-13 16:44:53 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2025-07-07 17:27:48 +0200 |
| commit | 8dc9f1a1247a15836044501c9a791ea67a709f05 (patch) | |
| tree | 6cd3d7fdcb9766b722bff424ae985583c5e361d2 /src/catch2 | |
| parent | 038ee6ea13f341807547657d42333ad339eac2fe (diff) | |
| download | catch3-8dc9f1a1247a15836044501c9a791ea67a709f05.tar.gz | |
Move header from internal
Move `catch_test_run_info.hpp` from directory
`src/catch2/internal/` to be directly under `src/catch2/`.
Header `catch_test_run_info.hpp` defines `Catch::TestRunInfo` which is part of the public API, since it is required when overriding `Catch::EventListenerBase`.
Fixes issue caught by Clang Tidy misc-include-cleaner check.
Diffstat (limited to 'src/catch2')
| -rw-r--r-- | src/catch2/catch_all.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/catch_test_run_info.hpp (renamed from src/catch2/internal/catch_test_run_info.hpp) | 0 | ||||
| -rw-r--r-- | src/catch2/interfaces/catch_interfaces_reporter.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/internal/catch_run_context.hpp | 2 | ||||
| -rw-r--r-- | src/catch2/meson.build | 2 |
5 files changed, 4 insertions, 4 deletions
diff --git a/src/catch2/catch_all.hpp b/src/catch2/catch_all.hpp index 57159955..88dd57ea 100644 --- a/src/catch2/catch_all.hpp +++ b/src/catch2/catch_all.hpp @@ -37,6 +37,7 @@ #include <catch2/catch_template_test_macros.hpp> #include <catch2/catch_test_case_info.hpp> #include <catch2/catch_test_macros.hpp> +#include <catch2/catch_test_run_info.hpp> #include <catch2/catch_test_spec.hpp> #include <catch2/catch_timer.hpp> #include <catch2/catch_tostring.hpp> @@ -117,7 +118,6 @@ #include <catch2/internal/catch_test_failure_exception.hpp> #include <catch2/internal/catch_test_macro_impl.hpp> #include <catch2/internal/catch_test_registry.hpp> -#include <catch2/internal/catch_test_run_info.hpp> #include <catch2/internal/catch_test_spec_parser.hpp> #include <catch2/internal/catch_textflow.hpp> #include <catch2/internal/catch_to_string.hpp> diff --git a/src/catch2/internal/catch_test_run_info.hpp b/src/catch2/catch_test_run_info.hpp index 90357b0a..90357b0a 100644 --- a/src/catch2/internal/catch_test_run_info.hpp +++ b/src/catch2/catch_test_run_info.hpp diff --git a/src/catch2/interfaces/catch_interfaces_reporter.hpp b/src/catch2/interfaces/catch_interfaces_reporter.hpp index e8f5d519..86264118 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter.hpp +++ b/src/catch2/interfaces/catch_interfaces_reporter.hpp @@ -9,11 +9,11 @@ #define CATCH_INTERFACES_REPORTER_HPP_INCLUDED #include <catch2/catch_section_info.hpp> +#include <catch2/catch_test_run_info.hpp> #include <catch2/catch_totals.hpp> #include <catch2/catch_assertion_result.hpp> #include <catch2/internal/catch_message_info.hpp> #include <catch2/internal/catch_stringref.hpp> -#include <catch2/internal/catch_test_run_info.hpp> #include <catch2/internal/catch_unique_ptr.hpp> #include <catch2/benchmark/detail/catch_benchmark_stats.hpp> diff --git a/src/catch2/internal/catch_run_context.hpp b/src/catch2/internal/catch_run_context.hpp index c66fec0c..66735f41 100644 --- a/src/catch2/internal/catch_run_context.hpp +++ b/src/catch2/internal/catch_run_context.hpp @@ -10,7 +10,7 @@ #include <catch2/interfaces/catch_interfaces_capture.hpp> #include <catch2/internal/catch_test_registry.hpp> -#include <catch2/internal/catch_test_run_info.hpp> +#include <catch2/catch_test_run_info.hpp> #include <catch2/internal/catch_fatal_condition_handler.hpp> #include <catch2/catch_test_case_info.hpp> #include <catch2/catch_message.hpp> diff --git a/src/catch2/meson.build b/src/catch2/meson.build index 2eb53991..191aea3f 100644 --- a/src/catch2/meson.build +++ b/src/catch2/meson.build @@ -144,7 +144,6 @@ internal_headers = [ 'internal/catch_test_failure_exception.hpp', 'internal/catch_test_macro_impl.hpp', 'internal/catch_test_registry.hpp', - 'internal/catch_test_run_info.hpp', 'internal/catch_test_spec_parser.hpp', 'internal/catch_textflow.hpp', 'internal/catch_to_string.hpp', @@ -185,6 +184,7 @@ internal_headers = [ 'catch_template_test_macros.hpp', 'catch_test_case_info.hpp', 'catch_test_macros.hpp', + 'catch_test_run_info.hpp', 'catch_test_spec.hpp', 'catch_timer.hpp', 'catch_tostring.hpp', |