From 72b57cc4463315ed1446aeca476e08f68e4679da Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Sat, 28 Jul 2012 00:35:48 +0000 Subject: [PATCH] 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 --- lib/AST/CommentDumper.cpp | 6 ++++-- 1 file 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) { -- 2.50.1