Add support for -Wdeprecated-declarations.

This fixes <rdar://problem/6712496> Unable to disable deprecated warning.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68108 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Steve Naroff 2009-03-31 15:00:11 +00:00
Родитель 8a5c0cd90b
Коммит 17f689f7f8
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -139,10 +139,13 @@ static const diag::kind ImplicitFunctionDeclarationDiags[] = {
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) },