diff options
author | Patrick Palka <ppalka@redhat.com> | 2024-05-13 15:46:55 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2024-05-13 15:46:55 -0400 |
commit | 67476ba8adb432033993f429b1aa4ee5689fa046 (patch) | |
tree | 7c7f23aab356c7d141529bdf0e7f9bf039ee6c51 /libcpp | |
parent | 30ff6c55ba0f2262cf292c90d7b9d771005305f0 (diff) | |
download | gcc-67476ba8adb432033993f429b1aa4ee5689fa046.zip gcc-67476ba8adb432033993f429b1aa4ee5689fa046.tar.gz gcc-67476ba8adb432033993f429b1aa4ee5689fa046.tar.bz2 |
c++: replace tf_norm with a local flag
The tf_norm flag controlling whether to build diagnostic information
during constraint normalization doesn't need to be a global tsubst flag,
and is confusingly named. This patch replaces it with a boolean flag
local to normalization.
gcc/cp/ChangeLog:
* constraint.cc (norm_info::norm_info): Take a bool instead of
tsubst_flags_t.
(norm_info::generate_diagnostics): Turn this predicate function
into a bool data member.
(normalize_logical_operation): Adjust after norm_info changes.
(normalize_concept_check): Likewise.
(normalize_atom): Likewise.
(get_normalized_constraints_from_info): Likewise.
(normalize_concept_definition): Likewise.
(normalize_constraint_expression): Likewise.
(normalize_placeholder_type_constraints): Likewise.
(satisfy_nondeclaration_constraints): Likewise.
* cp-tree.h (enum tsubst_flags): Remove tf_norm.
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions