Added variable name to debug message about typeStartToken()
Fixed cppcheck message
This commit is contained in:
parent
0ae09c0029
commit
448195f255
|
@ -3842,7 +3842,7 @@ void Tokenizer::printDebugOutput() const
|
||||||
reportError(tok,
|
reportError(tok,
|
||||||
Severity::debug,
|
Severity::debug,
|
||||||
"debug",
|
"debug",
|
||||||
"Variable::typeStartToken() is not located before Variable::typeEndToken(). The location of the typeStartToken() is '" + var->typeStartToken()->str() + "' at line " + MathLib::toString(var->typeStartToken()->linenr()));
|
"Variable::typeStartToken() of variable '" + var->name() + "' is not located before Variable::typeEndToken(). The location of the typeStartToken() is '" + var->typeStartToken()->str() + "' at line " + MathLib::toString(var->typeStartToken()->linenr()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1062,7 +1062,7 @@ private:
|
||||||
// 1 scope: Global
|
// 1 scope: Global
|
||||||
ASSERT(db && db->scopeList.size() == 1);
|
ASSERT(db && db->scopeList.size() == 1);
|
||||||
|
|
||||||
if (db && db->scopeList.size() >= 1) {
|
if (db && !db->scopeList.empty()) {
|
||||||
// No functions
|
// No functions
|
||||||
ASSERT(db->scopeList.front().functionList.empty());
|
ASSERT(db->scopeList.front().functionList.empty());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue