diff options
Diffstat (limited to 'tests/test_domain_c.py')
| -rw-r--r-- | tests/test_domain_c.py | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/tests/test_domain_c.py b/tests/test_domain_c.py index d00e2cfa8..c2caa7517 100644 --- a/tests/test_domain_c.py +++ b/tests/test_domain_c.py @@ -28,7 +28,7 @@ from sphinx.util import docutils def parse(name, string): - parser = DefinitionParser(string, None) + parser = DefinitionParser(string, location=None, emitWarnings=True) parser.allowFallbackExpressionParsing = False ast = parser.parse_declaration(name, name) parser.assert_end() @@ -87,7 +87,7 @@ def check(name, input, idDict, output=None): def test_expressions(): def exprCheck(expr, output=None): - parser = DefinitionParser(expr, None) + parser = DefinitionParser(expr, location=None, emitWarnings=True) parser.allowFallbackExpressionParsing = False ast = parser.parse_expression() parser.assert_end() @@ -439,21 +439,6 @@ def test_attributes(): check('member', 'int *[[attr]] *i', {1: 'i__iPP', 2: '1i'}) -def test_xref_parsing(): - return # TODO - def check(target): - class Config: - cpp_id_attributes = ["id_attr"] - cpp_paren_attributes = ["paren_attr"] - parser = DefinitionParser(target, None, Config()) - ast, isShorthand = parser.parse_xref_object() - parser.assert_end() - check('f') - check('f()') - check('void f()') - check('T f()') - - # def test_print(): # # used for getting all the ids out for checking # for a in ids: |
