SymbolDatabase: Remove useless break. As far as I know Tokenizer::syntaxError() throws an exception and therefore the break after the function call is unreachable
This commit is contained in:
parent
ff3c0993ac
commit
8a3c25210d
|
@ -128,10 +128,8 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
|
||||||
// only create base list for classes and structures
|
// only create base list for classes and structures
|
||||||
if (new_scope->isClassOrStruct()) {
|
if (new_scope->isClassOrStruct()) {
|
||||||
// goto initial '{'
|
// goto initial '{'
|
||||||
if (!new_scope->definedType) {
|
if (!new_scope->definedType)
|
||||||
_tokenizer->syntaxError(nullptr); // #6808
|
_tokenizer->syntaxError(nullptr); // #6808
|
||||||
break;
|
|
||||||
}
|
|
||||||
tok2 = new_scope->definedType->initBaseInfo(tok, tok2);
|
tok2 = new_scope->definedType->initBaseInfo(tok, tok2);
|
||||||
// make sure we have valid code
|
// make sure we have valid code
|
||||||
if (!tok2) {
|
if (!tok2) {
|
||||||
|
|
Loading…
Reference in New Issue