+ test case?<div><br></div><div>Also, going forward it is nice to introduce such changes with the driver changes. Since this is ultimately about the user experience, the test case should probably use "clang", not "clang-cc", so they are somewhat necessary anyway.</div>
<div><br></div><div> - Daniel<br><br><div class="gmail_quote">On Tue, Mar 31, 2009 at 8:00 AM, Steve Naroff <span dir="ltr"><<a href="mailto:snaroff@apple.com">snaroff@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Author: snaroff<br>
Date: Tue Mar 31 10:00:11 2009<br>
New Revision: 68108<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=68108&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=68108&view=rev</a><br>
Log:<br>
Add support for -Wdeprecated-declarations.<br>
<br>
This fixes <rdar://problem/6712496> Unable to disable deprecated warning.<br>
<br>
Modified:<br>
    cfe/trunk/tools/clang-cc/Warnings.cpp<br>
<br>
Modified: cfe/trunk/tools/clang-cc/Warnings.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/Warnings.cpp?rev=68108&r1=68107&r2=68108&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/Warnings.cpp?rev=68108&r1=68107&r2=68108&view=diff</a><br>

<br>
==============================================================================<br>
--- cfe/trunk/tools/clang-cc/Warnings.cpp (original)<br>
+++ cfe/trunk/tools/clang-cc/Warnings.cpp Tue Mar 31 10:00:11 2009<br>
@@ -139,10 +139,13 @@<br>
 static const diag::kind PointerSignDiags[] = {<br>
   diag::ext_typecheck_convert_incompatible_pointer_sign<br>
 };<br>
+static const diag::kind DeprecatedDeclarations[] = { diag::warn_deprecated };<br>
+<br>
 // Hmm ... this option is currently actually completely ignored.<br>
 //static const diag::kind StrictSelectorMatchDiags[] = {  };<br>
 // Second the table of options.  MUST be sorted by name! Binary lookup is done.<br>
 static const WarningOption OptionTable[] = {<br>
+  { "deprecated-declarations", DIAGS(DeprecatedDeclarations) },<br>
   { "float-equal",           DIAGS(FloatEqualDiags) },<br>
   { "format-nonliteral",     DIAGS(FormatNonLiteralDiags) },<br>
   { "implicit-function-declaration", DIAGS(ImplicitFunctionDeclarationDiags) },<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>