mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Remove empty statements. No functional change intended.
Remove stray semicolons, mostly by capturing them in macros accurately. This removes a ton on lint warnings from CLion.
This commit is contained in:
+2
-2
@@ -1884,12 +1884,12 @@ void EmitCStmts::emitOpName(AstNode* nodep, const string& format, AstNode* lhsp,
|
||||
string nextComma;
|
||||
bool needComma = false;
|
||||
#define COMMA \
|
||||
{ \
|
||||
do { \
|
||||
if (!nextComma.empty()) { \
|
||||
puts(nextComma); \
|
||||
nextComma = ""; \
|
||||
} \
|
||||
}
|
||||
} while (false)
|
||||
|
||||
putbs("");
|
||||
for (string::const_iterator pos = format.begin(); pos != format.end(); ++pos) {
|
||||
|
||||
Reference in New Issue
Block a user