Issue 12653 - Document the getFunctionAttributes trait.

Required for https://github.com/D-Programming-Language/dmd/pull/3501

https://issues.dlang.org/show_bug.cgi?id=12653