]> granicus.if.org Git - clang/commitdiff
Comment dumper: print \param parameter index if parameter name is resolved.
authorDmitri Gribenko <gribozavr@gmail.com>
Sat, 28 Jul 2012 00:35:48 +0000 (00:35 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Sat, 28 Jul 2012 00:35:48 +0000 (00:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160908 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/CommentDumper.cpp

index c930b2450435f9a53e9993cb393bb69a14b6d904..764492f94c2a0b8b4558913c59eeb72503bc628e 100644 (file)
@@ -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) {