From 14ef4790d17c35197e97e6936f0edd1bbf686e3b Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 5 Dec 2012 19:54:11 +0000 Subject: Testing C++ declarations embedded in tag of Comment XML. Added DeclPrint support for constructors and fix tests accordingly. This is wip. // rdar://12378714 llvm-svn: 169412 --- clang/lib/AST/DeclPrinter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/AST/DeclPrinter.cpp') 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); -- cgit v1.2.3