<div dir="auto">Test?</div><div class="gmail_extra"><br><div class="gmail_quote">On 30 Oct 2016 10:20 pm, "Serge Pavlov via cfe-commits" <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: sepavloff<br>
Date: Mon Oct 31 00:11:12 2016<br>
New Revision: 285543<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=285543&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=285543&view=rev</a><br>
Log:<br>
Make output of ast-print closer to C++ code<br>
<br>
Put semicolon after non-defining method declaration and a class<br>
specialization body.<br>
<br>
Modified:<br>
    cfe/trunk/lib/AST/DeclPrinter.<wbr>cpp<br>
<br>
Modified: cfe/trunk/lib/AST/DeclPrinter.<wbr>cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclPrinter.cpp?rev=285543&r1=285542&r2=285543&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/cfe/trunk/lib/AST/<wbr>DeclPrinter.cpp?rev=285543&r1=<wbr>285542&r2=285543&view=diff</a><br>
==============================<wbr>==============================<wbr>==================<br>
--- cfe/trunk/lib/AST/DeclPrinter.<wbr>cpp (original)<br>
+++ cfe/trunk/lib/AST/DeclPrinter.<wbr>cpp Mon Oct 31 00:11:12 2016<br>
@@ -337,10 +337,9 @@ void DeclPrinter::VisitDeclContext(<wbr>DeclC<br>
     const char *Terminator = nullptr;<br>
     if (isa<OMPThreadPrivateDecl>(*D) || isa<OMPDeclareReductionDecl>(*<wbr>D))<br>
       Terminator = nullptr;<br>
-    else if (isa<FunctionDecl>(*D) &&<br>
-             cast<FunctionDecl>(*D)-><wbr>isThisDeclarationADefinition()<wbr>)<br>
+    else if (isa<FunctionDecl>(*D) && cast<FunctionDecl>(*D)-><wbr>hasBody())<br>
       Terminator = nullptr;<br>
-    else if (isa<ObjCMethodDecl>(*D) && cast<ObjCMethodDecl>(*D)-><wbr>getBody())<br>
+    else if (isa<ObjCMethodDecl>(*D) && cast<ObjCMethodDecl>(*D)-><wbr>hasBody())<br>
       Terminator = nullptr;<br>
     else if (isa<NamespaceDecl>(*D) || isa<LinkageSpecDecl>(*D) ||<br>
              isa<ObjCImplementationDecl>(*<wbr>D) ||<br>
@@ -984,7 +983,7 @@ void DeclPrinter::<wbr>VisitClassTemplateDecl<br>
     for (auto *I : D->specializations()) {<br>
       PrintTemplateParameters(<wbr>Params, &I->getTemplateArgs());<br>
       Visit(I);<br>
-      Out << '\n';<br>
+      Out << ";\n";<br>
     }<br>
   }<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-commits</a><br>
</blockquote></div></div>