mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Inherit doc-brief comment from protocol, superclass, and requirement
rdar://problem/38422822
This commit is contained in:
@@ -777,15 +777,6 @@ static bool passCursorInfoForDecl(SourceFile* SF,
|
||||
}
|
||||
unsigned DocCommentEnd = SS.size();
|
||||
|
||||
if (DocCommentEnd == DocCommentBegin) {
|
||||
if (auto *Req = ASTPrinter::findConformancesWithDocComment(
|
||||
const_cast<ValueDecl*>(VD))) {
|
||||
llvm::raw_svector_ostream OS(SS);
|
||||
ide::getDocumentationCommentAsXML(Req, OS);
|
||||
}
|
||||
DocCommentEnd = SS.size();
|
||||
}
|
||||
|
||||
unsigned DeclBegin = SS.size();
|
||||
{
|
||||
llvm::raw_svector_ostream OS(SS);
|
||||
|
||||
Reference in New Issue
Block a user