Skip to content

Commit 1bbcd04

Browse files
committed
Post-merge, resync reflect.h and bump build number
1 parent df0f13f commit 1bbcd04

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

regression-tests/test-results/version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
cppfront compiler v0.3.0 Build 9108:1647
2+
cppfront compiler v0.3.0 Build 9110:1810
33
Copyright(c) Herb Sutter All rights reserved
44

55
SPDX-License-Identifier: CC-BY-NC-ND-4.0

source/build.info

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"9108:1647"
1+
"9110:1810"

source/reflect.h

+9-9
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ namespace meta {
843843
static_cast<void>(CPP2_UFCS(emplace_back)((*cpp2::assert_not_null(_1)), s, source_line::category::cpp2));
844844
}};
845845
{
846-
auto newline_pos = CPP2_UFCS(find)(source, '\n');
846+
auto newline_pos{CPP2_UFCS(find)(source, '\n')};
847847

848848
// First split this string into source_lines
849849
//
@@ -1521,7 +1521,7 @@ auto basic_enum(
15211521

15221522
auto found_non_numeric {false};
15231523
{
1524-
std::string value = "-1";
1524+
std::string value{"-1"};
15251525

15261526
#line 991 "reflect.h2"
15271527
for (
@@ -1651,7 +1651,7 @@ std::string value = "-1";
16511651
CPP2_UFCS(add_member)(t, " operator= : (out this, that) == { }");
16521652
CPP2_UFCS(add_member)(t, " operator<=> : (this, that) -> std::strong_ordering;");
16531653
{
1654-
std::string to_string = " to_string: (this) -> std::string = { \n";
1654+
std::string to_string{" to_string: (this) -> std::string = { \n"};
16551655

16561656
// Provide a 'to_string' function to print enumerator name(s)
16571657

@@ -1734,7 +1734,7 @@ auto cpp2_union(meta::type_declaration& t) -> void
17341734
{
17351735
std::vector<value_member_info> alternatives {};
17361736
{
1737-
auto value = 0;
1737+
auto value{0};
17381738

17391739
// 1. Gather: All the user-written members, and find/compute the max size
17401740

@@ -1783,14 +1783,14 @@ auto value = 0;
17831783

17841784
CPP2_UFCS(remove_marked_members)(t);
17851785
{
1786-
std::string storage = " _storage: cpp2::aligned_storage<cpp2::max( ";
1786+
std::string storage{" _storage: cpp2::aligned_storage<cpp2::max( "};
17871787

17881788
// Provide storage
17891789

17901790
#line 1284 "reflect.h2"
17911791
{
17921792
{
1793-
std::string comma = "";
1793+
std::string comma{""};
17941794

17951795
#line 1286 "reflect.h2"
17961796
for (
@@ -1803,7 +1803,7 @@ std::string comma = "";
18031803
#line 1292 "reflect.h2"
18041804
storage += "), cpp2::max( ";
18051805
{
1806-
std::string comma = "";
1806+
std::string comma{""};
18071807

18081808
#line 1295 "reflect.h2"
18091809
for (
@@ -1838,7 +1838,7 @@ std::string comma = "";
18381838
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"));
18391839
}
18401840
{
1841-
std::string destroy = " private _destroy: (inout this) = {\n";
1841+
std::string destroy{" private _destroy: (inout this) = {\n"};
18421842

18431843
// Add destroy
18441844

@@ -1862,7 +1862,7 @@ std::string destroy = " private _destroy: (inout this) = {\n";
18621862
// Add default constructor
18631863
CPP2_UFCS(add_member)(t, " operator=: (out this) = { }");
18641864
{
1865-
std::string value_set = "";
1865+
std::string value_set{""};
18661866

18671867
// Add copy/move construction and assignment
18681868

0 commit comments

Comments
 (0)