public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4798] contracts: Lowercase {MAYBE,NEVER}_CONTINUE
@ 2022-12-19 20:08 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2022-12-19 20:08 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:a39f454f0faf0734c7d040c9d8523f71be821000

commit r13-4798-ga39f454f0faf0734c7d040c9d8523f71be821000
Author: Arsen Arsenović <arsen@aarsen.me>
Date:   Sat Dec 10 10:43:00 2022 +0100

    contracts: Lowercase {MAYBE,NEVER}_CONTINUE
    
    The lowercase constants are more consistent with the standard, and it is
    unlikely that the uppercase versions would've been accepted.
    
    gcc/cp/ChangeLog:
    
            * contracts.cc: Rename references to
            contract_violation_continuation_mode constants to be lowercase.
    
    libstdc++-v3/ChangeLog:
    
            * include/experimental/contract: Lowercase the constants in
            contract_violation_continuation_mode.

Diff:
---
 gcc/cp/contracts.cc                        | 4 ++--
 libstdc++-v3/include/experimental/contract | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/cp/contracts.cc b/gcc/cp/contracts.cc
index 45f52b20392..26316372389 100644
--- a/gcc/cp/contracts.cc
+++ b/gcc/cp/contracts.cc
@@ -41,9 +41,9 @@ along with GCC; see the file COPYING3.  If not see
 	 "v > 0", // comment,
 	 "default", // assertion_level,
 	 "default", // assertion_role,
-	 MAYBE_CONTINUE, // continuation_mode
+	 maybe_continue, // continuation_mode
        });
-       terminate (); // if NEVER_CONTINUE
+       terminate (); // if never_continue
      }
 
    We use an internal type with the same layout as contract_violation rather
diff --git a/libstdc++-v3/include/experimental/contract b/libstdc++-v3/include/experimental/contract
index cf655023da7..a2babed6301 100644
--- a/libstdc++-v3/include/experimental/contract
+++ b/libstdc++-v3/include/experimental/contract
@@ -45,7 +45,7 @@ namespace experimental
 {
   // From P1332
   enum class contract_violation_continuation_mode {
-    NEVER_CONTINUE, MAYBE_CONTINUE
+    never_continue, maybe_continue
   };
 
   class contract_violation {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-19 20:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-19 20:08 [gcc r13-4798] contracts: Lowercase {MAYBE,NEVER}_CONTINUE Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).