Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-08-18 13:11:30 +0200
committerMartin Hořeňovský2020-08-18 21:02:25 +0200
commit6a46b344c02b2548b11e4b66f95618bd5c90d110 (patch)
tree94353f258025c6891e4f9f0fbc9953b78b39a3fc /src/catch2/internal
parente7eb74981513364e6543aeec30446fda4c9a3de9 (diff)
downloadcatch3-6a46b344c02b2548b11e4b66f95618bd5c90d110.tar.gz
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.
Diffstat (limited to 'src/catch2/internal')
-rw-r--r--src/catch2/internal/catch_case_sensitive.hpp12
-rw-r--r--src/catch2/internal/catch_common.hpp5
-rw-r--r--src/catch2/internal/catch_wildcard_pattern.hpp3
3 files changed, 14 insertions, 6 deletions
diff --git a/src/catch2/internal/catch_case_sensitive.hpp b/src/catch2/internal/catch_case_sensitive.hpp
new file mode 100644
index 00000000..ad765546
--- /dev/null
+++ b/src/catch2/internal/catch_case_sensitive.hpp
@@ -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
diff --git a/src/catch2/internal/catch_common.hpp b/src/catch2/internal/catch_common.hpp
index 1229b9e2..cdbb7372 100644
--- a/src/catch2/internal/catch_common.hpp
+++ b/src/catch2/internal/catch_common.hpp
@@ -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;
diff --git a/src/catch2/internal/catch_wildcard_pattern.hpp b/src/catch2/internal/catch_wildcard_pattern.hpp
index 90e05d4b..1dea8670 100644
--- a/src/catch2/internal/catch_wildcard_pattern.hpp
+++ b/src/catch2/internal/catch_wildcard_pattern.hpp
@@ -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
{