Skip to content

Commit ca2e328

Browse files
nqbitgatecat
authored andcommitted
rename c++20 keyword s/requires/requires_range.
See https://en.cppreference.com/w/cpp/language/requires for more details.
1 parent 57b923a commit ca2e328

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

common/kernel/constraints.impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bool Constraints<StateCount, StateType, CountType>::isValidBelForCellType(const
9292
}
9393
break;
9494
case CONSTRAINT_TAG_REQUIRES:
95-
if (!tags[constraint.tag()].requires(constraint.states())) {
95+
if (!tags[constraint.tag()].requires_range(constraint.states())) {
9696
return false;
9797
}
9898
break;

common/kernel/exclusive_state_groups.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ template <size_t StateCount, typename StateType = int8_t, typename CountType = u
127127

128128
template <typename StateRange>
129129
bool
130-
requires(const StateRange &state_range)
130+
requires_range(const StateRange &state_range)
131131
const
132132
{
133133
if (state < 0) {

common/kernel/exclusive_state_groups.impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void ExclusiveStateGroup<StateCount, StateType, CountType>::explain_requires(con
7070
const Definition &definition, BelId bel,
7171
const StateRange state_range) const
7272
{
73-
if (requires(state_range)) {
73+
if (requires_range(state_range)) {
7474
log_info("Placing cell %s at bel %s does not violate %s.%s\n", cell.c_str(ctx), ctx->nameOfBel(bel),
7575
object.c_str(ctx), definition.prefix.c_str(ctx));
7676
} else {

0 commit comments

Comments
 (0)