Merge pull request #1715 from jakobandersen/cpp-enum-support

C++, enum support and fix of HTML search.
This commit is contained in:
Georg Brandl
2015-02-09 07:32:24 +01:00
4 changed files with 303 additions and 37 deletions
+13 -2
View File
@@ -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("")