Skip to content

Commit db3d34e

Browse files
committed
Header update for new version.
1 parent 33c8615 commit db3d34e

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

include/cpp2regex.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ template<typename CharT, typename Iter, int max_groups> class match_context
150150

151151
private: std::array<match_group<Iter>,max_groups> groups {};
152152

153-
public: explicit match_context(Iter const& begin_, Iter const& end_);
153+
public: match_context(Iter const& begin_, Iter const& end_);
154154

155155
#line 66 "cpp2regex.h2"
156156
public: match_context(match_context const& that);
@@ -210,7 +210,7 @@ template<typename CharT, typename Iter, int max_groups> class reverse_match_cont
210210
public: ReverseIter begin;
211211
public: ReverseIter end;
212212

213-
public: explicit reverse_match_context(auto const& forward_context_);
213+
public: reverse_match_context(auto const& forward_context_);
214214
#line 133 "cpp2regex.h2"
215215
public: auto operator=(auto const& forward_context_) -> reverse_match_context& ;
216216

@@ -288,7 +288,7 @@ template<typename Func> class on_return
288288
{
289289
private: Func func;
290290

291-
public: explicit on_return(Func const& f);
291+
public: on_return(Func const& f);
292292
#line 213 "cpp2regex.h2"
293293
public: auto operator=(Func const& f) -> on_return& ;
294294

@@ -664,10 +664,10 @@ template<typename CharT, typename matcher> class regular_expression
664664
public: context<Iter> ctx;
665665
public: int pos;
666666

667-
public: explicit search_return(cpp2::impl::in<bool> matched_, context<Iter> const& ctx_, Iter const& pos_);
667+
public: search_return(cpp2::impl::in<bool> matched_, context<Iter> const& ctx_, Iter const& pos_);
668668

669669
#line 801 "cpp2regex.h2"
670-
public: explicit search_return(Iter const& begin, Iter const& end);
670+
public: search_return(Iter const& begin, Iter const& end);
671671

672672
#line 807 "cpp2regex.h2"
673673
public: [[nodiscard]] auto group_number() const& -> decltype(auto);

source/reflect.h

+23-23
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class compiler_services
160160
private: bool metafunctions_used {false};
161161

162162
#line 44 "reflect.h2"
163-
public: explicit compiler_services(
163+
public: compiler_services(
164164

165165
std::vector<error_entry>* errors_,
166166
std::set<std::string>* includes_,
@@ -222,7 +222,7 @@ template<typename T> class reflection_base
222222
#line 193 "reflect.h2"
223223
protected: T* n;
224224

225-
protected: explicit reflection_base(
225+
protected: reflection_base(
226226

227227
T* n_,
228228
cpp2::impl::in<compiler_services> s
@@ -243,7 +243,7 @@ class declaration
243243
: public reflection_base<declaration_node> {
244244

245245
#line 226 "reflect.h2"
246-
public: explicit declaration(
246+
public: declaration(
247247

248248
declaration_node* n_,
249249
cpp2::impl::in<compiler_services> s
@@ -318,7 +318,7 @@ class function_declaration
318318
: public declaration {
319319

320320
#line 308 "reflect.h2"
321-
public: explicit function_declaration(
321+
public: function_declaration(
322322

323323
declaration_node* n_,
324324
cpp2::impl::in<compiler_services> s
@@ -388,7 +388,7 @@ class object_declaration
388388
: public declaration {
389389

390390
#line 400 "reflect.h2"
391-
public: explicit object_declaration(
391+
public: object_declaration(
392392

393393
declaration_node* n_,
394394
cpp2::impl::in<compiler_services> s
@@ -413,7 +413,7 @@ class type_declaration
413413
: public declaration {
414414

415415
#line 436 "reflect.h2"
416-
public: explicit type_declaration(
416+
public: type_declaration(
417417

418418
declaration_node* n_,
419419
cpp2::impl::in<compiler_services> s
@@ -468,7 +468,7 @@ class alias_declaration
468468
: public declaration {
469469

470470
#line 574 "reflect.h2"
471-
public: explicit alias_declaration(
471+
public: alias_declaration(
472472

473473
declaration_node* n_,
474474
cpp2::impl::in<compiler_services> s
@@ -484,7 +484,7 @@ class statement
484484
: public reflection_base<statement_node> {
485485

486486
#line 600 "reflect.h2"
487-
public: explicit statement(
487+
public: statement(
488488

489489
statement_node* n_,
490490
cpp2::impl::in<compiler_services> s
@@ -518,7 +518,7 @@ class compound_statement
518518
: public reflection_base<compound_statement_node> {
519519

520520
#line 642 "reflect.h2"
521-
public: explicit compound_statement(
521+
public: compound_statement(
522522

523523
compound_statement_node* n_,
524524
cpp2::impl::in<compiler_services> s
@@ -660,7 +660,7 @@ class regex_token
660660
{
661661
public: std::string string_rep;
662662

663-
public: explicit regex_token(cpp2::impl::in<std::string> str);
663+
public: regex_token(cpp2::impl::in<std::string> str);
664664

665665
#line 1672 "reflect.h2"
666666
public: explicit regex_token();
@@ -692,7 +692,7 @@ class regex_token_check
692692
#line 1695 "reflect.h2"
693693
private: std::string check;
694694

695-
public: explicit regex_token_check(cpp2::impl::in<std::string> str, cpp2::impl::in<std::string> check_);
695+
public: regex_token_check(cpp2::impl::in<std::string> str, cpp2::impl::in<std::string> check_);
696696

697697
#line 1702 "reflect.h2"
698698
public: auto generate_code(generation_context& ctx) const -> void override;
@@ -716,7 +716,7 @@ class regex_token_code
716716
#line 1716 "reflect.h2"
717717
private: std::string code;
718718

719-
public: explicit regex_token_code(cpp2::impl::in<std::string> str, cpp2::impl::in<std::string> code_);
719+
public: regex_token_code(cpp2::impl::in<std::string> str, cpp2::impl::in<std::string> code_);
720720

721721
#line 1723 "reflect.h2"
722722
public: auto generate_code(generation_context& ctx) const -> void override;
@@ -738,7 +738,7 @@ class regex_token_empty
738738
: public regex_token {
739739

740740
#line 1737 "reflect.h2"
741-
public: explicit regex_token_empty(cpp2::impl::in<std::string> str);
741+
public: regex_token_empty(cpp2::impl::in<std::string> str);
742742

743743
#line 1741 "reflect.h2"
744744
public: auto generate_code([[maybe_unused]] generation_context& unnamed_param_2) const -> void override;
@@ -762,7 +762,7 @@ class regex_token_list
762762
#line 1755 "reflect.h2"
763763
public: token_vec tokens;
764764

765-
public: explicit regex_token_list(cpp2::impl::in<token_vec> t);
765+
public: regex_token_list(cpp2::impl::in<token_vec> t);
766766

767767
#line 1762 "reflect.h2"
768768
public: auto generate_code(generation_context& ctx) const -> void override;
@@ -879,7 +879,7 @@ class parse_context
879879
private: error_func error_out; // TODO: Declaring std::function<void(std::string)> fails for cpp2.
880880
private: bool has_error {false};
881881

882-
public: explicit parse_context(cpp2::impl::in<std::string_view> r, auto const& e);
882+
public: parse_context(cpp2::impl::in<std::string_view> r, auto const& e);
883883

884884
#line 1930 "reflect.h2"
885885
// State management functions
@@ -1142,7 +1142,7 @@ class alternative_token_gen
11421142
#line 2544 "reflect.h2"
11431143
private: token_vec alternatives;
11441144

1145-
public: explicit alternative_token_gen(cpp2::impl::in<token_vec> a);
1145+
public: alternative_token_gen(cpp2::impl::in<token_vec> a);
11461146

11471147
#line 2551 "reflect.h2"
11481148
public: auto generate_code(generation_context& ctx) const -> void override;
@@ -1171,7 +1171,7 @@ class any_token
11711171
: public regex_token_check {
11721172

11731173
#line 2609 "reflect.h2"
1174-
public: explicit any_token(cpp2::impl::in<bool> single_line);
1174+
public: any_token(cpp2::impl::in<bool> single_line);
11751175

11761176
#line 2613 "reflect.h2"
11771177
public: [[nodiscard]] static auto parse(parse_context& ctx) -> token_ptr;
@@ -1219,10 +1219,10 @@ class char_token
12191219
private: std::string token;
12201220
private: bool ignore_case;
12211221

1222-
public: explicit char_token(cpp2::impl::in<char> t, cpp2::impl::in<bool> ignore_case_);
1222+
public: char_token(cpp2::impl::in<char> t, cpp2::impl::in<bool> ignore_case_);
12231223

12241224
#line 2665 "reflect.h2"
1225-
public: explicit char_token(cpp2::impl::in<std::string> t, cpp2::impl::in<bool> ignore_case_);
1225+
public: char_token(cpp2::impl::in<std::string> t, cpp2::impl::in<bool> ignore_case_);
12261226

12271227
#line 2671 "reflect.h2"
12281228
public: [[nodiscard]] static auto parse(parse_context& ctx) -> token_ptr;
@@ -1264,7 +1264,7 @@ class class_token
12641264
private: bool case_insensitive;
12651265
private: std::string class_str;
12661266

1267-
public: explicit class_token(cpp2::impl::in<bool> negate_, cpp2::impl::in<bool> case_insensitive_, cpp2::impl::in<std::string> class_str_, cpp2::impl::in<std::string> str);
1267+
public: class_token(cpp2::impl::in<bool> negate_, cpp2::impl::in<bool> case_insensitive_, cpp2::impl::in<std::string> class_str_, cpp2::impl::in<std::string> str);
12681268

12691269
#line 2783 "reflect.h2"
12701270
// TODO: Rework class generation: Generate check functions for classes.
@@ -1312,7 +1312,7 @@ class group_ref_token
13121312
private: bool case_insensitive;
13131313
private: bool reverse_eval;
13141314

1315-
public: explicit group_ref_token(cpp2::impl::in<int> id_, cpp2::impl::in<bool> case_insensitive_, cpp2::impl::in<bool> reverse_, cpp2::impl::in<std::string> str);
1315+
public: group_ref_token(cpp2::impl::in<int> id_, cpp2::impl::in<bool> case_insensitive_, cpp2::impl::in<bool> reverse_, cpp2::impl::in<std::string> str);
13161316

13171317
#line 3007 "reflect.h2"
13181318
public: [[nodiscard]] static auto parse(parse_context& ctx) -> token_ptr;
@@ -1407,7 +1407,7 @@ class lookahead_lookbehind_token
14071407
protected: bool positive;
14081408
public: token_ptr inner {nullptr};
14091409

1410-
public: explicit lookahead_lookbehind_token(cpp2::impl::in<bool> lookahead_, cpp2::impl::in<bool> positive_);
1410+
public: lookahead_lookbehind_token(cpp2::impl::in<bool> lookahead_, cpp2::impl::in<bool> positive_);
14111411

14121412
#line 3488 "reflect.h2"
14131413
public: auto generate_code(generation_context& ctx) const -> void override;
@@ -1528,7 +1528,7 @@ template<typename Error_out> class regex_generator
15281528

15291529
private: std::string source {""};
15301530

1531-
public: explicit regex_generator(cpp2::impl::in<std::string_view> r, Error_out const& e);
1531+
public: regex_generator(cpp2::impl::in<std::string_view> r, Error_out const& e);
15321532

15331533
#line 3828 "reflect.h2"
15341534
public: [[nodiscard]] auto parse() & -> std::string;

0 commit comments

Comments
 (0)