There is no such function in clang and clang_Cursor_getRawCommentText only works for declarations, which a macro is not, as it is not present in the AST. However, Doxygen can render macro documentation nicely, lets do it as well.