search for overridden methods with comment when overriding method
has none of its own. Factor in Doug's comments.
// rdar://12378793
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165771 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Comment.cpp b/lib/AST/Comment.cpp
index 09f4290..a443b91 100644
--- a/lib/AST/Comment.cpp
+++ b/lib/AST/Comment.cpp
@@ -304,6 +304,12 @@
IsFilled = true;
}
+StringRef ParamCommandComment::getParamName(comments::FullComment *FC) const {
+ if (FC && isParamIndexValid())
+ return FC->getThisDeclInfo()->ParamVars[getParamIndex()]->getName();
+ return Args[0].Text;
+}
+
} // end namespace comments
} // end namespace clang