Internal: clang-tidy fixes. No functional change.

This commit is contained in:
Wilson Snyder
2020-04-15 21:47:37 -04:00
parent d4f7f5297a
commit e6f345e45d
16 changed files with 54 additions and 43 deletions
+10 -4
View File
@@ -1215,10 +1215,13 @@ int V3PreProcImp::getStateToken() {
UINFO(5, "``-end-defarg Out:" << out << endl);
statePop();
}
if (!m_off) unputDefrefString(out);
if (!m_off) {
unputDefrefString(out);
}
// Prevent problem when EMPTY="" in `ifdef NEVER `define `EMPTY
else if (stateIsDefname())
else if (stateIsDefname()) {
unputDefrefString("__IF_OFF_IGNORED_DEFINE");
}
m_lexp->m_parenLevel = 0;
} else { // Finished a defref inside a upper defref
// Can't subst now, or
@@ -1433,10 +1436,13 @@ int V3PreProcImp::getStateToken() {
UINFO(5, "``-end-defref Out:" << out << endl);
statePop();
}
if (!m_off) unputDefrefString(out);
if (!m_off) {
unputDefrefString(out);
}
// Prevent problem when EMPTY="" in `ifdef NEVER `define `EMPTY
else if (stateIsDefname())
else if (stateIsDefname()) {
unputDefrefString("__IF_OFF_IGNORED_DEFINE");
}
} else {
// Inside another define.
// Can't subst now, or