mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: cppcheck cleanups. No functional change.
This commit is contained in:
+6
-4
@@ -172,10 +172,12 @@ void V3ErrorGuarded::v3errorEndGuts(std::ostringstream& sstr, const string& extr
|
||||
|
||||
// If suppressed print only first line to reduce verbosity
|
||||
string firstLine = msg;
|
||||
string::size_type pos;
|
||||
if ((pos = firstLine.find('\n')) != string::npos) {
|
||||
firstLine.erase(pos, firstLine.length() - pos);
|
||||
firstLine += "...";
|
||||
{
|
||||
string::size_type pos;
|
||||
if ((pos = firstLine.find('\n')) != string::npos) {
|
||||
firstLine.erase(pos, firstLine.length() - pos);
|
||||
firstLine += "...";
|
||||
}
|
||||
}
|
||||
if (m_errorSuppressed) msg = firstLine;
|
||||
// Suppress duplicate messages
|
||||
|
||||
Reference in New Issue
Block a user