Internals: Add consts. No functional change.
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
parent
add5cc8b56
commit
f63e946f04
|
|
@ -104,6 +104,7 @@ CPPFLAGS += -W -Wall $(CFG_CXXFLAGS_WEXTRA) $(CFG_CXXFLAGS_SRC) -Werror
|
||||||
else
|
else
|
||||||
CPPFLAGS += $(CFG_CXXFLAGS_SRC)
|
CPPFLAGS += $(CFG_CXXFLAGS_SRC)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CPPFLAGSWALL = $(CPPFLAGS)
|
CPPFLAGSWALL = $(CPPFLAGS)
|
||||||
CPPFLAGSPARSER = $(CPPFLAGS) $(CFG_CXXFLAGS_PARSER)
|
CPPFLAGSPARSER = $(CPPFLAGS) $(CFG_CXXFLAGS_PARSER)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -549,28 +549,28 @@ string AstScopeName::scopeNameFormatter(AstText* scopeTextp) const {
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AstSenTree::hasClocked() {
|
bool AstSenTree::hasClocked() const {
|
||||||
if (!sensesp()) this->v3fatalSrc("SENTREE without any SENITEMs under it");
|
if (!sensesp()) this->v3fatalSrc("SENTREE without any SENITEMs under it");
|
||||||
for (AstNodeSenItem* senp = sensesp(); senp; senp=senp->nextp()->castNodeSenItem()) {
|
for (AstNodeSenItem* senp = sensesp(); senp; senp=senp->nextp()->castNodeSenItem()) {
|
||||||
if (senp->isClocked()) return true;
|
if (senp->isClocked()) return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
bool AstSenTree::hasSettle() {
|
bool AstSenTree::hasSettle() const {
|
||||||
if (!sensesp()) this->v3fatalSrc("SENTREE without any SENITEMs under it");
|
if (!sensesp()) this->v3fatalSrc("SENTREE without any SENITEMs under it");
|
||||||
for (AstNodeSenItem* senp = sensesp(); senp; senp=senp->nextp()->castNodeSenItem()) {
|
for (AstNodeSenItem* senp = sensesp(); senp; senp=senp->nextp()->castNodeSenItem()) {
|
||||||
if (senp->isSettle()) return true;
|
if (senp->isSettle()) return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
bool AstSenTree::hasInitial() {
|
bool AstSenTree::hasInitial() const {
|
||||||
if (!sensesp()) this->v3fatalSrc("SENTREE without any SENITEMs under it");
|
if (!sensesp()) this->v3fatalSrc("SENTREE without any SENITEMs under it");
|
||||||
for (AstNodeSenItem* senp = sensesp(); senp; senp=senp->nextp()->castNodeSenItem()) {
|
for (AstNodeSenItem* senp = sensesp(); senp; senp=senp->nextp()->castNodeSenItem()) {
|
||||||
if (senp->isInitial()) return true;
|
if (senp->isInitial()) return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
bool AstSenTree::hasCombo() {
|
bool AstSenTree::hasCombo() const {
|
||||||
if (!sensesp()) this->v3fatalSrc("SENTREE without any SENITEMs under it");
|
if (!sensesp()) this->v3fatalSrc("SENTREE without any SENITEMs under it");
|
||||||
for (AstNodeSenItem* senp = sensesp(); senp; senp=senp->nextp()->castNodeSenItem()) {
|
for (AstNodeSenItem* senp = sensesp(); senp; senp=senp->nextp()->castNodeSenItem()) {
|
||||||
if (senp->isCombo()) return true;
|
if (senp->isCombo()) return true;
|
||||||
|
|
|
||||||
|
|
@ -2015,10 +2015,10 @@ public:
|
||||||
void addSensesp(AstNodeSenItem* nodep) { addOp1p(nodep); }
|
void addSensesp(AstNodeSenItem* nodep) { addOp1p(nodep); }
|
||||||
void multi(bool flag) { m_multi = true; }
|
void multi(bool flag) { m_multi = true; }
|
||||||
// METHODS
|
// METHODS
|
||||||
bool hasClocked(); // Includes a clocked statement
|
bool hasClocked() const; // Includes a clocked statement
|
||||||
bool hasSettle(); // Includes a SETTLE SenItem
|
bool hasSettle() const; // Includes a SETTLE SenItem
|
||||||
bool hasInitial(); // Includes a INITIAL SenItem
|
bool hasInitial() const; // Includes a INITIAL SenItem
|
||||||
bool hasCombo(); // Includes a COMBO SenItem
|
bool hasCombo() const; // Includes a COMBO SenItem
|
||||||
};
|
};
|
||||||
|
|
||||||
class AstAlways : public AstNode {
|
class AstAlways : public AstNode {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue