Skip to content

Commit 9721048

Browse files
obouklihorenmar
authored andcommitted
Move header from internal
Move `catch_case_sensitive.hpp` from directory `src/catch2/internal/internal` to be directly under `src/catch2/`. Header `catch_case_sensitive.hpp` defines `enum CaseSensitive` which is part of the public API, since it is exposed by the string matcher contracts. Fixes issue caught by Clang Tidy misc-include-cleaner check.
1 parent aad0a3a commit 9721048

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ set(IMPL_HEADERS
4848
${SOURCES_DIR}/catch_approx.hpp
4949
${SOURCES_DIR}/catch_assertion_info.hpp
5050
${SOURCES_DIR}/catch_assertion_result.hpp
51+
${SOURCES_DIR}/catch_case_sensitive.hpp
5152
${SOURCES_DIR}/catch_config.hpp
5253
${SOURCES_DIR}/catch_get_random_seed.hpp
5354
${SOURCES_DIR}/catch_message.hpp
@@ -67,7 +68,6 @@ set(IMPL_HEADERS
6768
${SOURCES_DIR}/catch_version_macros.hpp
6869
${SOURCES_DIR}/internal/catch_assertion_handler.hpp
6970
${SOURCES_DIR}/internal/catch_case_insensitive_comparisons.hpp
70-
${SOURCES_DIR}/internal/catch_case_sensitive.hpp
7171
${SOURCES_DIR}/internal/catch_clara.hpp
7272
${SOURCES_DIR}/internal/catch_commandline.hpp
7373
${SOURCES_DIR}/internal/catch_compare_traits.hpp

src/catch2/catch_all.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <catch2/catch_approx.hpp>
2727
#include <catch2/catch_assertion_info.hpp>
2828
#include <catch2/catch_assertion_result.hpp>
29+
#include <catch2/catch_case_sensitive.hpp>
2930
#include <catch2/catch_config.hpp>
3031
#include <catch2/catch_get_random_seed.hpp>
3132
#include <catch2/catch_message.hpp>
@@ -47,7 +48,6 @@
4748
#include <catch2/interfaces/catch_interfaces_all.hpp>
4849
#include <catch2/internal/catch_assertion_handler.hpp>
4950
#include <catch2/internal/catch_case_insensitive_comparisons.hpp>
50-
#include <catch2/internal/catch_case_sensitive.hpp>
5151
#include <catch2/internal/catch_clara.hpp>
5252
#include <catch2/internal/catch_commandline.hpp>
5353
#include <catch2/internal/catch_compare_traits.hpp>

src/catch2/internal/catch_wildcard_pattern.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef CATCH_WILDCARD_PATTERN_HPP_INCLUDED
99
#define CATCH_WILDCARD_PATTERN_HPP_INCLUDED
1010

11-
#include <catch2/internal/catch_case_sensitive.hpp>
11+
#include <catch2/catch_case_sensitive.hpp>
1212

1313
#include <string>
1414

src/catch2/matchers/catch_matchers_string.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
#ifndef CATCH_MATCHERS_STRING_HPP_INCLUDED
99
#define CATCH_MATCHERS_STRING_HPP_INCLUDED
1010

11-
#include <catch2/matchers/catch_matchers.hpp>
12-
#include <catch2/internal/catch_case_sensitive.hpp>
1311
#include <catch2/internal/catch_stringref.hpp>
12+
#include <catch2/matchers/catch_matchers.hpp>
13+
#include <catch2/catch_case_sensitive.hpp>
1414

1515
#include <string>
1616

src/catch2/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ internal_headers = [
7474
'interfaces/catch_interfaces_testcase.hpp',
7575
'internal/catch_assertion_handler.hpp',
7676
'internal/catch_case_insensitive_comparisons.hpp',
77-
'internal/catch_case_sensitive.hpp',
7877
'internal/catch_clara.hpp',
7978
'internal/catch_commandline.hpp',
8079
'internal/catch_compare_traits.hpp',
@@ -173,6 +172,7 @@ internal_headers = [
173172
'catch_approx.hpp',
174173
'catch_assertion_info.hpp',
175174
'catch_assertion_result.hpp',
175+
'catch_case_sensitive.hpp',
176176
'catch_config.hpp',
177177
'catch_get_random_seed.hpp',
178178
'catch_message.hpp',

0 commit comments

Comments
 (0)