Skip to content

Commit bcf9c61

Browse files
committed
Update for generated header files.
1 parent e4ba57d commit bcf9c61

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

include/cpp2regex.h

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,20 @@ template<typename Iter> class match_group {
240240
public: Iter end {};
241241

242242
public: bool matched {false};
243+
public: explicit match_group(auto const& start_, auto const& end_, auto const& matched_);
244+
public: explicit match_group();
245+
246+
#line 55 "regex.h2"
243247
};
244248

245249
#line 59 "regex.h2"
246250
template<typename Iter> class match_return {
247251
public: bool matched {false};
248252
public: Iter pos {};
253+
public: explicit match_return(auto const& matched_, auto const& pos_);
254+
public: explicit match_return();
255+
256+
#line 62 "regex.h2"
249257
};
250258

251259
#line 66 "regex.h2"
@@ -586,6 +594,9 @@ class parse_context_group_state {
586594
#line 412 "regex.h2"
587595
// Apply optimizations to the matcher list.
588596
public: static auto post_process_list(token_vec& list) -> void;
597+
public: explicit parse_context_group_state(auto const& cur_match_list_, auto const& alternate_match_lists_, auto const& modifiers_);
598+
public: explicit parse_context_group_state();
599+
589600

590601
#line 426 "regex.h2"
591602
};
@@ -612,6 +623,9 @@ class parse_context_branch_reset_state {
612623
#line 458 "regex.h2"
613624
// Initialize for a branch reset group.
614625
public: auto set_active_reset(cpp2::impl::in<int> restart) & -> void;
626+
public: explicit parse_context_branch_reset_state(auto const& is_active_, auto const& cur_group_, auto const& max_group_, auto const& from_);
627+
public: explicit parse_context_branch_reset_state();
628+
615629

616630
#line 465 "regex.h2"
617631
};
@@ -774,6 +788,9 @@ class generation_function_context {
774788

775789
#line 864 "regex.h2"
776790
public: auto remove_tabs(cpp2::impl::in<int> c) & -> void;
791+
public: explicit generation_function_context(auto const& code_, auto const& tabs_);
792+
public: explicit generation_function_context();
793+
777794

778795
#line 867 "regex.h2"
779796
};
@@ -1508,6 +1525,16 @@ if (((*this) & perl_code_syntax) == perl_code_syntax) {_ret += _comma + "perl_co
15081525
if (((*this) & perl_code_syntax_in_classes) == perl_code_syntax_in_classes) {_ret += _comma + "perl_code_syntax_in_classes";_comma = ", ";}
15091526
return cpp2::move(_ret) + ")";
15101527
}
1528+
1529+
template <typename Iter> match_group<Iter>::match_group(auto const& start_, auto const& end_, auto const& matched_)
1530+
: start{ start_ }
1531+
, end{ end_ }
1532+
, matched{ matched_ }{}
1533+
template <typename Iter> match_group<Iter>::match_group(){}
1534+
template <typename Iter> match_return<Iter>::match_return(auto const& matched_, auto const& pos_)
1535+
: matched{ matched_ }
1536+
, pos{ pos_ }{}
1537+
template <typename Iter> match_return<Iter>::match_return(){}
15111538
#line 30 "regex.h2"
15121539
//-----------------------------------------------------------------------
15131540
//
@@ -1903,6 +1930,12 @@ template<typename Func> [[nodiscard]] auto make_on_return(Func const& func) -> a
19031930
}
19041931
}
19051932

1933+
parse_context_group_state::parse_context_group_state(auto const& cur_match_list_, auto const& alternate_match_lists_, auto const& modifiers_)
1934+
: cur_match_list{ cur_match_list_ }
1935+
, alternate_match_lists{ alternate_match_lists_ }
1936+
, modifiers{ modifiers_ }{}
1937+
parse_context_group_state::parse_context_group_state(){}
1938+
19061939
#line 437 "regex.h2"
19071940
[[nodiscard]] auto parse_context_branch_reset_state::next() & -> int{
19081941
auto g {cur_group};
@@ -1933,6 +1966,13 @@ template<typename Func> [[nodiscard]] auto make_on_return(Func const& func) -> a
19331966
max_group = restart;
19341967
}
19351968

1969+
parse_context_branch_reset_state::parse_context_branch_reset_state(auto const& is_active_, auto const& cur_group_, auto const& max_group_, auto const& from_)
1970+
: is_active{ is_active_ }
1971+
, cur_group{ cur_group_ }
1972+
, max_group{ max_group_ }
1973+
, from{ from_ }{}
1974+
parse_context_branch_reset_state::parse_context_branch_reset_state(){}
1975+
19361976
#line 485 "regex.h2"
19371977
parse_context::parse_context(cpp2::impl::in<std::string_view> r, auto const& e)
19381978
: regex{ r }
@@ -2328,6 +2368,11 @@ template<typename Func> [[nodiscard]] auto make_on_return(Func const& func) -> a
23282368
tabs = tabs.substr(0, c * 2);
23292369
}
23302370

2371+
generation_function_context::generation_function_context(auto const& code_, auto const& tabs_)
2372+
: code{ code_ }
2373+
, tabs{ tabs_ }{}
2374+
generation_function_context::generation_function_context(){}
2375+
23312376
#line 882 "regex.h2"
23322377
[[nodiscard]] auto generation_context::match_parameters() const& -> std::string{return "r.pos, ctx"; }
23332378

source/reflect.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,9 @@ class value_member_info {
697697
public: std::string name;
698698
public: std::string type;
699699
public: std::string value;
700+
public: explicit value_member_info(auto const& name_, auto const& type_, auto const& value_);
701+
702+
#line 999 "reflect.h2"
700703
};
701704

702705
auto basic_enum(
@@ -1659,6 +1662,11 @@ auto cpp2_struct(meta::type_declaration& t) -> void
16591662
}
16601663
}
16611664

1665+
value_member_info::value_member_info(auto const& name_, auto const& type_, auto const& value_)
1666+
: name{ name_ }
1667+
, type{ type_ }
1668+
, value{ value_ }{}
1669+
16621670
#line 1001 "reflect.h2"
16631671
auto basic_enum(
16641672
meta::type_declaration& t,

0 commit comments

Comments
 (0)