summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-07-28 00:35:48 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-07-28 00:35:48 +0000
commit1b72bf049887cd8f038640eb6de194621a805255 (patch)
tree1481bb0a68160ce6745ac9e073bf839ff815db3a /clang/lib/AST
parent308a3c54121fec25edab8aef6d3d6864f62dec2a (diff)
downloadbcm5719-llvm-1b72bf049887cd8f038640eb6de194621a805255.tar.gz
bcm5719-llvm-1b72bf049887cd8f038640eb6de194621a805255.zip
Comment dumper: print \param parameter index if parameter name is resolved.
llvm-svn: 160908
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/CommentDumper.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/AST/CommentDumper.cpp b/clang/lib/AST/CommentDumper.cpp
index c930b245043..764492f94c2 100644
--- a/clang/lib/AST/CommentDumper.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud