Field roles, add C++ test

This commit is contained in:
Jakob Lykke Andersen 2021-06-03 16:45:13 +02:00
parent 27d40519c1
commit 783314d54d
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,5 @@
.. cpp:function:: void f()
:throws int:
:throws int*:

View File

@ -1237,6 +1237,13 @@ not found in `{test}`
assert any_role.classes == texpr_role.content_classes['a'], expect
@pytest.mark.sphinx(testroot='domain-cpp', confoverrides={'nitpicky': True})
def test_build_domain_cpp_field_role(app, status, warning):
app.builder.build_all()
ws = filter_warnings(warning, "field-role")
assert len(ws) == 0
def test_noindexentry(app):
text = (".. cpp:function:: void f()\n"
".. cpp:function:: void g()\n"