C, test namespace revamp

This commit is contained in:
Jakob Lykke Andersen
2021-02-24 15:27:23 +01:00
parent 71a656498b
commit 0256daf112
4 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
.. c:namespace:: anon_dup_decl_ns
.. c:struct:: anon_dup_decl
.. c:struct:: @a.A

View File

@@ -1,3 +1,5 @@
.. c:namespace:: function_param_target
.. c:function:: void f(int i)
- :c:var:`i`

View File

@@ -1,3 +1,5 @@
.. c:namespace:: index
test-domain-c
=============

View File

@@ -615,8 +615,8 @@ def test_build_function_param_target(app, warning):
assert len(ws) == 0
entries = extract_role_links(app, "function_param_target.html")
assert entries == [
('c.f', 'i', 'i'),
('c.f', 'f.i', 'f.i'),
('c.function_param_target.f', 'i', 'i'),
('c.function_param_target.f', 'f.i', 'f.i'),
]