aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Comment.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-10-11 23:52:50 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-10-11 23:52:50 +0000
commit749ace614b6ea1ae11d194a60b18e1e43e1db243 (patch)
treecf228aa770ee85c3e1a8c5b42a88c87a3eaf4b38 /lib/AST/Comment.cpp
parentb43d87b0646aa04951056c7e0d1ab9a58eb09f66 (diff)
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
Diffstat (limited to 'lib/AST/Comment.cpp')
-rw-r--r--lib/AST/Comment.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/AST/Comment.cpp b/lib/AST/Comment.cpp
index 09f4290f1b..a443b91d09 100644
--- a/lib/AST/Comment.cpp
+++ b/lib/AST/Comment.cpp
@@ -304,6 +304,12 @@ void DeclInfo::fill() {
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