[AST] Inherit doc-brief comment from protocol, superclass, and requirement

rdar://problem/38422822
This commit is contained in:
Rintaro Ishizaki
2019-03-20 11:01:23 -07:00
parent bb2e003a21
commit db2c11787b
17 changed files with 361 additions and 224 deletions

View File

@@ -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);