@@ -160,7 +160,7 @@ class compiler_services
160
160
private: bool metafunctions_used {false };
161
161
162
162
#line 44 "reflect.h2"
163
- public: explicit compiler_services (
163
+ public: compiler_services(
164
164
165
165
std::vector<error_entry>* errors_,
166
166
std::set<std::string>* includes_,
@@ -222,7 +222,7 @@ template<typename T> class reflection_base
222
222
#line 193 "reflect.h2"
223
223
protected: T* n;
224
224
225
- protected: explicit reflection_base (
225
+ protected: reflection_base(
226
226
227
227
T* n_,
228
228
cpp2::impl::in<compiler_services> s
@@ -243,7 +243,7 @@ class declaration
243
243
: public reflection_base<declaration_node> {
244
244
245
245
#line 226 "reflect.h2"
246
- public: explicit declaration (
246
+ public: declaration(
247
247
248
248
declaration_node* n_,
249
249
cpp2::impl::in<compiler_services> s
@@ -318,7 +318,7 @@ class function_declaration
318
318
: public declaration {
319
319
320
320
#line 308 "reflect.h2"
321
- public: explicit function_declaration (
321
+ public: function_declaration(
322
322
323
323
declaration_node* n_,
324
324
cpp2::impl::in<compiler_services> s
@@ -388,7 +388,7 @@ class object_declaration
388
388
: public declaration {
389
389
390
390
#line 400 "reflect.h2"
391
- public: explicit object_declaration (
391
+ public: object_declaration(
392
392
393
393
declaration_node* n_,
394
394
cpp2::impl::in<compiler_services> s
@@ -413,7 +413,7 @@ class type_declaration
413
413
: public declaration {
414
414
415
415
#line 436 "reflect.h2"
416
- public: explicit type_declaration (
416
+ public: type_declaration(
417
417
418
418
declaration_node* n_,
419
419
cpp2::impl::in<compiler_services> s
@@ -468,7 +468,7 @@ class alias_declaration
468
468
: public declaration {
469
469
470
470
#line 574 "reflect.h2"
471
- public: explicit alias_declaration (
471
+ public: alias_declaration(
472
472
473
473
declaration_node* n_,
474
474
cpp2::impl::in<compiler_services> s
@@ -484,7 +484,7 @@ class statement
484
484
: public reflection_base<statement_node> {
485
485
486
486
#line 600 "reflect.h2"
487
- public: explicit statement (
487
+ public: statement(
488
488
489
489
statement_node* n_,
490
490
cpp2::impl::in<compiler_services> s
@@ -518,7 +518,7 @@ class compound_statement
518
518
: public reflection_base<compound_statement_node> {
519
519
520
520
#line 642 "reflect.h2"
521
- public: explicit compound_statement (
521
+ public: compound_statement(
522
522
523
523
compound_statement_node* n_,
524
524
cpp2::impl::in<compiler_services> s
@@ -660,7 +660,7 @@ class regex_token
660
660
{
661
661
public: std::string string_rep;
662
662
663
- public: explicit regex_token (cpp2::impl::in<std::string> str);
663
+ public: regex_token(cpp2::impl::in<std::string> str);
664
664
665
665
#line 1672 "reflect.h2"
666
666
public: explicit regex_token ();
@@ -692,7 +692,7 @@ class regex_token_check
692
692
#line 1695 "reflect.h2"
693
693
private: std::string check;
694
694
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_);
696
696
697
697
#line 1702 "reflect.h2"
698
698
public: auto generate_code (generation_context& ctx) const -> void override ;
@@ -716,7 +716,7 @@ class regex_token_code
716
716
#line 1716 "reflect.h2"
717
717
private: std::string code;
718
718
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_);
720
720
721
721
#line 1723 "reflect.h2"
722
722
public: auto generate_code (generation_context& ctx) const -> void override ;
@@ -738,7 +738,7 @@ class regex_token_empty
738
738
: public regex_token {
739
739
740
740
#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);
742
742
743
743
#line 1741 "reflect.h2"
744
744
public: auto generate_code ([[maybe_unused]] generation_context& unnamed_param_2) const -> void override ;
@@ -762,7 +762,7 @@ class regex_token_list
762
762
#line 1755 "reflect.h2"
763
763
public: token_vec tokens;
764
764
765
- public: explicit regex_token_list (cpp2::impl::in<token_vec> t);
765
+ public: regex_token_list(cpp2::impl::in<token_vec> t);
766
766
767
767
#line 1762 "reflect.h2"
768
768
public: auto generate_code (generation_context& ctx) const -> void override ;
@@ -879,7 +879,7 @@ class parse_context
879
879
private: error_func error_out; // TODO: Declaring std::function<void(std::string)> fails for cpp2.
880
880
private: bool has_error {false };
881
881
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);
883
883
884
884
#line 1930 "reflect.h2"
885
885
// State management functions
@@ -1142,7 +1142,7 @@ class alternative_token_gen
1142
1142
#line 2544 "reflect.h2"
1143
1143
private: token_vec alternatives;
1144
1144
1145
- public: explicit alternative_token_gen (cpp2::impl::in<token_vec> a);
1145
+ public: alternative_token_gen(cpp2::impl::in<token_vec> a);
1146
1146
1147
1147
#line 2551 "reflect.h2"
1148
1148
public: auto generate_code (generation_context& ctx) const -> void override ;
@@ -1171,7 +1171,7 @@ class any_token
1171
1171
: public regex_token_check {
1172
1172
1173
1173
#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);
1175
1175
1176
1176
#line 2613 "reflect.h2"
1177
1177
public: [[nodiscard]] static auto parse (parse_context& ctx) -> token_ptr;
@@ -1219,10 +1219,10 @@ class char_token
1219
1219
private: std::string token;
1220
1220
private: bool ignore_case;
1221
1221
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_);
1223
1223
1224
1224
#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_);
1226
1226
1227
1227
#line 2671 "reflect.h2"
1228
1228
public: [[nodiscard]] static auto parse (parse_context& ctx) -> token_ptr;
@@ -1264,7 +1264,7 @@ class class_token
1264
1264
private: bool case_insensitive;
1265
1265
private: std::string class_str;
1266
1266
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);
1268
1268
1269
1269
#line 2783 "reflect.h2"
1270
1270
// TODO: Rework class generation: Generate check functions for classes.
@@ -1312,7 +1312,7 @@ class group_ref_token
1312
1312
private: bool case_insensitive;
1313
1313
private: bool reverse_eval;
1314
1314
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);
1316
1316
1317
1317
#line 3007 "reflect.h2"
1318
1318
public: [[nodiscard]] static auto parse (parse_context& ctx) -> token_ptr;
@@ -1407,7 +1407,7 @@ class lookahead_lookbehind_token
1407
1407
protected: bool positive;
1408
1408
public: token_ptr inner {nullptr };
1409
1409
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_);
1411
1411
1412
1412
#line 3488 "reflect.h2"
1413
1413
public: auto generate_code (generation_context& ctx) const -> void override ;
@@ -1528,7 +1528,7 @@ template<typename Error_out> class regex_generator
1528
1528
1529
1529
private: std::string source {" " };
1530
1530
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);
1532
1532
1533
1533
#line 3828 "reflect.h2"
1534
1534
public: [[nodiscard]] auto parse () & -> std::string;
0 commit comments