Skip to content
Snippets Groups Projects
Commit 6c66902e authored by Botond Ballo's avatar Botond Ballo
Browse files

Bug 1835696 - Handle DependentNameTypeLoc in MozsearchIndexer. r=asuth DONTBUILD

parent 9af5a6e1
No related branches found
No related tags found
No related merge requests found
......@@ -1903,6 +1903,20 @@ public:
return true;
}
bool VisitDependentNameTypeLoc(DependentNameTypeLoc L) {
SourceLocation Loc = L.getNameLoc();
normalizeLocation(&Loc);
if (!isInterestingLocation(Loc)) {
return true;
}
for (const NamedDecl *D :
Resolver->resolveDependentNameType(L.getTypePtr())) {
visitHeuristicResult(Loc, D);
}
return true;
}
bool VisitDeclRefExpr(DeclRefExpr *E) {
SourceLocation Loc = E->getExprLoc();
normalizeLocation(&Loc);
......@@ -2010,6 +2024,9 @@ public:
} else if (const EnumConstantDecl *E = dyn_cast<EnumConstantDecl>(ND)) {
MaybeType = E->getType();
SyntaxKind = "enum";
} else if (const TypedefNameDecl *T = dyn_cast<TypedefNameDecl>(ND)) {
MaybeType = T->getUnderlyingType();
SyntaxKind = "type";
}
if (SyntaxKind) {
std::string Mangled = getMangledName(CurMangleContext, ND);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment