alexshap added a comment.
i took a look at handleNestedNameSpecifierLoc:
const auto *Decl = NameLoc.getNestedNameSpecifier()->getAsNamespace();
if (Decl) {
setResult(Decl, NameLoc.getLocalBeginLoc(), NameLoc.getLocalEndLoc());
}
and added this check to VisitTypeLoc.
the other Visit* methods are:
VisitNamedDecl(const NamedDecl *Decl)
VisitDeclRefExpr(const DeclRefExpr *Expr)
VisitMemberExpr(const MemberExpr *Expr)
https://reviews.llvm.org/D22881
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits