D-Programming-Language/dmd — pull request #1174 by ntrel (2012-10-10 16:16:51+00:00)
Title: Issue 8794 - Add DDOC_ANCHOR macro for qualified anchor links

http://d.puremagic.com/issues/show_bug.cgi?id=8794

Currently there is no way to generate qualified anchor links in DDoc output - i.e. `` rather than just `myMember`.

This pull request adds a new DDoc macro, `DDOC_ANCHOR`, which is expanded wherever a symbol declaration appears in the documentation. The qualified symbol name is passed as argument `$1`. This is in contrast to `DDOC_PSYMBOL`, which only passes the current identifier without any context, and does so wherever the symbol name occurs in the document output, including text descriptions.