Update style guide citation about redundant semicolons. PiperOrigin-RevId: 331189134
diff --git a/verilog/analysis/checkers/forbid_consecutive_null_statements_rule.cc b/verilog/analysis/checkers/forbid_consecutive_null_statements_rule.cc index cb7519d..6e8201c 100644 --- a/verilog/analysis/checkers/forbid_consecutive_null_statements_rule.cc +++ b/verilog/analysis/checkers/forbid_consecutive_null_statements_rule.cc
@@ -42,7 +42,7 @@ return "forbid-consecutive-null-statements"; } const char ForbidConsecutiveNullStatementsRule::kTopic[] = - "consecutive-null-statements"; + "redundant-semicolons"; const char ForbidConsecutiveNullStatementsRule::kMessage[] = "Do not use consecutive null statements like \';;\'."; @@ -56,6 +56,7 @@ void ForbidConsecutiveNullStatementsRule::HandleLeaf( const verible::SyntaxTreeLeaf& leaf, const SyntaxTreeContext& context) { if (context.IsInside(NodeEnum::kForSpec)) { + // for loops are allowed to be: for (;;) state_ = State::kNormal; } else { switch (state_) {