Field roles, add C test

This commit is contained in:
Jakob Lykke Andersen 2021-06-03 16:42:00 +02:00
parent d5598b363e
commit 27d40519c1
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,4 @@
.. c:function:: void f(int a, int *b)
:param int a:
:param int* b:

View File

@ -630,6 +630,13 @@ def test_build_ns_lookup(app, warning):
assert len(ws) == 0
@pytest.mark.sphinx(testroot='domain-c', confoverrides={'nitpicky': True})
def test_build_field_role(app, status, warning):
app.builder.build_all()
ws = filter_warnings(warning, "field-role")
assert len(ws) == 0
def _get_obj(app, queryName):
domain = app.env.get_domain('c')
for name, dispname, objectType, docname, anchor, prio in domain.get_objects():