If you pop the below into the demo you can see that it's between 2.7 and 2.8 before<font class="Apple-style-span" face="arial, helvetica, sans-serif"> <span class="Apple-style-span" style="white-space: pre; ">r102686, so it's probably 2.7.</span></font><div>
<font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="white-space: pre;"><br></span></font><div><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<font class="Apple-style-span" face="'courier new', monospace">#include <stdio.h></font> </blockquote><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">
<font class="Apple-style-span" face="'courier new', monospace"><br></font><font class="Apple-style-span" face="'courier new', monospace">int main() {<br></font><font class="Apple-style-span" face="'courier new', monospace">#ifdef __clang_version__<br>
</font><font class="Apple-style-span" face="'courier new', monospace">  printf("%s\n", __clang_version__);</font><font class="Apple-style-span" face="'courier new', monospace"><br></font><font class="Apple-style-span" face="'courier new', monospace">#endif<br>
</font><font class="Apple-style-span" face="'courier new', monospace">  return 0;<br></font><font class="Apple-style-span" face="'courier new', monospace">}</font></blockquote><div><br></div><div>You know this because __clang_version__ was defined in <a href="http://llvm.org/viewvc/llvm-project?view=rev&revision=102686">r102686</a>.</div>
<div><br></div><div>FYI, on my machine that code spits out "<font class="Apple-style-span" face="'courier new', monospace">3.0 (trunk 137973)</font>".</div><div><br></div><div>Thanks,<br>Jon</div><br><div class="gmail_quote">
On Wed, Aug 24, 2011 at 10:18 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div>Which could explain why my colored clang diagnostic change never worked for her, if clang didn't have colored diagnostic support back in 2.7 (I don't know which revision that was - could someone confirm whether that's true? I'll poke around in ViewVC to see if I can make sense of it, though)</div>

</div></blockquote><div><br></div></div><div>Yep. That seems to explain it - clang didn't respect forcibly turning colored diagnostics on in the absence of terminal colors until relatively recently: <a href="https://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?revision=114638&view=markup" target="_blank">https://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?revision=114638&view=markup</a>  </div>

</div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jon Mulder<div>C 847.899.3664</div><div>E <a href="mailto:mulderje@muohio.edu" target="_blank">mulderje@muohio.edu</a></div><br>
</div></div>