Add -Wwarn-style, -Wno-style, and DEFPARAM warnings

This commit is contained in:
Wilson Snyder
2010-12-25 15:13:56 -05:00
parent 7dee344ea9
commit 323c96f42f
9 changed files with 119 additions and 7 deletions
+7
View File
@@ -134,6 +134,13 @@ void FileLine::warnLintOff(bool flag) {
}
}
void FileLine::warnStyleOff(bool flag) {
for (int codei=V3ErrorCode::EC_FIRST_WARN; codei<V3ErrorCode::_ENUM_MAX; codei++) {
V3ErrorCode code = (V3ErrorCode)codei;
if (code.styleError()) warnOff(code, flag);
}
}
FileLine* FileLine::copyOrSameFileLine() {
// When a fileline is "used" to produce a node, calls this function.
// Return this, or a copy of this