| 5485 | } |
| 5486 | |
| 5487 | static const Scope* findEnumScopeInBase(const Scope* scope, const std::string& tokStr) |
| 5488 | { |
| 5489 | if (scope->definedType) { |
| 5490 | const std::vector<Type::BaseInfo>& derivedFrom = scope->definedType->derivedFrom; |
| 5491 | for (const Type::BaseInfo& i : derivedFrom) { |
| 5492 | const Type *derivedFromType = i.type; |
| 5493 | if (derivedFromType && derivedFromType->classScope) { |
| 5494 | if (const Scope* enumScope = derivedFromType->classScope->findRecordInNestedList(tokStr)) |
| 5495 | return enumScope; |
| 5496 | } |
| 5497 | } |
| 5498 | } |
| 5499 | return nullptr; |
| 5500 | } |
| 5501 | |
| 5502 | static const Enumerator* findEnumeratorInUsingList(const Scope* scope, const std::string& name) |
| 5503 | { |
no test coverage detected