| 5500 | } |
| 5501 | |
| 5502 | static const Enumerator* findEnumeratorInUsingList(const Scope* scope, const std::string& name) |
| 5503 | { |
| 5504 | for (const auto& u : scope->usingList) { |
| 5505 | if (!u.scope) |
| 5506 | continue; |
| 5507 | for (const Scope* nested : u.scope->nestedList) { |
| 5508 | if (nested->type != ScopeType::eEnum) |
| 5509 | continue; |
| 5510 | const Enumerator* e = nested->findEnumerator(name); |
| 5511 | if (e && !(e->scope && e->scope->enumClass)) |
| 5512 | return e; |
| 5513 | } |
| 5514 | } |
| 5515 | return nullptr; |
| 5516 | } |
| 5517 | |
| 5518 | const Enumerator * SymbolDatabase::findEnumerator(const Token * tok, std::set<std::string>& tokensThatAreNotEnumeratorValues) const |
| 5519 | { |
no test coverage detected