mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
(cherry picked from commit 6534b9b14f)
29 lines
528 B
Plaintext
29 lines
528 B
Plaintext
module CountedByClang {
|
|
header "counted-by.h"
|
|
export *
|
|
}
|
|
module CountedByNoEscapeClang {
|
|
header "counted-by-noescape.h"
|
|
export *
|
|
}
|
|
module SizedByClang {
|
|
header "sized-by.h"
|
|
export *
|
|
}
|
|
module SizedByNoEscapeClang {
|
|
header "sized-by-noescape.h"
|
|
export *
|
|
}
|
|
module SizedByLifetimeboundClang {
|
|
header "sized-by-lifetimebound.h"
|
|
export *
|
|
}
|
|
module CountedByLifetimeboundClang {
|
|
header "counted-by-lifetimebound.h"
|
|
export *
|
|
}
|
|
module CommentsClang {
|
|
header "comments.h"
|
|
export *
|
|
}
|