mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +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:
+1
-1
@@ -100,7 +100,7 @@ protected:
|
||||
// from the V3LangCode to the various Lex BEGIN states. The language
|
||||
// of this source file is updated here, in case there have been any
|
||||
// intervening +<lang>ext+ options since it was first encountered.
|
||||
FileLine* const modfileline = new FileLine{modfilename};
|
||||
const FileLine* const modfileline = new FileLine{modfilename};
|
||||
modfileline->language(v3Global.opt.fileLanguage(modfilename));
|
||||
V3Parse::ppPushText(
|
||||
parsep, ("`begin_keywords \""s + modfileline->language().ascii() + "\"\n"));
|
||||
|
||||
Reference in New Issue
Block a user