[PATCH] D22881: Fix NamedDeclFindingASTVisitor
Alexander Shaposhnikov via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 28 01:32:43 PDT 2016
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
More information about the cfe-commits
mailing list