mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internal: cppcheck fixes. No functional change intended.
This commit is contained in:
@@ -155,6 +155,7 @@ string V3Os::filenameNonExt(const string& filename) {
|
||||
|
||||
string V3Os::filenameSubstitute(const string& filename) {
|
||||
string out;
|
||||
// cppcheck-has-bug-suppress unusedLabel
|
||||
enum : uint8_t { NONE, PAREN, CURLY } brackets = NONE;
|
||||
for (string::size_type pos = 0; pos < filename.length(); ++pos) {
|
||||
if ((filename[pos] == '$') && (pos + 1 < filename.length())) {
|
||||
|
||||
Reference in New Issue
Block a user