[cfe-commits] r68108 - /cfe/trunk/tools/clang-cc/Warnings.cpp

Daniel Dunbar daniel at zuster.org
Tue Mar 31 09:40:39 PDT 2009


+ test case?
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.

 - Daniel

On Tue, Mar 31, 2009 at 8:00 AM, Steve Naroff <snaroff at apple.com> wrote:

> Author: snaroff
> Date: Tue Mar 31 10:00:11 2009
> New Revision: 68108
>
> URL: http://llvm.org/viewvc/llvm-project?rev=68108&view=rev
> Log:
> Add support for -Wdeprecated-declarations.
>
> This fixes <rdar://problem/6712496> Unable to disable deprecated warning.
>
> Modified:
>    cfe/trunk/tools/clang-cc/Warnings.cpp
>
> Modified: cfe/trunk/tools/clang-cc/Warnings.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/Warnings.cpp?rev=68108&r1=68107&r2=68108&view=diff
>
>
> ==============================================================================
> --- cfe/trunk/tools/clang-cc/Warnings.cpp (original)
> +++ cfe/trunk/tools/clang-cc/Warnings.cpp Tue Mar 31 10:00:11 2009
> @@ -139,10 +139,13 @@
>  static const diag::kind PointerSignDiags[] = {
>   diag::ext_typecheck_convert_incompatible_pointer_sign
>  };
> +static const diag::kind DeprecatedDeclarations[] = { diag::warn_deprecated
> };
> +
>  // Hmm ... this option is currently actually completely ignored.
>  //static const diag::kind StrictSelectorMatchDiags[] = {  };
>  // Second the table of options.  MUST be sorted by name! Binary lookup is
> done.
>  static const WarningOption OptionTable[] = {
> +  { "deprecated-declarations", DIAGS(DeprecatedDeclarations) },
>   { "float-equal",           DIAGS(FloatEqualDiags) },
>   { "format-nonliteral",     DIAGS(FormatNonLiteralDiags) },
>   { "implicit-function-declaration",
> DIAGS(ImplicitFunctionDeclarationDiags) },
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090331/26ad519b/attachment.html>


More information about the cfe-commits mailing list