Skip to content

Commit f0afa5d

Browse files
authored
#include cleanup (#231)
* update library headers to have self-contained #includes * update gha ci to run for feature/** branches
1 parent 9a8d2b1 commit f0afa5d

25 files changed

+143
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
branches:
1010
- master
1111
- develop
12+
- feature/**
1213
pull_request:
1314
release:
1415
types: [published, created, edited]

include/boost/regex/v5/basic_regex.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@
1919
#ifndef BOOST_REGEX_V5_BASIC_REGEX_HPP
2020
#define BOOST_REGEX_V5_BASIC_REGEX_HPP
2121

22+
#include <boost/regex/v5/regbase.hpp>
23+
#include <boost/regex/v5/syntax_type.hpp>
24+
#include <boost/regex/v5/regex_traits.hpp>
25+
#include <boost/regex/v5/states.hpp>
26+
#include <boost/regex/v5/regex_raw_buffer.hpp>
27+
28+
#include <algorithm>
29+
#include <limits>
30+
#include <memory>
2231
#include <vector>
2332

2433
namespace boost{

include/boost/regex/v5/basic_regex_creator.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
#endif
2929
#endif
3030

31+
#include <boost/regex/v5/basic_regex.hpp>
32+
33+
#include <vector>
3134
#include <set>
3235

3336
namespace boost{

include/boost/regex/v5/basic_regex_parser.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
#ifndef BOOST_REGEX_V5_BASIC_REGEX_PARSER_HPP
2020
#define BOOST_REGEX_V5_BASIC_REGEX_PARSER_HPP
2121

22+
#include <boost/regex/v5/basic_regex_creator.hpp>
23+
24+
#include <climits>
25+
#include <cstdint>
26+
#include <limits>
27+
#include <type_traits>
28+
2229
namespace boost{
2330
namespace BOOST_REGEX_DETAIL_NS{
2431

include/boost/regex/v5/c_regex_traits.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121

2222
#include <boost/regex/config.hpp>
2323
#include <boost/regex/v5/regex_workaround.hpp>
24+
#include <boost/regex/v5/primary_transform.hpp>
25+
#include <boost/regex/v5/regex_traits_defaults.hpp>
26+
2427
#include <cctype>
28+
#include <cstdint>
29+
#include <cwctype>
2530

2631
namespace boost{
2732

include/boost/regex/v5/char_regex_traits.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#ifndef BOOST_REGEX_V5_CHAR_REGEX_TRAITS_HPP
2121
#define BOOST_REGEX_V5_CHAR_REGEX_TRAITS_HPP
2222

23+
#include <boost/regex/v5/regex_traits.hpp>
24+
2325
namespace boost{
2426

2527
namespace deprecated{

include/boost/regex/v5/iterator_traits.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#ifndef BOOST_REGEX_V5_ITERATOR_TRAITS_HPP
2020
#define BOOST_REGEX_V5_ITERATOR_TRAITS_HPP
2121

22+
#include <iterator>
23+
2224
namespace boost{
2325
namespace BOOST_REGEX_DETAIL_NS{
2426

include/boost/regex/v5/match_results.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919
#ifndef BOOST_REGEX_V5_MATCH_RESULTS_HPP
2020
#define BOOST_REGEX_V5_MATCH_RESULTS_HPP
2121

22+
#include <boost/regex/v5/match_flags.hpp>
23+
#include <boost/regex/v5/sub_match.hpp>
24+
#include <boost/regex/v5/basic_regex.hpp>
25+
#include <boost/regex/v5/regex_format.hpp>
26+
27+
#include <string>
28+
#include <vector>
29+
2230
namespace boost{
2331
#ifdef BOOST_REGEX_MSVC
2432
#pragma warning(push)

include/boost/regex/v5/mem_block_cache.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#ifndef BOOST_REGEX_V5_MEM_BLOCK_CACHE_HPP
1919
#define BOOST_REGEX_V5_MEM_BLOCK_CACHE_HPP
2020

21+
#include <boost/regex/config.hpp>
22+
2123
#include <new>
2224
#ifdef BOOST_HAS_THREADS
2325
#include <mutex>
@@ -31,6 +33,7 @@
3133
#endif
3234
#endif
3335

36+
3437
namespace boost{
3538
namespace BOOST_REGEX_DETAIL_NS{
3639

include/boost/regex/v5/perl_matcher.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,18 @@
1212
#ifndef BOOST_REGEX_MATCHER_HPP
1313
#define BOOST_REGEX_MATCHER_HPP
1414

15+
#include <boost/regex/v5/match_flags.hpp>
16+
#include <boost/regex/v5/match_results.hpp>
17+
#include <boost/regex/v5/regbase.hpp>
1518
#include <boost/regex/v5/iterator_category.hpp>
19+
#include <boost/regex/v5/states.hpp>
20+
#include <boost/regex/v5/regex_traits.hpp>
21+
22+
#ifndef BOOST_REGEX_STANDALONE
23+
#include <boost/throw_exception.hpp>
24+
#endif
25+
26+
#include <climits>
1627

1728
#ifdef BOOST_REGEX_MSVC
1829
# pragma warning(push)

include/boost/regex/v5/perl_matcher_common.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@
2020
#ifndef BOOST_REGEX_V5_PERL_MATCHER_COMMON_HPP
2121
#define BOOST_REGEX_V5_PERL_MATCHER_COMMON_HPP
2222

23+
#include <boost/regex/config.hpp>
24+
25+
#ifndef BOOST_REGEX_STANDALONE
26+
27+
#include <boost/config.hpp>
28+
#if defined(BOOST_HAS_PRAGMA_ONCE)
29+
#pragma once
30+
#include <boost/regex/v5/perl_matcher.hpp>
31+
#endif
32+
33+
#endif
34+
35+
#include <boost/regex/v5/basic_regex.hpp>
36+
#include <boost/regex/v5/match_flags.hpp>
37+
#include <boost/regex/v5/match_results.hpp>
38+
2339
#ifdef BOOST_REGEX_MSVC
2440
# pragma warning(push)
2541
#pragma warning(disable:4459)

include/boost/regex/v5/perl_matcher_non_recursive.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@
2020
#ifndef BOOST_REGEX_V5_PERL_MATCHER_NON_RECURSIVE_HPP
2121
#define BOOST_REGEX_V5_PERL_MATCHER_NON_RECURSIVE_HPP
2222

23+
#include <boost/regex/config.hpp>
24+
25+
#ifndef BOOST_REGEX_STANDALONE
26+
27+
#include <boost/config.hpp>
28+
#if defined(BOOST_HAS_PRAGMA_ONCE)
29+
#pragma once
30+
#include <boost/regex/v5/perl_matcher.hpp>
31+
#endif
32+
33+
#endif
34+
2335
#include <boost/regex/v5/mem_block_cache.hpp>
2436

2537
#ifdef BOOST_REGEX_MSVC

include/boost/regex/v5/regex_format.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
#ifndef BOOST_REGEX_FORMAT_HPP
2222
#define BOOST_REGEX_FORMAT_HPP
2323

24+
#include <boost/regex/v5/match_flags.hpp>
25+
#include <boost/regex/v5/sub_match.hpp>
26+
#include <boost/regex/v5/regex_traits_defaults.hpp>
27+
2428
#include <type_traits>
2529
#include <functional>
2630

include/boost/regex/v5/regex_grep.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#ifndef BOOST_REGEX_V5_REGEX_GREP_HPP
2020
#define BOOST_REGEX_V5_REGEX_GREP_HPP
2121

22+
#include <boost/regex/v5/basic_regex.hpp>
23+
#include <boost/regex/v5/match_flags.hpp>
24+
#include <boost/regex/v5/match_results.hpp>
25+
#include <boost/regex/v5/perl_matcher.hpp>
2226

2327
namespace boost{
2428

include/boost/regex/v5/regex_iterator.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#ifndef BOOST_REGEX_V5_REGEX_ITERATOR_HPP
2020
#define BOOST_REGEX_V5_REGEX_ITERATOR_HPP
2121

22+
#include <boost/regex/v5/basic_regex.hpp>
23+
#include <boost/regex/v5/match_results.hpp>
24+
2225
#include <memory>
2326

2427
namespace boost{

include/boost/regex/v5/regex_match.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
#ifndef BOOST_REGEX_MATCH_HPP
2323
#define BOOST_REGEX_MATCH_HPP
2424

25+
#include <boost/regex/v5/match_results.hpp>
26+
#include <boost/regex/v5/perl_matcher.hpp>
27+
2528
namespace boost{
2629

2730
//

include/boost/regex/v5/regex_raw_buffer.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#include <algorithm>
2929
#include <cstddef>
30+
#include <cstring>
3031

3132
namespace boost{
3233
namespace BOOST_REGEX_DETAIL_NS{

include/boost/regex/v5/regex_replace.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#define BOOST_REGEX_V5_REGEX_REPLACE_HPP
2323

2424

25+
#include <boost/regex/v5/basic_regex.hpp>
26+
#include <boost/regex/v5/match_flags.hpp>
27+
#include <boost/regex/v5/regex_iterator.hpp>
28+
2529
namespace boost{
2630

2731
template <class OutputIterator, class BidirectionalIterator, class traits, class charT, class Formatter>

include/boost/regex/v5/regex_search.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
#define BOOST_REGEX_V5_REGEX_SEARCH_HPP
2121

2222

23+
#include <boost/regex/v5/match_results.hpp>
24+
#include <boost/regex/v5/perl_matcher.hpp>
25+
2326
namespace boost{
2427

2528
template <class BidiIterator, class Allocator, class charT, class traits>

include/boost/regex/v5/regex_split.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#ifndef BOOST_REGEX_SPLIT_HPP
2222
#define BOOST_REGEX_SPLIT_HPP
2323

24+
#include <boost/regex/v5/basic_regex.hpp>
25+
#include <boost/regex/v5/match_results.hpp>
26+
2427
namespace boost{
2528

2629
#ifdef BOOST_REGEX_MSVC

include/boost/regex/v5/regex_token_iterator.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#ifndef BOOST_REGEX_V5_REGEX_TOKEN_ITERATOR_HPP
2020
#define BOOST_REGEX_V5_REGEX_TOKEN_ITERATOR_HPP
2121

22+
#include <boost/regex/v5/basic_regex.hpp>
23+
#include <boost/regex/v5/match_results.hpp>
24+
#include <boost/regex/v5/sub_match.hpp>
25+
2226
#include <memory>
2327

2428
namespace boost{

include/boost/regex/v5/states.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
#ifndef BOOST_REGEX_V5_STATES_HPP
2020
#define BOOST_REGEX_V5_STATES_HPP
2121

22+
#include <boost/regex/v5/regex_raw_buffer.hpp>
23+
24+
#include <climits>
25+
#include <cstddef>
26+
2227
namespace boost{
2328
namespace BOOST_REGEX_DETAIL_NS{
2429

include/boost/regex/v5/sub_match.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#ifndef BOOST_REGEX_V5_SUB_MATCH_HPP
2020
#define BOOST_REGEX_V5_SUB_MATCH_HPP
2121

22+
#include <iterator>
23+
#include <utility>
24+
2225
namespace boost{
2326

2427
template <class BidiIterator>

include/boost/regex/v5/u32regex_iterator.hpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@
1919
#ifndef BOOST_REGEX_V5_U32REGEX_ITERATOR_HPP
2020
#define BOOST_REGEX_V5_U32REGEX_ITERATOR_HPP
2121

22+
#include <boost/regex/config.hpp>
23+
24+
#ifndef BOOST_REGEX_STANDALONE
25+
26+
#include <boost/config.hpp>
27+
#if defined(BOOST_HAS_PRAGMA_ONCE)
28+
#pragma once
29+
#include <boost/regex/v5/icu.hpp>
30+
#endif
31+
32+
#endif
33+
34+
#include <boost/regex/v5/match_flags.hpp>
35+
#include <boost/regex/v5/match_results.hpp>
36+
2237
namespace boost{
2338

2439
template <class BidirectionalIterator>

include/boost/regex/v5/u32regex_token_iterator.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@
1919
#ifndef BOOST_REGEX_V5_U32REGEX_TOKEN_ITERATOR_HPP
2020
#define BOOST_REGEX_V5_U32REGEX_TOKEN_ITERATOR_HPP
2121

22+
#include <boost/regex/config.hpp>
23+
24+
#ifndef BOOST_REGEX_STANDALONE
25+
26+
#include <boost/config.hpp>
27+
#if defined(BOOST_HAS_PRAGMA_ONCE)
28+
#pragma once
29+
#include <boost/regex/v5/icu.hpp>
30+
#endif
31+
32+
#endif
33+
2234
namespace boost{
2335

2436
#ifdef BOOST_REGEX_MSVC

0 commit comments

Comments
 (0)