diff --git a/regression-tests/test-results/pure2-defaulted-comparisons-and-final-types.cpp b/regression-tests/test-results/pure2-defaulted-comparisons-and-final-types.cpp index 52e0916947..2a922effac 100644 --- a/regression-tests/test-results/pure2-defaulted-comparisons-and-final-types.cpp +++ b/regression-tests/test-results/pure2-defaulted-comparisons-and-final-types.cpp @@ -27,7 +27,7 @@ class widget final public: [[nodiscard]] auto operator<=>(widget const& that) const -> std::strong_ordering = default; - public: widget(widget const&) = delete; + public: widget(widget const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(widget const&) -> void = delete; #line 11 "pure2-defaulted-comparisons-and-final-types.cpp2" }; diff --git a/regression-tests/test-results/pure2-requires-clauses.cpp b/regression-tests/test-results/pure2-requires-clauses.cpp index 65e5e738d3..5bb32a7dd9 100644 --- a/regression-tests/test-results/pure2-requires-clauses.cpp +++ b/regression-tests/test-results/pure2-requires-clauses.cpp @@ -25,7 +25,7 @@ template class X { public: X(); - public: X(X const&) = delete; + public: X(X const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(X const&) -> void = delete; #line 8 "pure2-requires-clauses.cpp2" }; diff --git a/regression-tests/test-results/pure2-type-and-namespace-aliases.cpp b/regression-tests/test-results/pure2-type-and-namespace-aliases.cpp index 44fd76b84f..036e4bd96d 100644 --- a/regression-tests/test-results/pure2-type-and-namespace-aliases.cpp +++ b/regression-tests/test-results/pure2-type-and-namespace-aliases.cpp @@ -33,7 +33,7 @@ class myclass { private: using str2 = std::string; public: myclass() = default; - public: myclass(myclass const&) = delete; + public: myclass(myclass const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(myclass const&) -> void = delete; #line 13 "pure2-type-and-namespace-aliases.cpp2" }; diff --git a/regression-tests/test-results/pure2-types-basics.cpp b/regression-tests/test-results/pure2-types-basics.cpp index 0589c53848..fcaa4a1f94 100644 --- a/regression-tests/test-results/pure2-types-basics.cpp +++ b/regression-tests/test-results/pure2-types-basics.cpp @@ -65,7 +65,7 @@ class myclass { public: static auto g() -> void; public: nested() = default; - public: nested(nested const&) = delete; + public: nested(nested const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(nested const&) -> void = delete; #line 51 "pure2-types-basics.cpp2" @@ -76,7 +76,7 @@ class myclass { public: template [[nodiscard]] static auto f3() -> auto; public: template [[nodiscard]] static auto f4() -> auto; - public: myclass(myclass const&) = delete; + public: myclass(myclass const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(myclass const&) -> void = delete; #line 58 "pure2-types-basics.cpp2" }; diff --git a/regression-tests/test-results/pure2-types-inheritance.cpp b/regression-tests/test-results/pure2-types-inheritance.cpp index eb56f1d339..8249c92a9b 100644 --- a/regression-tests/test-results/pure2-types-inheritance.cpp +++ b/regression-tests/test-results/pure2-types-inheritance.cpp @@ -32,7 +32,7 @@ class Human { public: virtual ~Human(); public: Human() = default; - public: Human(Human const&) = delete; + public: Human(Human const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(Human const&) -> void = delete; #line 4 "pure2-types-inheritance.cpp2" }; @@ -44,7 +44,7 @@ namespace N { public: virtual ~Machine(); - public: Machine(Machine const&) = delete; + public: Machine(Machine const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(Machine const&) -> void = delete; #line 10 "pure2-types-inheritance.cpp2" @@ -72,7 +72,7 @@ class Cyborg: public Cyborg_name_as_base, public Human, public Cyborg_address_as public: ~Cyborg(); - public: Cyborg(Cyborg const&) = delete; + public: Cyborg(Cyborg const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(Cyborg const&) -> void = delete; #line 36 "pure2-types-inheritance.cpp2" diff --git a/regression-tests/test-results/pure2-types-order-independence-and-nesting.cpp b/regression-tests/test-results/pure2-types-order-independence-and-nesting.cpp index de75ba45b1..3df6503735 100644 --- a/regression-tests/test-results/pure2-types-order-independence-and-nesting.cpp +++ b/regression-tests/test-results/pure2-types-order-independence-and-nesting.cpp @@ -53,7 +53,7 @@ class X { // X::exx member function description here public: auto exx(cpp2::in count) const -> void; - public: X(X const&) = delete; + public: X(X const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(X const&) -> void = delete; @@ -71,7 +71,7 @@ class Y { public: auto why(cpp2::in count) const -> void; - public: Y(Y const&) = delete; + public: Y(Y const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(Y const&) -> void = delete; #line 53 "pure2-types-order-independence-and-nesting.cpp2" @@ -85,14 +85,14 @@ template class A { public: template static auto f(W const& w) -> void; public: B() = default; - public: B(B const&) = delete; + public: B(B const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(B const&) -> void = delete; #line 61 "pure2-types-order-independence-and-nesting.cpp2" }; public: A() = default; - public: A(A const&) = delete; + public: A(A const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(A const&) -> void = delete; #line 62 "pure2-types-order-independence-and-nesting.cpp2" }; diff --git a/regression-tests/test-results/pure2-types-ordering-via-meta-functions.cpp b/regression-tests/test-results/pure2-types-ordering-via-meta-functions.cpp index 16ff225cc8..a4fc838548 100644 --- a/regression-tests/test-results/pure2-types-ordering-via-meta-functions.cpp +++ b/regression-tests/test-results/pure2-types-ordering-via-meta-functions.cpp @@ -35,7 +35,7 @@ class my_integer { public: [[nodiscard]] auto operator<=>(my_integer const& that) const -> std::strong_ordering = default; - public: my_integer(my_integer const&) = delete; + public: my_integer(my_integer const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(my_integer const&) -> void = delete; #line 5 "pure2-types-ordering-via-meta-functions.cpp2" }; @@ -48,7 +48,7 @@ class case_insensitive_string { public: [[nodiscard]] auto operator<=>(case_insensitive_string const& that) const -> std::weak_ordering = default; - public: case_insensitive_string(case_insensitive_string const&) = delete; + public: case_insensitive_string(case_insensitive_string const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(case_insensitive_string const&) -> void = delete; #line 10 "pure2-types-ordering-via-meta-functions.cpp2" }; @@ -61,7 +61,7 @@ class person_in_family_tree { public: [[nodiscard]] auto operator<=>(person_in_family_tree const& that) const -> std::partial_ordering = default; - public: person_in_family_tree(person_in_family_tree const&) = delete; + public: person_in_family_tree(person_in_family_tree const&) = delete; /* No 'that' constructor, suppress copy */ public: auto operator=(person_in_family_tree const&) -> void = delete; #line 15 "pure2-types-ordering-via-meta-functions.cpp2" }; diff --git a/regression-tests/test-results/version b/regression-tests/test-results/version index 273bbcfb06..44889af337 100644 --- a/regression-tests/test-results/version +++ b/regression-tests/test-results/version @@ -1,5 +1,5 @@ -cppfront compiler v0.2.1 Build 8429:1224 +cppfront compiler v0.2.1 Build 8505:0902 Copyright(c) Herb Sutter All rights reserved SPDX-License-Identifier: CC-BY-NC-ND-4.0 diff --git a/source/common.h b/source/common.h index 0b7442534d..2063667b06 100644 --- a/source/common.h +++ b/source/common.h @@ -758,6 +758,7 @@ class cmdline_processor ret += ":"; ret += b.substr(0,2); ret += b.substr(3,2); + for (auto& c : ret) { if (c == ' ') { c = '0'; } } return ret; }; diff --git a/source/cppfront.cpp b/source/cppfront.cpp index 5f54579b9c..46080d24c4 100644 --- a/source/cppfront.cpp +++ b/source/cppfront.cpp @@ -5097,7 +5097,7 @@ class cppfront // If no 'that' constructor was defined, disable copy/move // so that Cpp1 doesn't silently generate it anyway if (!found_that_constructor) { - printer.print_extra( prefix + id + "(" + id + " const&) = delete;" ); + printer.print_extra( prefix + id + "(" + id + " const&) = delete; /* No 'that' constructor, suppress copy */" ); printer.print_extra( prefix + "auto operator=(" + id + " const&) -> void = delete;" ); }