summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclPrinter.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-12-05 19:54:11 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-12-05 19:54:11 +0000
commit14ef4790d17c35197e97e6936f0edd1bbf686e3b (patch)
treeb6f92ba648bb3e780c817b56d3e8c40d334e774e /clang/lib/AST/DeclPrinter.cpp
parented92815cb0267839b4a31d9224848f24fe9c1b42 (diff)
downloadbcm5719-llvm-14ef4790d17c35197e97e6936f0edd1bbf686e3b.tar.gz
bcm5719-llvm-14ef4790d17c35197e97e6936f0edd1bbf686e3b.zip
Testing C++ declarations embedded in
<declaration> tag of Comment XML. Added DeclPrint support for constructors and fix tests accordingly. This is wip. // rdar://12378714 llvm-svn: 169412
Diffstat (limited to 'clang/lib/AST/DeclPrinter.cpp')
-rw-r--r--clang/lib/AST/DeclPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp
index d06ccc51577..95d56b69d7b 100644
--- a/clang/lib/AST/DeclPrinter.cpp
+++ b/clang/lib/AST/DeclPrinter.cpp
@@ -547,6 +547,8 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) {
}
Out << ")";
}
+ if (!Proto.empty())
+ Out << Proto;
}
else
AFT->getResultType().print(Out, Policy, Proto);
OpenPOWER on IntegriCloud