Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Mar 12, 2024
1 parent ad2e8a8 commit 4a280ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2172,7 +2172,7 @@ void SymbolDatabase::validateVariables() const
if (var) {
if (!var->scope()) {
const Function* function = getFunctionForArgumentvariable(var);
if (!var->isArgument() || (!function || function->hasBody())) { // exception for variables which only appear in a function declaration
if (!var->isArgument() || (!function || function->hasBody())) { // variables which only appear in a function declaration do not have a scope
throw InternalError(var->nameToken(), "Analysis failed (variable without scope). If the code is valid then please report this failure.", InternalError::INTERNAL);
}
}
Expand Down

0 comments on commit 4a280ed

Please sign in to comment.