From: Sebastian Redl Date: Sat, 8 Nov 2008 15:40:37 +0000 (+0000) Subject: Update C++ status to reflect parser capabilities for chapter 9 (classes). Slightly... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ab963c6221ac088fad73a47bc7a0a0b266b030da;p=clang Update C++ status to reflect parser capabilities for chapter 9 (classes). Slightly extend the class parser test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58909 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Parser/cxx-class.cpp b/test/Parser/cxx-class.cpp index 6d030bdc57..ef0c901dfa 100644 --- a/test/Parser/cxx-class.cpp +++ b/test/Parser/cxx-class.cpp @@ -1,4 +1,5 @@ -// RUN: clang -parse-noop -verify %s +// RUN: clang -parse-noop -verify %s +class C; class C { public: protected: @@ -14,7 +15,14 @@ public: void m() { int l = 2; } + virtual int vf() const volatile = 0; private: int x,f(),y,g(); + inline int h(); + static const int sci = 10; }; +void glo() +{ + struct local {}; +} diff --git a/www/cxx_status.html b/www/cxx_status.html index effbc9e412..c59295769f 100644 --- a/www/cxx_status.html +++ b/www/cxx_status.html @@ -585,20 +585,118 @@ welcome!

-9 [class] -  9.1 [class.name] -  9.2 [class.mem] -  9.3 [class.mfct] -    9.3.1 [class.mfct.non-static] -    9.3.2 [class.this] -  9.4 [class.static] -    9.4.1 [class.static.mfct] -    9.4.2 [class.static.data] -  9.5 [class.union] -  9.6 [class.bit] -  9.7 [class.nest] -  9.8 [class.local] -  9.9 [class.nested.type] + + 9 [class] + + + + + Cannot parse nested name specifiers. + + +   9.1 [class.name] + ✓ + + + + + + +   9.2 [class.mem] + + + + + No parser support for nested names, mutable members, using declarations, or templates. + + +   9.3 [class.mfct] + + + + + Out of line definition is not possible. + + +     9.3.1 [class.mfct.non-static] + ✓ + + + + + + +     9.3.2 [class.this] + ✓ + + + + + + +   9.4 [class.static] + + + + + Out of line definition is not possible. + + +     9.4.1 [class.static.mfct] + ✓ + + + + + + +     9.4.2 [class.static.data] + ✓ + + + + + + +   9.5 [class.union] + ✓ + + + + + + +   9.6 [class.bit] + ✓ + + + + + + +   9.7 [class.nest] + + + + + Out of line definition is not possible. + + +   9.8 [class.local] + ✓ + + + + + + +   9.9 [class.nested.type] + ✓ + + + + + 10 [class.derived]   10.1 [class.mi]   10.2 [class.member.lookup]