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:
parent
57b923a603
commit
ca2e328a5f
@ -92,7 +92,7 @@ bool Constraints<StateCount, StateType, CountType>::isValidBelForCellType(const
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CONSTRAINT_TAG_REQUIRES:
|
case CONSTRAINT_TAG_REQUIRES:
|
||||||
if (!tags[constraint.tag()].requires(constraint.states())) {
|
if (!tags[constraint.tag()].requires_range(constraint.states())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -127,7 +127,7 @@ template <size_t StateCount, typename StateType = int8_t, typename CountType = u
|
|||||||
|
|
||||||
template <typename StateRange>
|
template <typename StateRange>
|
||||||
bool
|
bool
|
||||||
requires(const StateRange &state_range)
|
requires_range(const StateRange &state_range)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
if (state < 0) {
|
if (state < 0) {
|
||||||
|
@ -70,7 +70,7 @@ void ExclusiveStateGroup<StateCount, StateType, CountType>::explain_requires(con
|
|||||||
const Definition &definition, BelId bel,
|
const Definition &definition, BelId bel,
|
||||||
const StateRange state_range) const
|
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),
|
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));
|
object.c_str(ctx), definition.prefix.c_str(ctx));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user