mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
cppcheck fixes. No functional change.
This commit is contained in:
parent
8ba494c71f
commit
11bfe7a7bb
@ -1220,7 +1220,7 @@ IData _vl_vsscanf(FILE* fp, // If a fscanf
|
||||
inPct = true;
|
||||
inIgnore = false;
|
||||
} else if (!inPct && std::isspace(pos[0])) { // Format spaces
|
||||
while (std::isspace(pos[1])) pos++;
|
||||
while (std::isspace(pos[1])) ++pos;
|
||||
_vl_vsss_skipspace(fp, floc, fromp, fstr);
|
||||
} else if (!inPct) { // Expected Format
|
||||
_vl_vsss_skipspace(fp, floc, fromp, fstr);
|
||||
|
@ -121,7 +121,7 @@ private:
|
||||
|
||||
public:
|
||||
// CONSTRUCTORS
|
||||
VerilatedCovImp(VerilatedContext* contextp)
|
||||
explicit VerilatedCovImp(VerilatedContext* contextp)
|
||||
: m_contextp{contextp} {}
|
||||
VL_UNCOPYABLE(VerilatedCovImp);
|
||||
|
||||
|
@ -165,7 +165,7 @@ public:
|
||||
/// Return default filename for the current thread
|
||||
static std::string defaultFilename() VL_MT_SAFE { return threadCovp()->defaultFilename(); }
|
||||
/// Write all coverage data to a file for the current thread
|
||||
static void write(const std::string filename) VL_MT_SAFE { threadCovp()->write(filename); }
|
||||
static void write(const std::string& filename) VL_MT_SAFE { threadCovp()->write(filename); }
|
||||
static void write() VL_MT_SAFE { write(defaultFilename()); }
|
||||
/// Clear coverage points (and call delete on all items) for the current thread
|
||||
static void clear() VL_MT_SAFE { threadCovp()->clear(); }
|
||||
|
Loading…
Reference in New Issue
Block a user