mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Internals: Fix remaining cppcheck errors (#6319)
Fixed the non const-related issue and added suppressions for the const ones. With that `make cppcheck` should be clean.
This commit is contained in:
@@ -282,7 +282,7 @@ AstVar* V3ParseGrammar::createVariable(FileLine* fileline, const string& name,
|
||||
return nodep;
|
||||
}
|
||||
|
||||
string V3ParseGrammar::unquoteString(FileLine* fileline, string text) {
|
||||
string V3ParseGrammar::unquoteString(FileLine* fileline, const std::string& text) {
|
||||
string errMsg;
|
||||
string res = VString::unquoteSVString(text, errMsg);
|
||||
if (!errMsg.empty()) fileline->v3error(errMsg.c_str());
|
||||
|
||||
Reference in New Issue
Block a user