mirror of
https://github.com/verilator/verilator.git
synced 2026-09-08 02:28:43 +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:
+4
-4
@@ -718,15 +718,15 @@ extern const char* vl_mc_scan_plusargs(const char* prefixp); // PLIish
|
||||
/// Create two 32-bit words from quadword
|
||||
/// WData is always at least 2 words; does not clean upper bits
|
||||
#define VL_SET_WQ(owp, data) \
|
||||
{ \
|
||||
do { \
|
||||
(owp)[0] = static_cast<IData>(data); \
|
||||
(owp)[1] = static_cast<IData>((data) >> VL_EDATASIZE); \
|
||||
}
|
||||
} while (false)
|
||||
#define VL_SET_WI(owp, data) \
|
||||
{ \
|
||||
do { \
|
||||
(owp)[0] = static_cast<IData>(data); \
|
||||
(owp)[1] = 0; \
|
||||
}
|
||||
} while (false)
|
||||
#define VL_SET_QW(lwp) \
|
||||
((static_cast<QData>((lwp)[0])) \
|
||||
| (static_cast<QData>((lwp)[1]) << (static_cast<QData>(VL_EDATASIZE))))
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
// Function requires a "context" in the import declaration
|
||||
#define _VL_SVDPI_CONTEXT_WARN() \
|
||||
_VL_SVDPI_WARN("%%Warning: DPI C Function called by Verilog DPI import with missing " \
|
||||
"'context' keyword.\n");
|
||||
"'context' keyword.\n")
|
||||
|
||||
//======================================================================
|
||||
//======================================================================
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
// Not supported yet
|
||||
#define _VL_VPI_UNIMP() \
|
||||
_VL_VPI_ERROR(__FILE__, __LINE__, Verilated::catName("Unsupported VPI function: ", VL_FUNC));
|
||||
(_VL_VPI_ERROR(__FILE__, __LINE__, Verilated::catName("Unsupported VPI function: ", VL_FUNC)))
|
||||
|
||||
//======================================================================
|
||||
// Implementation
|
||||
@@ -1026,7 +1026,7 @@ vpiHandle vpi_register_cb(p_cb_data cb_data_p) {
|
||||
_VL_VPI_WARNING(__FILE__, __LINE__, "%s: Unsupported callback type %s", VL_FUNC,
|
||||
VerilatedVpiError::strFromVpiCallbackReason(cb_data_p->reason));
|
||||
return NULL;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
PLI_INT32 vpi_remove_cb(vpiHandle object) {
|
||||
|
||||
Reference in New Issue
Block a user