mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-09-03 20:52:55 -05:00
Merge pull request #1715 from jakobandersen/cpp-enum-support
C++, enum support and fix of HTML search.
This commit is contained in:
@@ -134,6 +134,18 @@ def test_type_definitions():
|
||||
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', 'A : unsigned int')
|
||||
check('enum', 'public A', 'A')
|
||||
check('enum', 'private A')
|
||||
|
||||
check('enumerator', 'A')
|
||||
check('enumerator', 'A = std::numeric_limits<unsigned long>::max()')
|
||||
|
||||
def test_bases():
|
||||
check('class', 'A')
|
||||
check('class', 'A::B::C')
|
||||
@@ -143,7 +155,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()')
|
||||
@@ -155,4 +166,4 @@ def test_operators():
|
||||
# # used for getting all the ids out for checking
|
||||
# for a in ids:
|
||||
# print(a)
|
||||
# raise DefinitionError("")
|
||||
# raise DefinitionError("")
|
||||
|
||||
Reference in New Issue
Block a user