mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-03 22:05:39 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user