<div dir="ltr">This following commit r285981 (Enhancement to test for -ast-print tests) tests this change. Without it the test 'Coverage/ast-printing.c' fails on Windows.<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Thanks,<br>--Serge<br></div></div>
<br><div class="gmail_quote">2016-11-04 19:09 GMT+07:00 Aaron Ballman <span dir="ltr"><<a href="mailto:aaron@aaronballman.com" target="_blank">aaron@aaronballman.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Nov 4, 2016 at 2:03 AM, Serge Pavlov via cfe-commits<br>
<<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br>
> Author: sepavloff<br>
> Date: Fri Nov  4 01:03:34 2016<br>
> New Revision: 285979<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=285979&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=285979&view=rev</a><br>
> Log:<br>
> Do not print enum underlying type if language is not C++11<br>
><br>
> Output generated by option '-ast-print' must not contains enum<br>
> base type specifications if source language does not include C++11.<br>
><br>
> Modified:<br>
>     cfe/trunk/lib/AST/DeclPrinter.<wbr>cpp<br>
<br>
</span>Test case?<br>
<span class="HOEnZb"><font color="#888888"><br>
~Aaron<br>
</font></span><div class="HOEnZb"><div class="h5"><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=285979&r1=285978&r2=285979&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project/cfe/trunk/lib/AST/<wbr>DeclPrinter.cpp?rev=285979&r1=<wbr>285978&r2=285979&view=diff</a><br>
> ==============================<wbr>==============================<wbr>==================<br>
> --- cfe/trunk/lib/AST/DeclPrinter.<wbr>cpp (original)<br>
> +++ cfe/trunk/lib/AST/DeclPrinter.<wbr>cpp Fri Nov  4 01:03:34 2016<br>
> @@ -407,7 +407,7 @@ void DeclPrinter::VisitEnumDecl(<wbr>EnumDecl<br>
>    }<br>
>    Out << *D;<br>
><br>
> -  if (D->isFixed())<br>
> +  if (D->isFixed() && D->getASTContext().<wbr>getLangOpts().CPlusPlus11)<br>
>      Out << " : " << D->getIntegerType().stream(<wbr>Policy);<br>
><br>
>    if (D->isCompleteDefinition()) {<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>
</div></div></blockquote></div><br></div>