diff options
author | Tres Walsh <tres.walsh@mnmlstc.com> | 2013-08-07 09:24:32 -0700 |
---|---|---|
committer | Tres Walsh <tres.walsh@mnmlstc.com> | 2013-08-07 09:24:32 -0700 |
commit | 829a5150da96d059052c83c360951895ec8bf39c (patch) | |
tree | 365ffc8e1d65764c483264435a10bac9902da3fb /tests/test_cpp_domain.py | |
parent | 04d22a53d55687defb041fffe2190978507a4bb5 (diff) | |
download | sphinx-git-829a5150da96d059052c83c360951895ec8bf39c.tar.gz |
Add support for C++11 member function ref-qualifiers and C++03 volatile member function ref-qualifier
Specifically, support for the following has been added:
* rvalue reference for *this
* volatile
* override keyword support
Additionally support for '= default' and '= delete' has been added.
Several tests have also been added to test_cpp_domain.py to insure that these features actually work.
Diffstat (limited to 'tests/test_cpp_domain.py')
-rw-r--r-- | tests/test_cpp_domain.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/test_cpp_domain.py b/tests/test_cpp_domain.py index 2168d7e44..039104bda 100644 --- a/tests/test_cpp_domain.py +++ b/tests/test_cpp_domain.py @@ -75,6 +75,30 @@ def test_type_definitions(): x = 'int get_value() const noexcept' assert unicode(parse('function', x)) == x + x = 'int get_value() const noexcept = delete' + assert unicode(parse('function', x)) == x + + x = 'MyClass::MyClass(MyClass::MyClass&&) = default' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_virtual_function() const override' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_member_function() volatile' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_member_function() const volatile' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_member_function() &&' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_member_function() &' + assert unicode(parse('function', x)) == x + + x = 'MyClass::a_member_function() const &' + assert unicode(parse('function', x)) == x + x = 'int main(int argc, char* argv[][])' assert unicode(parse('function', x)) == x |