]> granicus.if.org Git - clang/commit
Implement access declarations. Most of the work here is parsing them, which
authorJohn McCall <rjmccall@apple.com>
Fri, 11 Dec 2009 02:10:03 +0000 (02:10 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 11 Dec 2009 02:10:03 +0000 (02:10 +0000)
commit60fa3cfd7aa63c29f9fc2d593bac56a3646337cc
treeeb0327997ca81a13f5706e7b3ff0a5a6b47936cf
parent7e1848ddba7b2a5f73a17387de7078bf8de7a646
Implement access declarations.  Most of the work here is parsing them, which
is difficult because they're so terribly, terribly ambiguous.

We implement access declarations in terms of using declarations, which is
quite reasonable.  However, we should really persist the access/using
distinction in the AST and use the appropriate name in diagnostics.  This
isn't a priority, so I'll just file a PR and hope someone else does it. :)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91095 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Parse/Action.h
lib/Parse/MinimalAction.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Sema/Sema.h
lib/Sema/SemaDeclCXX.cpp
test/CXX/class.access/class.access.dcl/p1.cpp [new file with mode: 0644]