diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-05 19:54:11 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-12-05 19:54:11 +0000 |
commit | 14ef4790d17c35197e97e6936f0edd1bbf686e3b (patch) | |
tree | b6f92ba648bb3e780c817b56d3e8c40d334e774e /clang/lib/AST/DeclPrinter.cpp | |
parent | ed92815cb0267839b4a31d9224848f24fe9c1b42 (diff) | |
download | bcm5719-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.cpp | 2 |
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); |