diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-03 01:35:08 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-03 01:35:08 +0000 |
commit | 7861a803467c3c2f58bed9bca82980f5122ea19a (patch) | |
tree | 9d7f4cf2c362f25042ec9490ca3f534ea5719ab7 /clang/test/SemaTemplate/constructor-template.cpp | |
parent | d195f9e5c31b91ce970bd0ae4f9998b951f18cc4 (diff) | |
download | bcm5719-llvm-7861a803467c3c2f58bed9bca82980f5122ea19a.tar.gz bcm5719-llvm-7861a803467c3c2f58bed9bca82980f5122ea19a.zip |
Introduce a new class, UnqualifiedId, that provides a parsed
representation of a C++ unqualified-id, along with a single parsing
function (Parser::ParseUnqualifiedId) that will parse all of the
various forms of unqualified-id in C++.
Replace the representation of the declarator name in Declarator with
the new UnqualifiedId class, simplifying declarator-id parsing
considerably and providing more source-location information to
Sema. In the future, I hope to migrate all of the other
unqualified-id-parsing code over to this single representation, then
begin to merge actions that are currently only different because we
didn't have a unqualified notion of the name in the parser.
llvm-svn: 85851
Diffstat (limited to 'clang/test/SemaTemplate/constructor-template.cpp')
-rw-r--r-- | clang/test/SemaTemplate/constructor-template.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/constructor-template.cpp b/clang/test/SemaTemplate/constructor-template.cpp index acd845bc2fd..79bf7c585e3 100644 --- a/clang/test/SemaTemplate/constructor-template.cpp +++ b/clang/test/SemaTemplate/constructor-template.cpp @@ -51,3 +51,4 @@ void test_X1(X1<int> xi) { template<class C> struct A {}; template <> struct A<int>{A(const A<int>&);}; struct B { A<int> x; B(B& a) : x(a.x) {} }; + |