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
if (mSymbolDatabase && simplification == 2U && mSettings.debugwarnings) {
5931
-
printUnknownTypes();
5933
+
voidTokenizer::validateTypes() const
5934
+
{
5935
+
if (!mSymbolDatabase || !mSettings.debugwarnings)
5936
+
return;
5932
5937
5933
-
// the typeStartToken() should come before typeEndToken()
5934
-
for (const Variable *var : mSymbolDatabase->variableList()) {
5935
-
if (!var)
5936
-
continue;
5938
+
printUnknownTypes();
5937
5939
5938
-
const Token * typetok = var->typeStartToken();
5939
-
while (typetok && typetok != var->typeEndToken())
5940
-
typetok = typetok->next();
5940
+
// the typeStartToken() should come before typeEndToken()
5941
+
for (const Variable *var : mSymbolDatabase->variableList()) {
5942
+
if (!var)
5943
+
continue;
5941
5944
5942
-
if (typetok != var->typeEndToken()) {
5943
-
reportError(var->typeStartToken(),
5944
-
Severity::debug,
5945
-
"debug",
5946
-
"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()));
5947
-
}
5945
+
const Token * typetok = var->typeStartToken();
5946
+
while (typetok && typetok != var->typeEndToken())
5947
+
typetok = typetok->next();
5948
+
5949
+
if (typetok != var->typeEndToken()) {
5950
+
reportError(var->typeStartToken(),
5951
+
Severity::debug,
5952
+
"debug",
5953
+
"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