RangeInfo: Report RValue type if a decl reference is of read-only LValue type. (#8300)

This commit is contained in:
Xi Ge
2017-03-23 15:52:54 -07:00
committed by GitHub
parent f7562e42b6
commit 1827fb1436
11 changed files with 77 additions and 44 deletions

View File

@@ -1626,7 +1626,7 @@ private:
}
bool visitDeclReference(ValueDecl *D, CharSourceRange Range,
TypeDecl *CtorTyRef, ExtensionDecl *ExtTyRef, Type T,
SemaReferenceKind Kind) override {
ReferenceMetaData Data) override {
if (Cancelled)
return false;
if (CtorTyRef)