[clang-tidy] Fix assertion in RenamerClangTidyChecks

This commit is contained in:
Nathan James 2020-05-15 12:15:35 +01:00
parent 1024e82469
commit aef778d4d3
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,8 @@ public:
/// flag indicating the multiple resolutions.
NameLookup findDeclInBases(const CXXRecordDecl &Parent, StringRef DeclName,
bool AggressiveTemplateLookup) {
if (!Parent.hasDefinition())
return NameLookup(nullptr);
if (const NamedDecl *InClassRef = findDecl(Parent, DeclName))
return NameLookup(InClassRef);
const NamedDecl *Found = nullptr;