SourceEntityWalker: Add a parameter to visitDeclReference() describing the kind of the reference under visit. NFC

This commit is contained in:
Xi Ge
2016-12-20 14:29:12 -08:00
parent dbefa60605
commit 14f968a5ed
10 changed files with 66 additions and 33 deletions

View File

@@ -1367,7 +1367,8 @@ private:
return true;
}
bool visitDeclReference(ValueDecl *D, CharSourceRange Range,
TypeDecl *CtorTyRef, Type T) override {
TypeDecl *CtorTyRef, Type T,
SemaReferenceKind Kind) override {
if (Cancelled)
return false;
if (CtorTyRef)