mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
C++, minor code formatting fixes.
This commit is contained in:
@@ -133,10 +133,10 @@ def test_type_definitions():
|
||||
raises(DefinitionError, parse, 'function', 'int foo(D d=x(a')
|
||||
check('function', 'int foo(const A&... a)')
|
||||
check('function', 'virtual void f()')
|
||||
|
||||
|
||||
check('class', 'public A', 'A')
|
||||
check('class', 'private A')
|
||||
|
||||
|
||||
check('enum', 'A')
|
||||
check('enum', 'A : std::underlying_type<B>::type')
|
||||
check('enum', 'struct A')
|
||||
@@ -145,7 +145,7 @@ def test_type_definitions():
|
||||
check('enum', 'class A : unsigned int')
|
||||
check('enum', 'class public A', 'class A')
|
||||
check('enum', 'class private A')
|
||||
|
||||
|
||||
check('enumerator', 'A')
|
||||
check('enumerator', 'A = std::numeric_limits<unsigned long>::max()')
|
||||
|
||||
@@ -158,7 +158,6 @@ def test_bases():
|
||||
check('class', 'A : B, C')
|
||||
check('class', 'A : B, protected C, D')
|
||||
|
||||
|
||||
def test_operators():
|
||||
check('function', 'void operator new [ ] ()', 'void operator new[]()')
|
||||
check('function', 'void operator delete ()', 'void operator delete()')
|
||||
|
||||
Reference in New Issue
Block a user