@@ -843,7 +843,7 @@ namespace meta {
843
843
static_cast <void >(CPP2_UFCS (emplace_back)((*cpp2::assert_not_null (_1)), s, source_line::category::cpp2));
844
844
}};
845
845
{
846
- auto newline_pos = CPP2_UFCS (find)(source, ' \n ' );
846
+ auto newline_pos{ CPP2_UFCS (find)(source, ' \n ' )} ;
847
847
848
848
// First split this string into source_lines
849
849
//
@@ -1521,7 +1521,7 @@ auto basic_enum(
1521
1521
1522
1522
auto found_non_numeric {false };
1523
1523
{
1524
- std::string value = " -1" ;
1524
+ std::string value{ " -1" } ;
1525
1525
1526
1526
#line 991 "reflect.h2"
1527
1527
for (
@@ -1651,7 +1651,7 @@ std::string value = "-1";
1651
1651
CPP2_UFCS (add_member)(t, " operator= : (out this, that) == { }" );
1652
1652
CPP2_UFCS (add_member)(t, " operator<=> : (this, that) -> std::strong_ordering;" );
1653
1653
{
1654
- std::string to_string = " to_string: (this) -> std::string = { \n " ;
1654
+ std::string to_string{ " to_string: (this) -> std::string = { \n " } ;
1655
1655
1656
1656
// Provide a 'to_string' function to print enumerator name(s)
1657
1657
@@ -1734,7 +1734,7 @@ auto cpp2_union(meta::type_declaration& t) -> void
1734
1734
{
1735
1735
std::vector<value_member_info> alternatives {};
1736
1736
{
1737
- auto value = 0 ;
1737
+ auto value{ 0 } ;
1738
1738
1739
1739
// 1. Gather: All the user-written members, and find/compute the max size
1740
1740
@@ -1783,14 +1783,14 @@ auto value = 0;
1783
1783
1784
1784
CPP2_UFCS (remove_marked_members)(t);
1785
1785
{
1786
- std::string storage = " _storage: cpp2::aligned_storage<cpp2::max( " ;
1786
+ std::string storage{ " _storage: cpp2::aligned_storage<cpp2::max( " } ;
1787
1787
1788
1788
// Provide storage
1789
1789
1790
1790
#line 1284 "reflect.h2"
1791
1791
{
1792
1792
{
1793
- std::string comma = " " ;
1793
+ std::string comma{ " " } ;
1794
1794
1795
1795
#line 1286 "reflect.h2"
1796
1796
for (
@@ -1803,7 +1803,7 @@ std::string comma = "";
1803
1803
#line 1292 "reflect.h2"
1804
1804
storage += " ), cpp2::max( " ;
1805
1805
{
1806
- std::string comma = " " ;
1806
+ std::string comma{ " " } ;
1807
1807
1808
1808
#line 1295 "reflect.h2"
1809
1809
for (
@@ -1838,7 +1838,7 @@ std::string comma = "";
1838
1838
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 " ));
1839
1839
}
1840
1840
{
1841
- std::string destroy = " private _destroy: (inout this) = {\n " ;
1841
+ std::string destroy{ " private _destroy: (inout this) = {\n " } ;
1842
1842
1843
1843
// Add destroy
1844
1844
@@ -1862,7 +1862,7 @@ std::string destroy = " private _destroy: (inout this) = {\n";
1862
1862
// Add default constructor
1863
1863
CPP2_UFCS (add_member)(t, " operator=: (out this) = { }" );
1864
1864
{
1865
- std::string value_set = " " ;
1865
+ std::string value_set{ " " } ;
1866
1866
1867
1867
// Add copy/move construction and assignment
1868
1868
0 commit comments