diff options
Diffstat (limited to 'clang/lib/AST/Comment.cpp')
| -rw-r--r-- | clang/lib/AST/Comment.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/AST/Comment.cpp b/clang/lib/AST/Comment.cpp index 09f4290f1b7..a443b91d096 100644 --- a/clang/lib/AST/Comment.cpp +++ b/clang/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 |

