diff options
author | Anders Carlsson <andersca@mac.com> | 2009-03-26 00:24:17 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-03-26 00:24:17 +0000 |
commit | 50713450f61b85805e1ca97e547a4082b7798bd3 (patch) | |
tree | 20856bc121adb7398bf1fb648fbe397a2be064b8 /include/clang/Basic | |
parent | bbf462314b1dc8e422b7c4dd4cac47e566aedf6d (diff) |
Check that the access specifier of a member redeclaration is the same as the original declaration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/DiagnosticSemaKinds.td | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index fb194fe4c3..5dbc3d0ce8 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -234,6 +234,12 @@ def err_deleted_non_function : Error< def err_deleted_decl_not_first : Error< "deleted definition must be first declaration">; +// C++ access checking +def err_class_redeclared_with_different_access : Error< + "%0 redeclared with '%1' access">; +def note_previous_access_declaration : Note< + "previously declared '%1' here">; + // C++ name lookup def err_incomplete_nested_name_spec : Error< "incomplete type %0 named in nested name specifier">; |