rename c++20 keyword s/requires/requires_range.

See https://en.cppreference.com/w/cpp/language/requires for more details.
This commit is contained in:
Nathaniel Quillin 2023-05-16 03:38:02 +00:00 committed by myrtle
parent 57b923a603
commit ca2e328a5f
3 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ bool Constraints<StateCount, StateType, CountType>::isValidBelForCellType(const
}
break;
case CONSTRAINT_TAG_REQUIRES:
if (!tags[constraint.tag()].requires(constraint.states())) {
if (!tags[constraint.tag()].requires_range(constraint.states())) {
return false;
}
break;

View File

@ -127,7 +127,7 @@ template <size_t StateCount, typename StateType = int8_t, typename CountType = u
template <typename StateRange>
bool
requires(const StateRange &state_range)
requires_range(const StateRange &state_range)
const
{
if (state < 0) {

View File

@ -70,7 +70,7 @@ void ExclusiveStateGroup<StateCount, StateType, CountType>::explain_requires(con
const Definition &definition, BelId bel,
const StateRange state_range) const
{
if (requires(state_range)) {
if (requires_range(state_range)) {
log_info("Placing cell %s at bel %s does not violate %s.%s\n", cell.c_str(ctx), ctx->nameOfBel(bel),
object.c_str(ctx), definition.prefix.c_str(ctx));
} else {