mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Field roles, add C++ test
This commit is contained in:
parent
27d40519c1
commit
783314d54d
5
tests/roots/test-domain-cpp/field-role.rst
Normal file
5
tests/roots/test-domain-cpp/field-role.rst
Normal file
@ -0,0 +1,5 @@
|
||||
.. cpp:function:: void f()
|
||||
|
||||
:throws int:
|
||||
:throws int*:
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user