You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
list.front()->printAst(mSettings.verbose, mSettings.xml, list.getFiles(), out);// TODO: do not depend on --verbose
5948
5951
5952
+
// TODO: add option
5949
5953
list.front()->printValueFlow(mSettings.xml, out);
5950
5954
5951
5955
if (mSettings.xml)
5952
5956
out << "</debug>" << std::endl;
5953
5957
}
5958
+
}
5954
5959
5955
-
if (mSymbolDatabase && simplification == 2U && mSettings.debugwarnings) {
5956
-
printUnknownTypes();
5960
+
voidTokenizer::validateTypes() const
5961
+
{
5962
+
if (!mSymbolDatabase || !mSettings.debugwarnings)
5963
+
return;
5957
5964
5958
-
// the typeStartToken() should come before typeEndToken()
5959
-
for (const Variable *var : mSymbolDatabase->variableList()) {
5960
-
if (!var)
5961
-
continue;
5965
+
printUnknownTypes();
5962
5966
5963
-
const Token * typetok = var->typeStartToken();
5964
-
while (typetok && typetok != var->typeEndToken())
5965
-
typetok = typetok->next();
5967
+
// the typeStartToken() should come before typeEndToken()
5968
+
for (const Variable *var : mSymbolDatabase->variableList()) {
5969
+
if (!var)
5970
+
continue;
5966
5971
5967
-
if (typetok != var->typeEndToken()) {
5968
-
reportError(var->typeStartToken(),
5969
-
Severity::debug,
5970
-
"debug",
5971
-
"Variable::typeStartToken() of variable '" + var->name() + "' is not located before Variable::typeEndToken(). The location of the typeStartToken() is '" + var->typeStartToken()->str() + "' at line " + std::to_string(var->typeStartToken()->linenr()));
5972
-
}
5972
+
const Token * typetok = var->typeStartToken();
5973
+
while (typetok && typetok != var->typeEndToken())
5974
+
typetok = typetok->next();
5975
+
5976
+
if (typetok != var->typeEndToken()) {
5977
+
reportError(var->typeStartToken(),
5978
+
Severity::debug,
5979
+
"debug",
5980
+
"Variable::typeStartToken() of variable '" + var->name() + "' is not located before Variable::typeEndToken(). The location of the typeStartToken() is '" + var->typeStartToken()->str() + "' at line " + std::to_string(var->typeStartToken()->linenr()));
0 commit comments