aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaAccess.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-28 12:20:14 +0000
committerAlp Toker <alp@nuanti.com>2014-05-28 12:20:14 +0000
commit2afa8780d62a9334fdbdb0c46f814d211e2083b3 (patch)
treed1ee6166d6845e905784c21d0dd9f6d0eb2f88c4 /clang/lib/Sema/SemaAccess.cpp
parenta9c452121a395908ed3f8e4034fc55254933bbd1 (diff)
downloadllvm-2afa8780d62a9334fdbdb0c46f814d211e2083b3.zip
llvm-2afa8780d62a9334fdbdb0c46f814d211e2083b3.tar.gz
llvm-2afa8780d62a9334fdbdb0c46f814d211e2083b3.tar.bz2
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
Diffstat (limited to 'clang/lib/Sema/SemaAccess.cpp')
-rw-r--r--clang/lib/Sema/SemaAccess.cpp3
1 files changed, 2 insertions, 1 deletions
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,