Skip to content

Commit

Permalink
#include cleanup (#231)
Browse files Browse the repository at this point in the history
* update library headers to have self-contained #includes

* update gha ci to run for feature/** branches
  • Loading branch information
cmazakas authored Nov 23, 2024
1 parent 9a8d2b1 commit f0afa5d
Show file tree
Hide file tree
Showing 25 changed files with 143 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
branches:
- master
- develop
- feature/**
pull_request:
release:
types: [published, created, edited]
Expand Down
9 changes: 9 additions & 0 deletions include/boost/regex/v5/basic_regex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
#ifndef BOOST_REGEX_V5_BASIC_REGEX_HPP
#define BOOST_REGEX_V5_BASIC_REGEX_HPP

#include <boost/regex/v5/regbase.hpp>
#include <boost/regex/v5/syntax_type.hpp>
#include <boost/regex/v5/regex_traits.hpp>
#include <boost/regex/v5/states.hpp>
#include <boost/regex/v5/regex_raw_buffer.hpp>

#include <algorithm>
#include <limits>
#include <memory>
#include <vector>

namespace boost{
Expand Down
3 changes: 3 additions & 0 deletions include/boost/regex/v5/basic_regex_creator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
#endif
#endif

#include <boost/regex/v5/basic_regex.hpp>

#include <vector>
#include <set>

namespace boost{
Expand Down
7 changes: 7 additions & 0 deletions include/boost/regex/v5/basic_regex_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
#ifndef BOOST_REGEX_V5_BASIC_REGEX_PARSER_HPP
#define BOOST_REGEX_V5_BASIC_REGEX_PARSER_HPP

#include <boost/regex/v5/basic_regex_creator.hpp>

#include <climits>
#include <cstdint>
#include <limits>
#include <type_traits>

namespace boost{
namespace BOOST_REGEX_DETAIL_NS{

Expand Down
5 changes: 5 additions & 0 deletions include/boost/regex/v5/c_regex_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@

#include <boost/regex/config.hpp>
#include <boost/regex/v5/regex_workaround.hpp>
#include <boost/regex/v5/primary_transform.hpp>
#include <boost/regex/v5/regex_traits_defaults.hpp>

#include <cctype>
#include <cstdint>
#include <cwctype>

namespace boost{

Expand Down
2 changes: 2 additions & 0 deletions include/boost/regex/v5/char_regex_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#ifndef BOOST_REGEX_V5_CHAR_REGEX_TRAITS_HPP
#define BOOST_REGEX_V5_CHAR_REGEX_TRAITS_HPP

#include <boost/regex/v5/regex_traits.hpp>

namespace boost{

namespace deprecated{
Expand Down
2 changes: 2 additions & 0 deletions include/boost/regex/v5/iterator_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef BOOST_REGEX_V5_ITERATOR_TRAITS_HPP
#define BOOST_REGEX_V5_ITERATOR_TRAITS_HPP

#include <iterator>

namespace boost{
namespace BOOST_REGEX_DETAIL_NS{

Expand Down
8 changes: 8 additions & 0 deletions include/boost/regex/v5/match_results.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
#ifndef BOOST_REGEX_V5_MATCH_RESULTS_HPP
#define BOOST_REGEX_V5_MATCH_RESULTS_HPP

#include <boost/regex/v5/match_flags.hpp>
#include <boost/regex/v5/sub_match.hpp>
#include <boost/regex/v5/basic_regex.hpp>
#include <boost/regex/v5/regex_format.hpp>

#include <string>
#include <vector>

namespace boost{
#ifdef BOOST_REGEX_MSVC
#pragma warning(push)
Expand Down
3 changes: 3 additions & 0 deletions include/boost/regex/v5/mem_block_cache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#ifndef BOOST_REGEX_V5_MEM_BLOCK_CACHE_HPP
#define BOOST_REGEX_V5_MEM_BLOCK_CACHE_HPP

#include <boost/regex/config.hpp>

#include <new>
#ifdef BOOST_HAS_THREADS
#include <mutex>
Expand All @@ -31,6 +33,7 @@
#endif
#endif


namespace boost{
namespace BOOST_REGEX_DETAIL_NS{

Expand Down
11 changes: 11 additions & 0 deletions include/boost/regex/v5/perl_matcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,18 @@
#ifndef BOOST_REGEX_MATCHER_HPP
#define BOOST_REGEX_MATCHER_HPP

#include <boost/regex/v5/match_flags.hpp>
#include <boost/regex/v5/match_results.hpp>
#include <boost/regex/v5/regbase.hpp>
#include <boost/regex/v5/iterator_category.hpp>
#include <boost/regex/v5/states.hpp>
#include <boost/regex/v5/regex_traits.hpp>

#ifndef BOOST_REGEX_STANDALONE
#include <boost/throw_exception.hpp>
#endif

#include <climits>

#ifdef BOOST_REGEX_MSVC
# pragma warning(push)
Expand Down
16 changes: 16 additions & 0 deletions include/boost/regex/v5/perl_matcher_common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@
#ifndef BOOST_REGEX_V5_PERL_MATCHER_COMMON_HPP
#define BOOST_REGEX_V5_PERL_MATCHER_COMMON_HPP

#include <boost/regex/config.hpp>

#ifndef BOOST_REGEX_STANDALONE

#include <boost/config.hpp>
#if defined(BOOST_HAS_PRAGMA_ONCE)
#pragma once
#include <boost/regex/v5/perl_matcher.hpp>
#endif

#endif

#include <boost/regex/v5/basic_regex.hpp>
#include <boost/regex/v5/match_flags.hpp>
#include <boost/regex/v5/match_results.hpp>

#ifdef BOOST_REGEX_MSVC
# pragma warning(push)
#pragma warning(disable:4459)
Expand Down
12 changes: 12 additions & 0 deletions include/boost/regex/v5/perl_matcher_non_recursive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
#ifndef BOOST_REGEX_V5_PERL_MATCHER_NON_RECURSIVE_HPP
#define BOOST_REGEX_V5_PERL_MATCHER_NON_RECURSIVE_HPP

#include <boost/regex/config.hpp>

#ifndef BOOST_REGEX_STANDALONE

#include <boost/config.hpp>
#if defined(BOOST_HAS_PRAGMA_ONCE)
#pragma once
#include <boost/regex/v5/perl_matcher.hpp>
#endif

#endif

#include <boost/regex/v5/mem_block_cache.hpp>

#ifdef BOOST_REGEX_MSVC
Expand Down
4 changes: 4 additions & 0 deletions include/boost/regex/v5/regex_format.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
#ifndef BOOST_REGEX_FORMAT_HPP
#define BOOST_REGEX_FORMAT_HPP

#include <boost/regex/v5/match_flags.hpp>
#include <boost/regex/v5/sub_match.hpp>
#include <boost/regex/v5/regex_traits_defaults.hpp>

#include <type_traits>
#include <functional>

Expand Down
4 changes: 4 additions & 0 deletions include/boost/regex/v5/regex_grep.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#ifndef BOOST_REGEX_V5_REGEX_GREP_HPP
#define BOOST_REGEX_V5_REGEX_GREP_HPP

#include <boost/regex/v5/basic_regex.hpp>
#include <boost/regex/v5/match_flags.hpp>
#include <boost/regex/v5/match_results.hpp>
#include <boost/regex/v5/perl_matcher.hpp>

namespace boost{

Expand Down
3 changes: 3 additions & 0 deletions include/boost/regex/v5/regex_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#ifndef BOOST_REGEX_V5_REGEX_ITERATOR_HPP
#define BOOST_REGEX_V5_REGEX_ITERATOR_HPP

#include <boost/regex/v5/basic_regex.hpp>
#include <boost/regex/v5/match_results.hpp>

#include <memory>

namespace boost{
Expand Down
3 changes: 3 additions & 0 deletions include/boost/regex/v5/regex_match.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#ifndef BOOST_REGEX_MATCH_HPP
#define BOOST_REGEX_MATCH_HPP

#include <boost/regex/v5/match_results.hpp>
#include <boost/regex/v5/perl_matcher.hpp>

namespace boost{

//
Expand Down
1 change: 1 addition & 0 deletions include/boost/regex/v5/regex_raw_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

#include <algorithm>
#include <cstddef>
#include <cstring>

namespace boost{
namespace BOOST_REGEX_DETAIL_NS{
Expand Down
4 changes: 4 additions & 0 deletions include/boost/regex/v5/regex_replace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#define BOOST_REGEX_V5_REGEX_REPLACE_HPP


#include <boost/regex/v5/basic_regex.hpp>
#include <boost/regex/v5/match_flags.hpp>
#include <boost/regex/v5/regex_iterator.hpp>

namespace boost{

template <class OutputIterator, class BidirectionalIterator, class traits, class charT, class Formatter>
Expand Down
3 changes: 3 additions & 0 deletions include/boost/regex/v5/regex_search.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
#define BOOST_REGEX_V5_REGEX_SEARCH_HPP


#include <boost/regex/v5/match_results.hpp>
#include <boost/regex/v5/perl_matcher.hpp>

namespace boost{

template <class BidiIterator, class Allocator, class charT, class traits>
Expand Down
3 changes: 3 additions & 0 deletions include/boost/regex/v5/regex_split.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#ifndef BOOST_REGEX_SPLIT_HPP
#define BOOST_REGEX_SPLIT_HPP

#include <boost/regex/v5/basic_regex.hpp>
#include <boost/regex/v5/match_results.hpp>

namespace boost{

#ifdef BOOST_REGEX_MSVC
Expand Down
4 changes: 4 additions & 0 deletions include/boost/regex/v5/regex_token_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#ifndef BOOST_REGEX_V5_REGEX_TOKEN_ITERATOR_HPP
#define BOOST_REGEX_V5_REGEX_TOKEN_ITERATOR_HPP

#include <boost/regex/v5/basic_regex.hpp>
#include <boost/regex/v5/match_results.hpp>
#include <boost/regex/v5/sub_match.hpp>

#include <memory>

namespace boost{
Expand Down
5 changes: 5 additions & 0 deletions include/boost/regex/v5/states.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
#ifndef BOOST_REGEX_V5_STATES_HPP
#define BOOST_REGEX_V5_STATES_HPP

#include <boost/regex/v5/regex_raw_buffer.hpp>

#include <climits>
#include <cstddef>

namespace boost{
namespace BOOST_REGEX_DETAIL_NS{

Expand Down
3 changes: 3 additions & 0 deletions include/boost/regex/v5/sub_match.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
#ifndef BOOST_REGEX_V5_SUB_MATCH_HPP
#define BOOST_REGEX_V5_SUB_MATCH_HPP

#include <iterator>
#include <utility>

namespace boost{

template <class BidiIterator>
Expand Down
15 changes: 15 additions & 0 deletions include/boost/regex/v5/u32regex_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@
#ifndef BOOST_REGEX_V5_U32REGEX_ITERATOR_HPP
#define BOOST_REGEX_V5_U32REGEX_ITERATOR_HPP

#include <boost/regex/config.hpp>

#ifndef BOOST_REGEX_STANDALONE

#include <boost/config.hpp>
#if defined(BOOST_HAS_PRAGMA_ONCE)
#pragma once
#include <boost/regex/v5/icu.hpp>
#endif

#endif

#include <boost/regex/v5/match_flags.hpp>
#include <boost/regex/v5/match_results.hpp>

namespace boost{

template <class BidirectionalIterator>
Expand Down
12 changes: 12 additions & 0 deletions include/boost/regex/v5/u32regex_token_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@
#ifndef BOOST_REGEX_V5_U32REGEX_TOKEN_ITERATOR_HPP
#define BOOST_REGEX_V5_U32REGEX_TOKEN_ITERATOR_HPP

#include <boost/regex/config.hpp>

#ifndef BOOST_REGEX_STANDALONE

#include <boost/config.hpp>
#if defined(BOOST_HAS_PRAGMA_ONCE)
#pragma once
#include <boost/regex/v5/icu.hpp>
#endif

#endif

namespace boost{

#ifdef BOOST_REGEX_MSVC
Expand Down

0 comments on commit f0afa5d

Please sign in to comment.