From f0afa5d9b870f2211a937c437357a5e75cb534d2 Mon Sep 17 00:00:00 2001 From: Christian Mazakas <5543573+cmazakas@users.noreply.github.com> Date: Sat, 23 Nov 2024 03:10:27 -0800 Subject: [PATCH] #include cleanup (#231) * update library headers to have self-contained #includes * update gha ci to run for feature/** branches --- .github/workflows/ci.yml | 1 + include/boost/regex/v5/basic_regex.hpp | 9 +++++++++ include/boost/regex/v5/basic_regex_creator.hpp | 3 +++ include/boost/regex/v5/basic_regex_parser.hpp | 7 +++++++ include/boost/regex/v5/c_regex_traits.hpp | 5 +++++ include/boost/regex/v5/char_regex_traits.hpp | 2 ++ include/boost/regex/v5/iterator_traits.hpp | 2 ++ include/boost/regex/v5/match_results.hpp | 8 ++++++++ include/boost/regex/v5/mem_block_cache.hpp | 3 +++ include/boost/regex/v5/perl_matcher.hpp | 11 +++++++++++ include/boost/regex/v5/perl_matcher_common.hpp | 16 ++++++++++++++++ .../regex/v5/perl_matcher_non_recursive.hpp | 12 ++++++++++++ include/boost/regex/v5/regex_format.hpp | 4 ++++ include/boost/regex/v5/regex_grep.hpp | 4 ++++ include/boost/regex/v5/regex_iterator.hpp | 3 +++ include/boost/regex/v5/regex_match.hpp | 3 +++ include/boost/regex/v5/regex_raw_buffer.hpp | 1 + include/boost/regex/v5/regex_replace.hpp | 4 ++++ include/boost/regex/v5/regex_search.hpp | 3 +++ include/boost/regex/v5/regex_split.hpp | 3 +++ include/boost/regex/v5/regex_token_iterator.hpp | 4 ++++ include/boost/regex/v5/states.hpp | 5 +++++ include/boost/regex/v5/sub_match.hpp | 3 +++ include/boost/regex/v5/u32regex_iterator.hpp | 15 +++++++++++++++ .../boost/regex/v5/u32regex_token_iterator.hpp | 12 ++++++++++++ 25 files changed, 143 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5222c87d6..61dbb63e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,7 @@ on: branches: - master - develop + - feature/** pull_request: release: types: [published, created, edited] diff --git a/include/boost/regex/v5/basic_regex.hpp b/include/boost/regex/v5/basic_regex.hpp index c09151ffe..b611a5289 100644 --- a/include/boost/regex/v5/basic_regex.hpp +++ b/include/boost/regex/v5/basic_regex.hpp @@ -19,6 +19,15 @@ #ifndef BOOST_REGEX_V5_BASIC_REGEX_HPP #define BOOST_REGEX_V5_BASIC_REGEX_HPP +#include +#include +#include +#include +#include + +#include +#include +#include #include namespace boost{ diff --git a/include/boost/regex/v5/basic_regex_creator.hpp b/include/boost/regex/v5/basic_regex_creator.hpp index 6e49ffe9b..7e4ffcaca 100644 --- a/include/boost/regex/v5/basic_regex_creator.hpp +++ b/include/boost/regex/v5/basic_regex_creator.hpp @@ -28,6 +28,9 @@ #endif #endif +#include + +#include #include namespace boost{ diff --git a/include/boost/regex/v5/basic_regex_parser.hpp b/include/boost/regex/v5/basic_regex_parser.hpp index 34d775ef8..16e78849d 100644 --- a/include/boost/regex/v5/basic_regex_parser.hpp +++ b/include/boost/regex/v5/basic_regex_parser.hpp @@ -19,6 +19,13 @@ #ifndef BOOST_REGEX_V5_BASIC_REGEX_PARSER_HPP #define BOOST_REGEX_V5_BASIC_REGEX_PARSER_HPP +#include + +#include +#include +#include +#include + namespace boost{ namespace BOOST_REGEX_DETAIL_NS{ diff --git a/include/boost/regex/v5/c_regex_traits.hpp b/include/boost/regex/v5/c_regex_traits.hpp index 9de346325..c22ce35cd 100644 --- a/include/boost/regex/v5/c_regex_traits.hpp +++ b/include/boost/regex/v5/c_regex_traits.hpp @@ -21,7 +21,12 @@ #include #include +#include +#include + #include +#include +#include namespace boost{ diff --git a/include/boost/regex/v5/char_regex_traits.hpp b/include/boost/regex/v5/char_regex_traits.hpp index aeed86f83..41fe420ba 100644 --- a/include/boost/regex/v5/char_regex_traits.hpp +++ b/include/boost/regex/v5/char_regex_traits.hpp @@ -20,6 +20,8 @@ #ifndef BOOST_REGEX_V5_CHAR_REGEX_TRAITS_HPP #define BOOST_REGEX_V5_CHAR_REGEX_TRAITS_HPP +#include + namespace boost{ namespace deprecated{ diff --git a/include/boost/regex/v5/iterator_traits.hpp b/include/boost/regex/v5/iterator_traits.hpp index 293db6bf8..b25375652 100644 --- a/include/boost/regex/v5/iterator_traits.hpp +++ b/include/boost/regex/v5/iterator_traits.hpp @@ -19,6 +19,8 @@ #ifndef BOOST_REGEX_V5_ITERATOR_TRAITS_HPP #define BOOST_REGEX_V5_ITERATOR_TRAITS_HPP +#include + namespace boost{ namespace BOOST_REGEX_DETAIL_NS{ diff --git a/include/boost/regex/v5/match_results.hpp b/include/boost/regex/v5/match_results.hpp index eb54e0c30..78fbeb335 100644 --- a/include/boost/regex/v5/match_results.hpp +++ b/include/boost/regex/v5/match_results.hpp @@ -19,6 +19,14 @@ #ifndef BOOST_REGEX_V5_MATCH_RESULTS_HPP #define BOOST_REGEX_V5_MATCH_RESULTS_HPP +#include +#include +#include +#include + +#include +#include + namespace boost{ #ifdef BOOST_REGEX_MSVC #pragma warning(push) diff --git a/include/boost/regex/v5/mem_block_cache.hpp b/include/boost/regex/v5/mem_block_cache.hpp index 3e1216d06..d42e4a32b 100644 --- a/include/boost/regex/v5/mem_block_cache.hpp +++ b/include/boost/regex/v5/mem_block_cache.hpp @@ -18,6 +18,8 @@ #ifndef BOOST_REGEX_V5_MEM_BLOCK_CACHE_HPP #define BOOST_REGEX_V5_MEM_BLOCK_CACHE_HPP +#include + #include #ifdef BOOST_HAS_THREADS #include @@ -31,6 +33,7 @@ #endif #endif + namespace boost{ namespace BOOST_REGEX_DETAIL_NS{ diff --git a/include/boost/regex/v5/perl_matcher.hpp b/include/boost/regex/v5/perl_matcher.hpp index deeffa589..e48171085 100644 --- a/include/boost/regex/v5/perl_matcher.hpp +++ b/include/boost/regex/v5/perl_matcher.hpp @@ -12,7 +12,18 @@ #ifndef BOOST_REGEX_MATCHER_HPP #define BOOST_REGEX_MATCHER_HPP +#include +#include +#include #include +#include +#include + +#ifndef BOOST_REGEX_STANDALONE +#include +#endif + +#include #ifdef BOOST_REGEX_MSVC # pragma warning(push) diff --git a/include/boost/regex/v5/perl_matcher_common.hpp b/include/boost/regex/v5/perl_matcher_common.hpp index dcce9e6ac..4e9119e3e 100644 --- a/include/boost/regex/v5/perl_matcher_common.hpp +++ b/include/boost/regex/v5/perl_matcher_common.hpp @@ -20,6 +20,22 @@ #ifndef BOOST_REGEX_V5_PERL_MATCHER_COMMON_HPP #define BOOST_REGEX_V5_PERL_MATCHER_COMMON_HPP +#include + +#ifndef BOOST_REGEX_STANDALONE + +#include +#if defined(BOOST_HAS_PRAGMA_ONCE) +#pragma once +#include +#endif + +#endif + +#include +#include +#include + #ifdef BOOST_REGEX_MSVC # pragma warning(push) #pragma warning(disable:4459) diff --git a/include/boost/regex/v5/perl_matcher_non_recursive.hpp b/include/boost/regex/v5/perl_matcher_non_recursive.hpp index 92f6eb624..874004521 100644 --- a/include/boost/regex/v5/perl_matcher_non_recursive.hpp +++ b/include/boost/regex/v5/perl_matcher_non_recursive.hpp @@ -20,6 +20,18 @@ #ifndef BOOST_REGEX_V5_PERL_MATCHER_NON_RECURSIVE_HPP #define BOOST_REGEX_V5_PERL_MATCHER_NON_RECURSIVE_HPP +#include + +#ifndef BOOST_REGEX_STANDALONE + +#include +#if defined(BOOST_HAS_PRAGMA_ONCE) +#pragma once +#include +#endif + +#endif + #include #ifdef BOOST_REGEX_MSVC diff --git a/include/boost/regex/v5/regex_format.hpp b/include/boost/regex/v5/regex_format.hpp index 9741296dd..31bbfee48 100644 --- a/include/boost/regex/v5/regex_format.hpp +++ b/include/boost/regex/v5/regex_format.hpp @@ -21,6 +21,10 @@ #ifndef BOOST_REGEX_FORMAT_HPP #define BOOST_REGEX_FORMAT_HPP +#include +#include +#include + #include #include diff --git a/include/boost/regex/v5/regex_grep.hpp b/include/boost/regex/v5/regex_grep.hpp index 6cd625d60..63f750d5b 100644 --- a/include/boost/regex/v5/regex_grep.hpp +++ b/include/boost/regex/v5/regex_grep.hpp @@ -19,6 +19,10 @@ #ifndef BOOST_REGEX_V5_REGEX_GREP_HPP #define BOOST_REGEX_V5_REGEX_GREP_HPP +#include +#include +#include +#include namespace boost{ diff --git a/include/boost/regex/v5/regex_iterator.hpp b/include/boost/regex/v5/regex_iterator.hpp index b2e9d2ced..17a20ac3a 100644 --- a/include/boost/regex/v5/regex_iterator.hpp +++ b/include/boost/regex/v5/regex_iterator.hpp @@ -19,6 +19,9 @@ #ifndef BOOST_REGEX_V5_REGEX_ITERATOR_HPP #define BOOST_REGEX_V5_REGEX_ITERATOR_HPP +#include +#include + #include namespace boost{ diff --git a/include/boost/regex/v5/regex_match.hpp b/include/boost/regex/v5/regex_match.hpp index 217535769..c2f818145 100644 --- a/include/boost/regex/v5/regex_match.hpp +++ b/include/boost/regex/v5/regex_match.hpp @@ -22,6 +22,9 @@ #ifndef BOOST_REGEX_MATCH_HPP #define BOOST_REGEX_MATCH_HPP +#include +#include + namespace boost{ // diff --git a/include/boost/regex/v5/regex_raw_buffer.hpp b/include/boost/regex/v5/regex_raw_buffer.hpp index 443c57a25..732955a25 100644 --- a/include/boost/regex/v5/regex_raw_buffer.hpp +++ b/include/boost/regex/v5/regex_raw_buffer.hpp @@ -27,6 +27,7 @@ #include #include +#include namespace boost{ namespace BOOST_REGEX_DETAIL_NS{ diff --git a/include/boost/regex/v5/regex_replace.hpp b/include/boost/regex/v5/regex_replace.hpp index 75f8894fe..6cdaee82a 100644 --- a/include/boost/regex/v5/regex_replace.hpp +++ b/include/boost/regex/v5/regex_replace.hpp @@ -22,6 +22,10 @@ #define BOOST_REGEX_V5_REGEX_REPLACE_HPP +#include +#include +#include + namespace boost{ template diff --git a/include/boost/regex/v5/regex_search.hpp b/include/boost/regex/v5/regex_search.hpp index d0addb194..8eac23cf5 100644 --- a/include/boost/regex/v5/regex_search.hpp +++ b/include/boost/regex/v5/regex_search.hpp @@ -20,6 +20,9 @@ #define BOOST_REGEX_V5_REGEX_SEARCH_HPP +#include +#include + namespace boost{ template diff --git a/include/boost/regex/v5/regex_split.hpp b/include/boost/regex/v5/regex_split.hpp index 8d9328964..80e302106 100644 --- a/include/boost/regex/v5/regex_split.hpp +++ b/include/boost/regex/v5/regex_split.hpp @@ -21,6 +21,9 @@ #ifndef BOOST_REGEX_SPLIT_HPP #define BOOST_REGEX_SPLIT_HPP +#include +#include + namespace boost{ #ifdef BOOST_REGEX_MSVC diff --git a/include/boost/regex/v5/regex_token_iterator.hpp b/include/boost/regex/v5/regex_token_iterator.hpp index 16832746f..4fbf52463 100644 --- a/include/boost/regex/v5/regex_token_iterator.hpp +++ b/include/boost/regex/v5/regex_token_iterator.hpp @@ -19,6 +19,10 @@ #ifndef BOOST_REGEX_V5_REGEX_TOKEN_ITERATOR_HPP #define BOOST_REGEX_V5_REGEX_TOKEN_ITERATOR_HPP +#include +#include +#include + #include namespace boost{ diff --git a/include/boost/regex/v5/states.hpp b/include/boost/regex/v5/states.hpp index 60fc99d0a..942f0c3a8 100644 --- a/include/boost/regex/v5/states.hpp +++ b/include/boost/regex/v5/states.hpp @@ -19,6 +19,11 @@ #ifndef BOOST_REGEX_V5_STATES_HPP #define BOOST_REGEX_V5_STATES_HPP +#include + +#include +#include + namespace boost{ namespace BOOST_REGEX_DETAIL_NS{ diff --git a/include/boost/regex/v5/sub_match.hpp b/include/boost/regex/v5/sub_match.hpp index aa61b560d..630070dc3 100644 --- a/include/boost/regex/v5/sub_match.hpp +++ b/include/boost/regex/v5/sub_match.hpp @@ -19,6 +19,9 @@ #ifndef BOOST_REGEX_V5_SUB_MATCH_HPP #define BOOST_REGEX_V5_SUB_MATCH_HPP +#include +#include + namespace boost{ template diff --git a/include/boost/regex/v5/u32regex_iterator.hpp b/include/boost/regex/v5/u32regex_iterator.hpp index 608cd176b..b7ac61a1b 100644 --- a/include/boost/regex/v5/u32regex_iterator.hpp +++ b/include/boost/regex/v5/u32regex_iterator.hpp @@ -19,6 +19,21 @@ #ifndef BOOST_REGEX_V5_U32REGEX_ITERATOR_HPP #define BOOST_REGEX_V5_U32REGEX_ITERATOR_HPP +#include + +#ifndef BOOST_REGEX_STANDALONE + +#include +#if defined(BOOST_HAS_PRAGMA_ONCE) +#pragma once +#include +#endif + +#endif + +#include +#include + namespace boost{ template diff --git a/include/boost/regex/v5/u32regex_token_iterator.hpp b/include/boost/regex/v5/u32regex_token_iterator.hpp index 3d3032652..ea30de7c9 100644 --- a/include/boost/regex/v5/u32regex_token_iterator.hpp +++ b/include/boost/regex/v5/u32regex_token_iterator.hpp @@ -19,6 +19,18 @@ #ifndef BOOST_REGEX_V5_U32REGEX_TOKEN_ITERATOR_HPP #define BOOST_REGEX_V5_U32REGEX_TOKEN_ITERATOR_HPP +#include + +#ifndef BOOST_REGEX_STANDALONE + +#include +#if defined(BOOST_HAS_PRAGMA_ONCE) +#pragma once +#include +#endif + +#endif + namespace boost{ #ifdef BOOST_REGEX_MSVC