C++, fix parsing of types prefixed with 'enum'.

Fixes michaeljones/breathe#223.
This commit is contained in:
Jakob Lykke Andersen
2015-10-01 22:28:54 +09:00
parent 3fb3fdbd53
commit df3d6476a4
3 changed files with 12 additions and 2 deletions

View File

@@ -226,6 +226,13 @@ def test_type_definitions():
check('function', 'friend std::ostream &f(std::ostream&, int)',
'f__osR.i', '1fRNSt7ostreamEi')
# from breathe#223
check('function', 'void f(struct E e)', 'f__E', '1f1E')
check('function', 'void f(class E e)', 'f__E', '1f1E')
check('function', 'void f(typename E e)', 'f__E', '1f1E')
check('function', 'void f(enum E e)', 'f__E', '1f1E')
check('function', 'void f(union E e)', 'f__E', '1f1E')
check('class', 'public A', "A", "1A", output='A')
check('class', 'private A', "A", "1A")