Revert "Fix CID 1368511"
This reverts commit 41a79152a94889e0d9c8e1d11032ce06f516bd9c.
This commit is contained in:
parent
1a057bc23a
commit
3d587d2704
@ -1127,13 +1127,10 @@ void SymbolDatabase::createSymbolDatabaseSetScopePointers()
|
|||||||
start = const_cast<Token*>(_tokenizer->list.front());
|
start = const_cast<Token*>(_tokenizer->list.front());
|
||||||
end = const_cast<Token*>(_tokenizer->list.back());
|
end = const_cast<Token*>(_tokenizer->list.back());
|
||||||
}
|
}
|
||||||
assert((start == nullptr) == (end == nullptr));
|
if (start && end) {
|
||||||
if (start == nullptr)
|
start->scope(&*it);
|
||||||
continue;
|
end->scope(&*it);
|
||||||
|
}
|
||||||
start->scope(&*it);
|
|
||||||
end->scope(&*it);
|
|
||||||
|
|
||||||
if (start != end && start->next() != end) {
|
if (start != end && start->next() != end) {
|
||||||
for (Token* tok = start->next(); tok != end; tok = tok->next()) {
|
for (Token* tok = start->next(); tok != end; tok = tok->next()) {
|
||||||
if (tok->str() == "{") {
|
if (tok->str() == "{") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user