From 1b72bf049887cd8f038640eb6de194621a805255 Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Sat, 28 Jul 2012 00:35:48 +0000 Subject: Comment dumper: print \param parameter index if parameter name is resolved. llvm-svn: 160908 --- clang/lib/AST/CommentDumper.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'clang/lib/AST/CommentDumper.cpp') 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) { -- cgit v1.2.3