swift
6534b9b1 - [Swiftify] Copy doc comment from clang node (#81584)

Commit
213 days ago
[Swiftify] Copy doc comment from clang node (#81584) Swift nodes imported from clang don't have doc comments carried over, but IDEs are clever enough to fetch the comments from the associated clang node. The swift node in the macro expansion from _SwiftifyImport doesn't have a clang node directly associated with it however. This patch adds the same comment from the clang node to the _SwiftifyImport macro invocation node. Since the macro has access to this node, it can easily copy over its leading trivia. For now the comment is not altered at all, meaning @param still remains even if the parmeter is removed. rdar://151346977
Author
Parents
Loading