]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
contracts: Lowercase {MAYBE,NEVER}_CONTINUE
authorArsen Arsenović <arsen@aarsen.me>
Sat, 10 Dec 2022 09:43:00 +0000 (10:43 +0100)
committerJason Merrill <jason@redhat.com>
Mon, 19 Dec 2022 20:08:08 +0000 (15:08 -0500)
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.

gcc/cp/contracts.cc
libstdc++-v3/include/experimental/contract

index 45f52b20392a87f0ad6bfe49fe15e59ac6b0918d..2631637238920963cbd37e265f52c97c50d8931d 100644 (file)
@@ -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
index cf655023da706c8219bec641922ab738f053888d..a2babed63010414303ac4abd9e915481e9894bb5 100644 (file)
@@ -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 {