D-Programming-Language/dmd — pull request #1209 by AndrejMitrovic (2012-10-23 02:22:48+00:00)
Title: Fix Issue 5446 - Ddoc doesn't output aliased names 

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

This is a fix to output aliased symbols when generating documentation. I've tried to make the output look nice but at the same time semantically valid.

I've implemented the `prettyPrintDsymbol` function for better pretty printing because calling `toPrettyChars` will print the module name together with the symbol name and in most cases this creates a very noisy output without any benefits. Instead `toPrettyChars` is only used when the aliased symbol is from another module since this is required to output aliases like this:

```
deprecated alias core.cpuid.vendor vendor;
```

Which is better than just `deprecated alias vendor vendor` since that is ambiguous to the reader.