@_documentation(visibility: ...) for c Files



I see that @_documentation(visibility: ...) is available and I have it working for swift source files when using DocC.

My question is how to do the same thing for .c/.h source? I haven't been able to find a way to exclude methods or variables in c code from the documentation DocC creates. I'd also be fine with excluding c header files entirely from DocC.

Is this available? If so, how could it be done?

I know renaming methods and variables to start with an underscore will work, but for this project would mean modifying a large chunk of open source code. So I'm hoping to use tags instead.