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 | 4c35b5898bed4c2af42a641ca5e24451cd9db2a4 (patch) | |
| tree | 365ffc8e1d65764c483264435a10bac9902da3fb /tests/test_cpp_domain.py | |
| parent | 1a81abf4003128a2478e1a3800d851e3781262ee (diff) | |
| download | sphinx-4c35b5898bed4c2af42a641ca5e24451cd9db2a4.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 2168d7e4..039104bd 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 |
