Skip to content

Commit 33abf52

Browse files
committed
fix
1 parent a83e90d commit 33abf52

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/errorlogger.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,8 @@ void ErrorMessage::calculateWarningHash(const std::list<const Token*>& callstack
261261
for (const Token* tok: callstack) {
262262
if (!tok)
263263
continue;
264+
if (!tok->scope())
265+
return; // might be a syntax error before scope info has been set
264266
if (tok->scope()->isExecutable()) {
265267
// Executable scope => include all tokens in the function => if the
266268
// function is changed the hash is changed

0 commit comments

Comments
 (0)