Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix the suppression
  • Loading branch information
Your Name
Your Name committed Jul 10, 2026
commit 071bed2a4f4a964eaf731f215e57f312844e085b
1 change: 0 additions & 1 deletion lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@
} while (unknowns && retry < 100);

// this shouldn't happen so output a debug warning
if (retry == 100 && mSettings->debugwarnings) {
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
for (const Scope& scope : scopeList) {
if (scope.isClassOrStruct() && scope.definedType->needInitialization == Type::NeedInitialization::Unknown)
debugMessage(scope.classDef, "debug", "SymbolDatabase couldn't resolve all user defined types.");
Expand Down Expand Up @@ -1835,7 +1835,6 @@
}
}

// cppcheck-suppress functionConst - has side effects
void SymbolDatabase::setArrayDimensionsUsingValueFlow()
{
// set all unknown array dimensions
Expand Down Expand Up @@ -4747,7 +4746,7 @@
typeTok = typeTok->next();
if (Token::Match(typeTok, ",|)")) { // #8333
scope->symdb->mTokenizer->syntaxError(typeTok);
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
}
if (Token::Match(typeTok, "%type% <") && Token::Match(typeTok->linkAt(1), "> :: %type%"))
typeTok = typeTok->linkAt(1)->tokAt(2);
// skip over qualification
Expand All @@ -4766,7 +4765,7 @@

if (hasBody())
scope->symdb->debugMessage(nameTok, "varid0", "Function::addArguments found argument \'" + nameTok->str() + "\' with varid 0.");
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
} else
endTok = typeTok;
} else
endTok = tok->previous();
Expand Down Expand Up @@ -5041,7 +5040,7 @@
// C4267 VC++ warning instead of several dozens lines
const int varIndex = varlist.size();
varlist.emplace_back(token_, start_, end_, varIndex, access_, type_, scope_, scope_->symdb->mSettings);
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
}

// Get variable list..
void Scope::getVariableList()
Expand Down Expand Up @@ -7290,7 +7289,7 @@

// c++17 auto type deduction of braced init list
if (parent->isCpp() && mSettings->standards.cpp >= Standards::CPP17 && vt2 && Token::Match(parent->tokAt(-2), "auto %var% {")) {
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Token *autoTok = parent->tokAt(-2);
setValueType(autoTok, *vt2);
setAutoTokenProperties(autoTok);
if (parent->previous()->variable())
Expand Down
Loading