Annotation of functions

Adam D. Ruppe destructionator at gmail.com
Tue Feb 20 15:26:12 UTC 2018


On Tuesday, 20 February 2018 at 13:27:08 UTC, psychoticRabbit 
wrote:
> so.. in that case..another idea...how about a compiler option 
> to output a list of functions. (I don't really expect many will 
> warm to that idea.)
>
> Does anyone know of any tool that could do such a thing?
>
> I just want of a list of functions from a source code file.
>
> Who would have thought it would be that hard ;-)

dmd -X spits out the json file with a list of functions and 
classes and other stuff. Then you can just filter that.

Also try https://github.com/dlang-community/D-Scanner which can 
output such a list as a "ctags" file, which a lot of editors know 
how to read for jumping around.

You can also use a documentation generator like mine 
https://github.com/adamdruppe/adrdox if you put doc comments on 
it and get a html and xml output, though for just finding the 
list I think dmd -X is going to be easier.


More information about the Digitalmars-d mailing list