diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-28 00:35:48 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-07-28 00:35:48 +0000 |
commit | 72b57cc4463315ed1446aeca476e08f68e4679da (patch) | |
tree | 0652a5127736b9788ceeacb4ec7be11ce5479599 | |
parent | d9c729e67916cd8b1638ff72270dad98d1a02a58 (diff) |
Comment dumper: print \param parameter index if parameter name is resolved.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160908 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/CommentDumper.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/AST/CommentDumper.cpp b/lib/AST/CommentDumper.cpp index c930b24504..764492f94c 100644 --- a/lib/AST/CommentDumper.cpp +++ b/lib/AST/CommentDumper.cpp @@ -169,9 +169,11 @@ void CommentDumper::visitParamCommandComment(const ParamCommandComment *C) { else OS << " implicitly"; - if (C->hasParamName()) { + if (C->hasParamName()) OS << " Param=\"" << C->getParamName() << "\""; - } + + if (C->isParamIndexValid()) + OS << " ParamIndex=" << C->getParamIndex(); } void CommentDumper::visitVerbatimBlockComment(const VerbatimBlockComment *C) { |