Split out CaseSensitive enum out of catch_common.hpp

Only very few places actually use it, so there is no need to have
it be central to everywhere.
This commit is contained in:
Martin Hořeňovský 2020-08-18 13:11:30 +02:00
parent e7eb749815
commit 6a46b344c0
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
6 changed files with 17 additions and 6 deletions

View File

@ -44,6 +44,7 @@ set(INTERNAL_HEADERS
${SOURCES_DIR}/catch_assertion_info.hpp
${SOURCES_DIR}/catch_assertion_result.hpp
${SOURCES_DIR}/internal/catch_test_macro_impl.hpp
${SOURCES_DIR}/internal/catch_case_sensitive.hpp
${SOURCES_DIR}/internal/catch_clara.hpp
${SOURCES_DIR}/internal/catch_commandline.hpp
${SOURCES_DIR}/internal/catch_common.hpp

View File

@ -39,6 +39,7 @@
#include <catch2/generators/catch_generators_all.hpp>
#include <catch2/interfaces/catch_interfaces_all.hpp>
#include <catch2/internal/catch_assertion_handler.hpp>
#include <catch2/internal/catch_case_sensitive.hpp>
#include <catch2/internal/catch_clara.hpp>
#include <catch2/internal/catch_commandline.hpp>
#include <catch2/internal/catch_common.hpp>

View File

@ -0,0 +1,12 @@
#ifndef CATCH_CASE_SENSITIVE_HPP_INCLUDED
#define CATCH_CASE_SENSITIVE_HPP_INCLUDED
namespace Catch {
struct CaseSensitive {
enum Choice { Yes, No };
};
} // namespace Catch
#endif // CATCH_CASE_SENSITIVE_HPP_INCLUDED

View File

@ -27,11 +27,6 @@ std::ostream& operator<<(std::ostream&, Catch_global_namespace_dummy);
namespace Catch {
struct CaseSensitive { enum Choice {
Yes,
No
}; };
struct SourceLineInfo {
SourceLineInfo() = delete;

View File

@ -8,8 +8,9 @@
#ifndef TWOBLUECUBES_CATCH_WILDCARD_PATTERN_HPP_INCLUDED
#define TWOBLUECUBES_CATCH_WILDCARD_PATTERN_HPP_INCLUDED
#include <catch2/internal/catch_common.hpp>
#include <catch2/internal/catch_case_sensitive.hpp>
#include <string>
namespace Catch
{

View File

@ -9,6 +9,7 @@
#define TWOBLUECUBES_CATCH_MATCHERS_STRING_H_INCLUDED
#include <catch2/matchers/catch_matchers.hpp>
#include <catch2/internal/catch_case_sensitive.hpp>
#include <string>