forked from OSchip/llvm-project
[clang-tidy] Fix assertion in RenamerClangTidyChecks
This commit is contained in:
parent
1024e82469
commit
aef778d4d3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue