aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@aarsen.me>2022-12-10 10:43:00 +0100
committerJason Merrill <jason@redhat.com>2022-12-19 15:08:08 -0500
commita39f454f0faf0734c7d040c9d8523f71be821000 (patch)
tree9cf8a9b595f5c9910a05b32af439c85cfe748235
parent4e4620d8c796af482b57b94932618d1f9d9af9f7 (diff)
downloadgcc-a39f454f0faf0734c7d040c9d8523f71be821000.zip
gcc-a39f454f0faf0734c7d040c9d8523f71be821000.tar.gz
gcc-a39f454f0faf0734c7d040c9d8523f71be821000.tar.bz2
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.
-rw-r--r--gcc/cp/contracts.cc4
-rw-r--r--libstdc++-v3/include/experimental/contract2
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cp/contracts.cc b/gcc/cp/contracts.cc
index 45f52b2..2631637 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 cf65502..a2babed 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 {