]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: replace tf_norm with a local flag
authorPatrick Palka <ppalka@redhat.com>
Mon, 13 May 2024 19:46:55 +0000 (15:46 -0400)
committerPatrick Palka <ppalka@redhat.com>
Mon, 13 May 2024 19:46:55 +0000 (15:46 -0400)
commit67476ba8adb432033993f429b1aa4ee5689fa046
tree7c7f23aab356c7d141529bdf0e7f9bf039ee6c51
parent30ff6c55ba0f2262cf292c90d7b9d771005305f0
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>
gcc/cp/constraint.cc
gcc/cp/cp-tree.h