Skip to content

Commit

Permalink
C, update intersphinx test with anon
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobandersen committed Mar 28, 2024
1 parent 13a283c commit 388e9f1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
9 changes: 9 additions & 0 deletions tests/roots/test-domain-c-intersphinx/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,12 @@
- :c:member:`_functionParam.param`
- :c:var:`_functionParam.param`
- :c:data:`_functionParam.param`

- :any:`[email protected]`
- :c:member:`[email protected]`
- :c:var:`[email protected]`
- :c:data:`[email protected]`
- :any:`_struct.i`
- :c:member:`_struct.i`
- :c:var:`_struct.i`
- :c:data:`_struct.i`
9 changes: 8 additions & 1 deletion tests/test_domains/test_domain_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,10 +742,15 @@ def test_domain_c_build_intersphinx(tmp_path, app, status, warning):
.. c:function:: void _function()
.. c:macro:: _macro
.. c:struct:: _struct
.. c:union:: @anon
.. c:var:: int i
.. c:union:: _union
.. c:enum:: _enum
.. c:enumerator:: _enumerator
.. c:enumerator:: _enumerator
.. c:type:: _type
.. c:function:: void _functionParam(int param)
Expand All @@ -766,6 +771,8 @@ def test_domain_c_build_intersphinx(tmp_path, app, status, warning):
_macro c:macro 1 index.html#c.$ -
_member c:member 1 index.html#c.$ -
_struct c:struct 1 index.html#c.$ -
_struct.@anon c:union 1 index.html#c.$ _struct.[anonymous]
[email protected] c:member 1 index.html#c.$ _struct.[anonymous].i
_type c:type 1 index.html#c.$ -
_union c:union 1 index.html#c.$ -
_var c:member 1 index.html#c.$ -
Expand Down

0 comments on commit 388e9f1

Please sign in to comment.