zig icon indicating copy to clipboard operation
zig copied to clipboard

Autodoc: public functions and fields inside test blocks leak into docs

Open sbancuz opened this issue 1 year ago • 1 comments

Zig Version

0.12.0

Steps to Reproduce and Observed Behavior

If you look at std.meta there are a lot of fn a() and fn foo() that probably shouldn't be there.

Expected Behavior

There should be only relevant functions.

sbancuz avatar Apr 28 '24 17:04 sbancuz

Problem is in public functions (and fields) leaking from test blocks but it is impossible to access them. So solution can be to ignore test block when searching for functions to show in docs.

AndrewKraevskii avatar Apr 28 '24 20:04 AndrewKraevskii