Merge branch 'master' of https://github.com/danmar/cppcheck
This commit is contained in:
commit
12e38b7f30
|
@ -150,6 +150,10 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
|
||||||
new_scope->classDef = tok;
|
new_scope->classDef = tok;
|
||||||
new_scope->classStart = tok2;
|
new_scope->classStart = tok2;
|
||||||
new_scope->classEnd = tok2->link();
|
new_scope->classEnd = tok2->link();
|
||||||
|
// make sure we have valid code
|
||||||
|
if (!new_scope->classEnd) {
|
||||||
|
_tokenizer->syntaxError(tok);
|
||||||
|
}
|
||||||
scope = new_scope;
|
scope = new_scope;
|
||||||
tok = tok2;
|
tok = tok2;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue