From 2afa8780d62a9334fdbdb0c46f814d211e2083b3 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Wed, 28 May 2014 12:20:14 +0000 Subject: Consolidate some note diagnostics These note diags have the same message and can be unified further but for now let's just bring them together. Incidental change: Display a source range in the final attr diagnostic. llvm-svn: 209728 --- clang/lib/Sema/SemaAccess.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/Sema/SemaAccess.cpp') diff --git a/clang/lib/Sema/SemaAccess.cpp b/clang/lib/Sema/SemaAccess.cpp index dc574f1..ffdb0aa 100644 --- a/clang/lib/Sema/SemaAccess.cpp +++ b/clang/lib/Sema/SemaAccess.cpp @@ -1252,7 +1252,8 @@ static void DiagnoseAccessPath(Sema &S, << (base->getAccessSpecifierAsWritten() == AS_none); if (entity.isMemberAccess()) - S.Diag(entity.getTargetDecl()->getLocation(), diag::note_field_decl); + S.Diag(entity.getTargetDecl()->getLocation(), + diag::note_member_declared_at); } static void DiagnoseBadAccess(Sema &S, SourceLocation Loc, -- cgit v1.1