C++, minor code formatting fixes.

This commit is contained in:
Jakob Lykke Andersen
2015-02-07 01:26:35 +01:00
parent d8a109976b
commit d09bcfa717
2 changed files with 43 additions and 45 deletions
+3 -4
View File
@@ -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()')