Mark code past FAIL and SKIP as unreachable

This helps the compiler see that the execution does not continue,
which in turn means that it is not an error if the user does not
return value from the function after FAIL/SKIP.

Closes #2941
This commit is contained in:
Martin Hořeňovský
2024-12-27 23:46:25 +01:00
parent b62413aee3
commit 6097bd6ee9
5 changed files with 72 additions and 4 deletions

View File

@@ -144,6 +144,7 @@ set(IMPL_HEADERS
${SOURCES_DIR}/internal/catch_uniform_integer_distribution.hpp
${SOURCES_DIR}/internal/catch_unique_name.hpp
${SOURCES_DIR}/internal/catch_unique_ptr.hpp
${SOURCES_DIR}/internal/catch_unreachable.hpp
${SOURCES_DIR}/internal/catch_void_type.hpp
${SOURCES_DIR}/internal/catch_wildcard_pattern.hpp
${SOURCES_DIR}/internal/catch_windows_h_proxy.hpp