зеркало из https://github.com/microsoft/clang-1.git
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:
Родитель
8a5c0cd90b
Коммит
17f689f7f8
|
@ -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) },
|
||||
|
|
Загрузка…
Ссылка в новой задаче