@@ -818,7 +818,7 @@ namespace meta {
818
818
static_cast <void >(CPP2_UFCS (emplace_back)((*cpp2::assert_not_null (_1)), s, source_line::category::cpp2));
819
819
}};
820
820
{
821
- auto newline_pos = CPP2_UFCS (find)(source, ' \n ' );
821
+ auto newline_pos{ CPP2_UFCS (find)(source, ' \n ' )} ;
822
822
823
823
// First split this string into source_lines
824
824
//
@@ -1483,7 +1483,7 @@ auto basic_enum(
1483
1483
1484
1484
auto found_non_numeric {false };
1485
1485
{
1486
- std::string value = " -1" ;
1486
+ std::string value{ " -1" } ;
1487
1487
1488
1488
#line 957 "reflect.h2"
1489
1489
for (
@@ -1613,7 +1613,7 @@ std::string value = "-1";
1613
1613
CPP2_UFCS (add_member)(t, " operator= : (out this, that) == { }" );
1614
1614
CPP2_UFCS (add_member)(t, " operator<=> : (this, that) -> std::strong_ordering;" );
1615
1615
{
1616
- std::string to_string = " to_string: (this) -> std::string = { \n " ;
1616
+ std::string to_string{ " to_string: (this) -> std::string = { \n " } ;
1617
1617
1618
1618
// Provide a 'to_string' function to print enumerator name(s)
1619
1619
@@ -1696,7 +1696,7 @@ auto cpp2_union(meta::type_declaration& t) -> void
1696
1696
{
1697
1697
std::vector<value_member_info> alternatives {};
1698
1698
{
1699
- auto value = 0 ;
1699
+ auto value{ 0 } ;
1700
1700
1701
1701
// 1. Gather: All the user-written members, and find/compute the max size
1702
1702
@@ -1745,14 +1745,14 @@ auto value = 0;
1745
1745
1746
1746
CPP2_UFCS (remove_marked_members)(t);
1747
1747
{
1748
- std::string storage = " _storage: cpp2::aligned_storage<cpp2::max( " ;
1748
+ std::string storage{ " _storage: cpp2::aligned_storage<cpp2::max( " } ;
1749
1749
1750
1750
// Provide storage
1751
1751
1752
1752
#line 1250 "reflect.h2"
1753
1753
{
1754
1754
{
1755
- std::string comma = " " ;
1755
+ std::string comma{ " " } ;
1756
1756
1757
1757
#line 1252 "reflect.h2"
1758
1758
for (
@@ -1765,7 +1765,7 @@ std::string comma = "";
1765
1765
#line 1258 "reflect.h2"
1766
1766
storage += " ), cpp2::max( " ;
1767
1767
{
1768
- std::string comma = " " ;
1768
+ std::string comma{ " " } ;
1769
1769
1770
1770
#line 1261 "reflect.h2"
1771
1771
for (
@@ -1800,7 +1800,7 @@ std::string comma = "";
1800
1800
CPP2_UFCS (add_member)(t, (" set_" + cpp2::to_string (a.name ) + " : (inout this, forward _args...: _) = { if !is_" + cpp2::to_string (a.name ) + " () { _destroy(); std::construct_at( reinterpret_cast<*" + cpp2::to_string (a.type ) + " >(_storage&), _args...); } else { reinterpret_cast<*" + cpp2::to_string (a.type ) + " >(_storage&)* = :" + cpp2::to_string (a.type ) + " = (_args...); } _discriminator = " + cpp2::to_string (a.value ) + " ; }\n " ));
1801
1801
}
1802
1802
{
1803
- std::string destroy = " private _destroy: (inout this) = {\n " ;
1803
+ std::string destroy{ " private _destroy: (inout this) = {\n " } ;
1804
1804
1805
1805
// Add destroy
1806
1806
@@ -1824,7 +1824,7 @@ std::string destroy = " private _destroy: (inout this) = {\n";
1824
1824
// Add default constructor
1825
1825
CPP2_UFCS (add_member)(t, " operator=: (out this) = { }" );
1826
1826
{
1827
- std::string value_set = " " ;
1827
+ std::string value_set{ " " } ;
1828
1828
1829
1829
// Add copy/move construction and assignment
1830
1830
0 commit comments