2009-06-02 17:58:47 +00:00
|
|
|
//==--- DiagnosticGroups.td - Diagnostic Group Definitions ----------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def ImplicitFunctionDeclare : DiagGroup<"implicit-function-declaration">;
|
|
|
|
def ImplicitInt : DiagGroup<"implicit-int">;
|
|
|
|
|
|
|
|
// Aggregation warning settings.
|
|
|
|
def Implicit : DiagGroup<"implicit", [
|
|
|
|
ImplicitFunctionDeclare,
|
|
|
|
ImplicitInt
|
|
|
|
]>;
|
|
|
|
|
2010-03-03 17:28:16 +00:00
|
|
|
// Empty DiagGroups are recognized by clang but ignored.
|
2010-07-13 17:21:42 +00:00
|
|
|
def : DiagGroup<"abi">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def AbsoluteValue : DiagGroup<"absolute-value">;
|
2010-03-03 17:28:16 +00:00
|
|
|
def AddressOfTemporary : DiagGroup<"address-of-temporary">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"aggregate-return">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUAlignofExpression : DiagGroup<"gnu-alignof-expression">;
|
2010-07-13 17:21:42 +00:00
|
|
|
def AmbigMemberTemplate : DiagGroup<"ambiguous-member-template">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUAnonymousStruct : DiagGroup<"gnu-anonymous-struct">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def ArrayBounds : DiagGroup<"array-bounds">;
|
|
|
|
def ArrayBoundsPointerArithmetic : DiagGroup<"array-bounds-pointer-arithmetic">;
|
2011-05-02 19:39:53 +00:00
|
|
|
def Availability : DiagGroup<"availability">;
|
2012-08-15 20:02:54 +00:00
|
|
|
def Section : DiagGroup<"section">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def AutoImport : DiagGroup<"auto-import">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUBinaryLiteral : DiagGroup<"gnu-binary-literal">;
|
|
|
|
def GNUCompoundLiteralInitializer : DiagGroup<"gnu-compound-literal-initializer">;
|
2013-06-10 20:45:12 +00:00
|
|
|
def BitFieldConstantConversion : DiagGroup<"bitfield-constant-conversion">;
|
|
|
|
def ConstantConversion :
|
|
|
|
DiagGroup<"constant-conversion", [ BitFieldConstantConversion ] >;
|
2012-04-14 14:01:31 +00:00
|
|
|
def LiteralConversion : DiagGroup<"literal-conversion">;
|
|
|
|
def StringConversion : DiagGroup<"string-conversion">;
|
|
|
|
def SignConversion : DiagGroup<"sign-conversion">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def PointerBoolConversion : DiagGroup<"pointer-bool-conversion">;
|
|
|
|
def UndefinedBoolConversion : DiagGroup<"undefined-bool-conversion">;
|
|
|
|
def BoolConversion : DiagGroup<"bool-conversion", [PointerBoolConversion,
|
|
|
|
UndefinedBoolConversion]>;
|
2012-04-14 14:01:31 +00:00
|
|
|
def IntConversion : DiagGroup<"int-conversion">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def EnumConversion : DiagGroup<"enum-conversion">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def FloatConversion : DiagGroup<"float-conversion">;
|
|
|
|
def EnumTooLarge : DiagGroup<"enum-too-large">;
|
2015-05-27 18:47:56 +00:00
|
|
|
def UnsupportedNan : DiagGroup<"unsupported-nan">;
|
2012-08-15 20:02:54 +00:00
|
|
|
def NonLiteralNullConversion : DiagGroup<"non-literal-null-conversion">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def NullConversion : DiagGroup<"null-conversion">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def ImplicitConversionFloatingPointToBool :
|
|
|
|
DiagGroup<"implicit-conversion-floating-point-to-bool">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def ObjCLiteralConversion : DiagGroup<"objc-literal-conversion">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def BadArrayNewLength : DiagGroup<"bad-array-new-length">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def MacroRedefined : DiagGroup<"macro-redefined">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def BuiltinMacroRedefined : DiagGroup<"builtin-macro-redefined">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def BuiltinRequiresHeader : DiagGroup<"builtin-requires-header">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def C99Compat : DiagGroup<"c99-compat">;
|
2010-09-17 15:54:40 +00:00
|
|
|
def CXXCompat: DiagGroup<"c++-compat">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def ExternCCompat : DiagGroup<"extern-c-compat">;
|
|
|
|
def KeywordCompat : DiagGroup<"keyword-compat">;
|
|
|
|
def GNUCaseRange : DiagGroup<"gnu-case-range">;
|
2010-09-17 15:54:40 +00:00
|
|
|
def CastAlign : DiagGroup<"cast-align">;
|
2015-01-18 16:23:48 +00:00
|
|
|
def CastQual : DiagGroup<"cast-qual">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"char-align">;
|
|
|
|
def Comment : DiagGroup<"comment">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUComplexInteger : DiagGroup<"gnu-complex-integer">;
|
|
|
|
def GNUConditionalOmittedOperand : DiagGroup<"gnu-conditional-omitted-operand">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def ConfigMacros : DiagGroup<"config-macros">;
|
2009-11-18 14:59:57 +00:00
|
|
|
def : DiagGroup<"ctor-dtor-privacy">;
|
2010-04-02 08:55:10 +00:00
|
|
|
def GNUDesignator : DiagGroup<"gnu-designator">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUStringLiteralOperatorTemplate :
|
|
|
|
DiagGroup<"gnu-string-literal-operator-template">;
|
2010-09-17 15:54:40 +00:00
|
|
|
|
2015-01-18 16:23:48 +00:00
|
|
|
def DeleteIncomplete : DiagGroup<"delete-incomplete">;
|
2011-06-12 15:46:16 +00:00
|
|
|
def DeleteNonVirtualDtor : DiagGroup<"delete-non-virtual-dtor">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def AbstractFinalClass : DiagGroup<"abstract-final-class">;
|
2011-06-12 15:46:16 +00:00
|
|
|
|
2013-12-22 00:07:40 +00:00
|
|
|
def CXX11CompatDeprecatedWritableStr :
|
|
|
|
DiagGroup<"c++11-compat-deprecated-writable-strings">;
|
2010-09-17 15:54:40 +00:00
|
|
|
|
2013-12-22 00:07:40 +00:00
|
|
|
def DeprecatedDeclarations : DiagGroup<"deprecated-declarations">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def UnavailableDeclarations : DiagGroup<"unavailable-declarations">;
|
2015-05-27 18:47:56 +00:00
|
|
|
def PartialAvailability : DiagGroup<"partial-availability">;
|
2011-02-20 13:06:31 +00:00
|
|
|
def DeprecatedImplementations :DiagGroup<"deprecated-implementations">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def DeprecatedIncrementBool : DiagGroup<"deprecated-increment-bool">;
|
|
|
|
def DeprecatedRegister : DiagGroup<"deprecated-register">;
|
|
|
|
def DeprecatedWritableStr : DiagGroup<"deprecated-writable-strings",
|
|
|
|
[CXX11CompatDeprecatedWritableStr]>;
|
2014-11-24 09:15:30 +00:00
|
|
|
// FIXME: Why is DeprecatedImplementations not in this group?
|
2013-12-22 00:07:40 +00:00
|
|
|
def Deprecated : DiagGroup<"deprecated", [DeprecatedDeclarations,
|
|
|
|
DeprecatedIncrementBool,
|
2014-11-24 09:15:30 +00:00
|
|
|
DeprecatedRegister,
|
|
|
|
DeprecatedWritableStr]>,
|
2013-12-22 00:07:40 +00:00
|
|
|
DiagCategory<"Deprecations">;
|
2011-02-20 13:06:31 +00:00
|
|
|
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"disabled-optimization">;
|
|
|
|
def : DiagGroup<"discard-qual">;
|
2009-06-22 08:08:35 +00:00
|
|
|
def : DiagGroup<"div-by-zero">;
|
2012-12-02 13:20:44 +00:00
|
|
|
|
2012-08-15 20:02:54 +00:00
|
|
|
def DocumentationHTML : DiagGroup<"documentation-html">;
|
2013-06-10 20:45:12 +00:00
|
|
|
def DocumentationUnknownCommand : DiagGroup<"documentation-unknown-command">;
|
|
|
|
def DocumentationPedantic : DiagGroup<"documentation-pedantic",
|
|
|
|
[DocumentationUnknownCommand]>;
|
2012-12-02 13:20:44 +00:00
|
|
|
def DocumentationDeprecatedSync : DiagGroup<"documentation-deprecated-sync">;
|
|
|
|
def Documentation : DiagGroup<"documentation",
|
|
|
|
[DocumentationHTML,
|
|
|
|
DocumentationDeprecatedSync]>;
|
|
|
|
|
2009-06-03 13:29:08 +00:00
|
|
|
def EmptyBody : DiagGroup<"empty-body">;
|
2015-05-27 18:47:56 +00:00
|
|
|
def Exceptions : DiagGroup<"exceptions">;
|
|
|
|
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUEmptyInitializer : DiagGroup<"gnu-empty-initializer">;
|
|
|
|
def GNUEmptyStruct : DiagGroup<"gnu-empty-struct">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def ExtraTokens : DiagGroup<"extra-tokens">;
|
2012-08-15 20:02:54 +00:00
|
|
|
def CXX11ExtraSemi : DiagGroup<"c++11-extra-semi">;
|
|
|
|
def ExtraSemi : DiagGroup<"extra-semi", [CXX11ExtraSemi]>;
|
2009-06-02 17:58:47 +00:00
|
|
|
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUFlexibleArrayInitializer : DiagGroup<"gnu-flexible-array-initializer">;
|
|
|
|
def GNUFlexibleArrayUnionMember : DiagGroup<"gnu-flexible-array-union-member">;
|
|
|
|
def GNUFoldingConstant : DiagGroup<"gnu-folding-constant">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def FormatExtraArgs : DiagGroup<"format-extra-args">;
|
|
|
|
def FormatZeroLength : DiagGroup<"format-zero-length">;
|
|
|
|
|
2013-06-10 20:45:12 +00:00
|
|
|
// Warnings for C++1y code which is not compatible with prior C++ standards.
|
2015-01-18 16:23:48 +00:00
|
|
|
def CXXPre14Compat : DiagGroup<"c++98-c++11-compat">;
|
|
|
|
def CXXPre14CompatPedantic : DiagGroup<"c++98-c++11-compat-pedantic",
|
|
|
|
[CXXPre14Compat]>;
|
2014-11-24 09:15:30 +00:00
|
|
|
def CXXPre1zCompat : DiagGroup<"c++98-c++11-c++14-compat">;
|
|
|
|
def CXXPre1zCompatPedantic : DiagGroup<"c++98-c++11-c++14-compat-pedantic",
|
|
|
|
[CXXPre1zCompat]>;
|
2013-06-10 20:45:12 +00:00
|
|
|
|
2012-04-14 14:01:31 +00:00
|
|
|
def CXX98CompatBindToTemporaryCopy :
|
|
|
|
DiagGroup<"c++98-compat-bind-to-temporary-copy">;
|
|
|
|
def CXX98CompatLocalTypeTemplateArgs :
|
|
|
|
DiagGroup<"c++98-compat-local-type-template-args">;
|
|
|
|
def CXX98CompatUnnamedTypeTemplateArgs :
|
|
|
|
DiagGroup<"c++98-compat-unnamed-type-template-args">;
|
|
|
|
|
|
|
|
def CXX98Compat : DiagGroup<"c++98-compat",
|
2015-01-18 16:23:48 +00:00
|
|
|
[CXX98CompatLocalTypeTemplateArgs,
|
2013-06-10 20:45:12 +00:00
|
|
|
CXX98CompatUnnamedTypeTemplateArgs,
|
2015-01-18 16:23:48 +00:00
|
|
|
CXXPre14Compat,
|
2014-11-24 09:15:30 +00:00
|
|
|
CXXPre1zCompat]>;
|
2011-10-20 21:14:49 +00:00
|
|
|
// Warnings for C++11 features which are Extensions in C++98 mode.
|
2013-06-10 20:45:12 +00:00
|
|
|
def CXX98CompatPedantic : DiagGroup<"c++98-compat-pedantic",
|
|
|
|
[CXX98Compat,
|
2015-01-18 16:23:48 +00:00
|
|
|
CXX98CompatBindToTemporaryCopy,
|
|
|
|
CXXPre14CompatPedantic,
|
2014-11-24 09:15:30 +00:00
|
|
|
CXXPre1zCompatPedantic]>;
|
2011-10-20 21:14:49 +00:00
|
|
|
|
|
|
|
def CXX11Narrowing : DiagGroup<"c++11-narrowing">;
|
2012-04-14 14:01:31 +00:00
|
|
|
|
2015-01-18 16:23:48 +00:00
|
|
|
def CXX11WarnOverrideMethod : DiagGroup<"inconsistent-missing-override">;
|
|
|
|
|
2012-04-14 14:01:31 +00:00
|
|
|
// Original name of this warning in Clang
|
2011-10-20 21:14:49 +00:00
|
|
|
def : DiagGroup<"c++0x-narrowing", [CXX11Narrowing]>;
|
|
|
|
|
2012-04-14 14:01:31 +00:00
|
|
|
// Name of this warning in GCC
|
|
|
|
def : DiagGroup<"narrowing", [CXX11Narrowing]>;
|
|
|
|
|
|
|
|
def CXX11CompatReservedUserDefinedLiteral :
|
|
|
|
DiagGroup<"c++11-compat-reserved-user-defined-literal">;
|
|
|
|
def ReservedUserDefinedLiteral :
|
|
|
|
DiagGroup<"reserved-user-defined-literal",
|
|
|
|
[CXX11CompatReservedUserDefinedLiteral]>;
|
|
|
|
|
|
|
|
def CXX11Compat : DiagGroup<"c++11-compat",
|
|
|
|
[CXX11Narrowing,
|
2013-06-10 20:45:12 +00:00
|
|
|
CXX11CompatReservedUserDefinedLiteral,
|
2013-12-22 00:07:40 +00:00
|
|
|
CXX11CompatDeprecatedWritableStr,
|
2015-01-18 16:23:48 +00:00
|
|
|
CXXPre14Compat,
|
2014-11-24 09:15:30 +00:00
|
|
|
CXXPre1zCompat]>;
|
2011-10-20 21:14:49 +00:00
|
|
|
def : DiagGroup<"c++0x-compat", [CXX11Compat]>;
|
2013-06-10 20:45:12 +00:00
|
|
|
def CXX11CompatPedantic : DiagGroup<"c++11-compat-pedantic",
|
2015-01-18 16:23:48 +00:00
|
|
|
[CXXPre14CompatPedantic,
|
2014-11-24 09:15:30 +00:00
|
|
|
CXXPre1zCompatPedantic]>;
|
|
|
|
|
|
|
|
def CXX14Compat : DiagGroup<"c++14-compat", [CXXPre1zCompat]>;
|
|
|
|
def CXX14CompatPedantic : DiagGroup<"c++14-compat-pedantic",
|
|
|
|
[CXXPre1zCompatPedantic]>;
|
2010-05-27 15:17:06 +00:00
|
|
|
|
2010-09-17 15:54:40 +00:00
|
|
|
def : DiagGroup<"effc++">;
|
2012-08-15 20:02:54 +00:00
|
|
|
def DivZero : DiagGroup<"division-by-zero">;
|
2011-05-02 19:39:53 +00:00
|
|
|
def ExitTimeDestructors : DiagGroup<"exit-time-destructors">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def FlexibleArrayExtensions : DiagGroup<"flexible-array-extensions">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def FourByteMultiChar : DiagGroup<"four-char-constants">;
|
2010-09-17 15:54:40 +00:00
|
|
|
def GlobalConstructors : DiagGroup<"global-constructors">;
|
2011-07-17 15:40:56 +00:00
|
|
|
def BitwiseOpParentheses: DiagGroup<"bitwise-op-parentheses">;
|
2011-02-20 13:06:31 +00:00
|
|
|
def LogicalOpParentheses: DiagGroup<"logical-op-parentheses">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def LogicalNotParentheses: DiagGroup<"logical-not-parentheses">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def ShiftOpParentheses: DiagGroup<"shift-op-parentheses">;
|
2013-06-10 20:45:12 +00:00
|
|
|
def OverloadedShiftOpParentheses: DiagGroup<"overloaded-shift-op-parentheses">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def DanglingElse: DiagGroup<"dangling-else">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def DanglingField : DiagGroup<"dangling-field">;
|
|
|
|
def DistributedObjectModifiers : DiagGroup<"distributed-object-modifiers">;
|
2015-05-27 18:47:56 +00:00
|
|
|
def FlagEnum : DiagGroup<"flag-enum">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def InfiniteRecursion : DiagGroup<"infinite-recursion">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUImaginaryConstant : DiagGroup<"gnu-imaginary-constant">;
|
2010-07-15 17:07:12 +00:00
|
|
|
def IgnoredQualifiers : DiagGroup<"ignored-qualifiers">;
|
2009-10-14 18:03:49 +00:00
|
|
|
def : DiagGroup<"import">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def IncompatibleMSStruct : DiagGroup<"incompatible-ms-struct">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def IncompatiblePointerTypesDiscardsQualifiers
|
|
|
|
: DiagGroup<"incompatible-pointer-types-discards-qualifiers">;
|
|
|
|
def IncompatiblePointerTypes
|
|
|
|
: DiagGroup<"incompatible-pointer-types",
|
|
|
|
[IncompatiblePointerTypesDiscardsQualifiers]>;
|
2012-04-14 14:01:31 +00:00
|
|
|
def IncompleteUmbrella : DiagGroup<"incomplete-umbrella">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def NonModularIncludeInFrameworkModule
|
|
|
|
: DiagGroup<"non-modular-include-in-framework-module">;
|
|
|
|
def NonModularIncludeInModule : DiagGroup<"non-modular-include-in-module",
|
|
|
|
[NonModularIncludeInFrameworkModule]>;
|
2015-01-18 16:23:48 +00:00
|
|
|
def IncompleteModule : DiagGroup<"incomplete-module",
|
|
|
|
[IncompleteUmbrella, NonModularIncludeInModule]>;
|
|
|
|
|
2013-04-08 18:45:10 +00:00
|
|
|
def InvalidNoreturn : DiagGroup<"invalid-noreturn">;
|
|
|
|
def InvalidSourceEncoding : DiagGroup<"invalid-source-encoding">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def KNRPromotedParameter : DiagGroup<"knr-promoted-parameter">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"init-self">;
|
|
|
|
def : DiagGroup<"inline">;
|
2009-06-22 08:08:35 +00:00
|
|
|
def : DiagGroup<"invalid-pch">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNULabelsAsValue : DiagGroup<"gnu-label-as-value">;
|
2010-03-10 17:45:58 +00:00
|
|
|
def LiteralRange : DiagGroup<"literal-range">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def LocalTypeTemplateArgs : DiagGroup<"local-type-template-args",
|
|
|
|
[CXX98CompatLocalTypeTemplateArgs]>;
|
2015-05-27 18:47:56 +00:00
|
|
|
def RangeLoopAnalysis : DiagGroup<"range-loop-analysis">;
|
|
|
|
def ForLoopAnalysis : DiagGroup<"for-loop-analysis">;
|
|
|
|
def LoopAnalysis : DiagGroup<"loop-analysis", [ForLoopAnalysis,
|
|
|
|
RangeLoopAnalysis]>;
|
2011-10-20 21:14:49 +00:00
|
|
|
def MalformedWarningCheck : DiagGroup<"malformed-warning-check">;
|
|
|
|
def Main : DiagGroup<"main">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def MainReturnType : DiagGroup<"main-return-type">;
|
2010-03-10 17:45:58 +00:00
|
|
|
def MissingBraces : DiagGroup<"missing-braces">;
|
2010-09-17 15:54:40 +00:00
|
|
|
def MissingDeclarations: DiagGroup<"missing-declarations">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"missing-format-attribute">;
|
2009-11-05 17:18:09 +00:00
|
|
|
def : DiagGroup<"missing-include-dirs">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def MissingNoreturn : DiagGroup<"missing-noreturn">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def MultiChar : DiagGroup<"multichar">;
|
|
|
|
def : DiagGroup<"nested-externs">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def CXX11LongLong : DiagGroup<"c++11-long-long">;
|
|
|
|
def LongLong : DiagGroup<"long-long", [CXX11LongLong]>;
|
2015-06-09 19:08:19 +00:00
|
|
|
def ImplicitlyUnsignedLiteral : DiagGroup<"implicitly-unsigned-literal">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def MethodSignatures : DiagGroup<"method-signatures">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def MismatchedParameterTypes : DiagGroup<"mismatched-parameter-types">;
|
|
|
|
def MismatchedReturnTypes : DiagGroup<"mismatched-return-types">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def MismatchedTags : DiagGroup<"mismatched-tags">;
|
2010-03-16 16:52:15 +00:00
|
|
|
def MissingFieldInitializers : DiagGroup<"missing-field-initializers">;
|
2015-01-18 16:23:48 +00:00
|
|
|
def ModuleBuild : DiagGroup<"module-build">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def ModuleConflict : DiagGroup<"module-conflict">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def NewlineEOF : DiagGroup<"newline-eof">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def NullArithmetic : DiagGroup<"null-arithmetic">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def NullCharacter : DiagGroup<"null-character">;
|
2011-02-20 13:06:31 +00:00
|
|
|
def NullDereference : DiagGroup<"null-dereference">;
|
2010-07-13 17:21:42 +00:00
|
|
|
def InitializerOverrides : DiagGroup<"initializer-overrides">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def NonNull : DiagGroup<"nonnull">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def NonPODVarargs : DiagGroup<"non-pod-varargs">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def ClassVarargs : DiagGroup<"class-varargs", [NonPODVarargs]>;
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"nonportable-cfstrings">;
|
2011-02-20 13:06:31 +00:00
|
|
|
def NonVirtualDtor : DiagGroup<"non-virtual-dtor">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def OveralignedType : DiagGroup<"over-aligned">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def OldStyleCast : DiagGroup<"old-style-cast">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"old-style-definition">;
|
2010-09-17 15:54:40 +00:00
|
|
|
def OutOfLineDeclaration : DiagGroup<"out-of-line-declaration">;
|
2009-10-14 18:03:49 +00:00
|
|
|
def : DiagGroup<"overflow">;
|
2012-08-15 20:02:54 +00:00
|
|
|
def ForwardClassReceiver : DiagGroup<"receiver-forward-class">;
|
|
|
|
def MethodAccess : DiagGroup<"objc-method-access">;
|
|
|
|
def ObjCReceiver : DiagGroup<"receiver-expr">;
|
2015-06-09 19:08:19 +00:00
|
|
|
// FIXME: Remove this when Xcode removes the warning setting.
|
|
|
|
def : DiagGroup<"receiver-is-weak">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def OperatorNewReturnsNull : DiagGroup<"new-returns-null">;
|
2010-09-17 15:54:40 +00:00
|
|
|
def OverlengthStrings : DiagGroup<"overlength-strings">;
|
2011-02-20 13:06:31 +00:00
|
|
|
def OverloadedVirtual : DiagGroup<"overloaded-virtual">;
|
2012-08-19 10:33:04 +00:00
|
|
|
def PrivateExtern : DiagGroup<"private-extern">;
|
|
|
|
def SelTypeCast : DiagGroup<"cast-of-sel-type">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def FunctionDefInObjCContainer : DiagGroup<"function-def-in-objc-container">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def BadFunctionCast : DiagGroup<"bad-function-cast">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def ObjCPropertyImpl : DiagGroup<"objc-property-implementation">;
|
2012-08-15 20:02:54 +00:00
|
|
|
def ObjCPropertyNoAttribute : DiagGroup<"objc-property-no-attribute">;
|
2011-10-20 21:14:49 +00:00
|
|
|
def ObjCMissingSuperCalls : DiagGroup<"objc-missing-super-calls">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def ObjCDesignatedInit : DiagGroup<"objc-designated-initializers">;
|
2011-10-20 21:14:49 +00:00
|
|
|
def ObjCRetainBlockProperty : DiagGroup<"objc-noncopy-retain-block-property">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def ObjCReadonlyPropertyHasSetter : DiagGroup<"objc-readonly-with-setter-property">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def ObjCInvalidIBOutletProperty : DiagGroup<"invalid-iboutlet">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def ObjCRootClass : DiagGroup<"objc-root-class">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def ObjCPointerIntrospectPerformSelector : DiagGroup<"deprecated-objc-pointer-introspection-performSelector">;
|
|
|
|
def ObjCPointerIntrospect : DiagGroup<"deprecated-objc-pointer-introspection", [ObjCPointerIntrospectPerformSelector]>;
|
2015-01-18 16:23:48 +00:00
|
|
|
def ObjCMultipleMethodNames : DiagGroup<"objc-multiple-method-names">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def DeprecatedObjCIsaUsage : DiagGroup<"deprecated-objc-isa-usage">;
|
2015-01-18 16:23:48 +00:00
|
|
|
def ExplicitInitializeCall : DiagGroup<"explicit-initialize-call">;
|
2011-02-20 13:06:31 +00:00
|
|
|
def Packed : DiagGroup<"packed">;
|
|
|
|
def Padded : DiagGroup<"padded">;
|
2015-05-27 18:47:56 +00:00
|
|
|
def PessimizingMove : DiagGroup<"pessimizing-move">;
|
2009-10-14 18:03:49 +00:00
|
|
|
def PointerArith : DiagGroup<"pointer-arith">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def PoundWarning : DiagGroup<"#warnings">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def PoundPragmaMessage : DiagGroup<"#pragma-messages">,
|
2011-05-02 19:39:53 +00:00
|
|
|
DiagCategory<"#pragma message Directive">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"pointer-to-int-cast">;
|
|
|
|
def : DiagGroup<"redundant-decls">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def RedeclaredClassMember : DiagGroup<"redeclared-class-member">;
|
|
|
|
def GNURedeclaredEnum : DiagGroup<"gnu-redeclared-enum">;
|
2015-05-27 18:47:56 +00:00
|
|
|
def RedundantMove : DiagGroup<"redundant-move">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def ReturnStackAddress : DiagGroup<"return-stack-address">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def ReturnTypeCLinkage : DiagGroup<"return-type-c-linkage">;
|
|
|
|
def ReturnType : DiagGroup<"return-type", [ReturnTypeCLinkage]>;
|
|
|
|
def BindToTemporaryCopy : DiagGroup<"bind-to-temporary-copy",
|
|
|
|
[CXX98CompatBindToTemporaryCopy]>;
|
2012-08-15 20:02:54 +00:00
|
|
|
def SelfAssignmentField : DiagGroup<"self-assign-field">;
|
|
|
|
def SelfAssignment : DiagGroup<"self-assign", [SelfAssignmentField]>;
|
2015-01-18 16:23:48 +00:00
|
|
|
def SelfMove : DiagGroup<"self-move">;
|
2009-11-18 14:59:57 +00:00
|
|
|
def SemiBeforeMethodBody : DiagGroup<"semicolon-before-method-body">;
|
2011-10-20 21:14:49 +00:00
|
|
|
def Sentinel : DiagGroup<"sentinel">;
|
|
|
|
def MissingMethodReturnType : DiagGroup<"missing-method-return-type">;
|
2010-03-21 10:50:08 +00:00
|
|
|
def Shadow : DiagGroup<"shadow">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def Shorten64To32 : DiagGroup<"shorten-64-to-32">;
|
2010-07-13 17:21:42 +00:00
|
|
|
def : DiagGroup<"sign-promo">;
|
2009-11-18 14:59:57 +00:00
|
|
|
def SignCompare : DiagGroup<"sign-compare">;
|
2010-09-17 15:54:40 +00:00
|
|
|
def : DiagGroup<"stack-protector">;
|
|
|
|
def : DiagGroup<"switch-default">;
|
2009-11-18 14:59:57 +00:00
|
|
|
def : DiagGroup<"synth">;
|
2011-07-17 15:40:56 +00:00
|
|
|
def SizeofArrayArgument : DiagGroup<"sizeof-array-argument">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def SizeofArrayDecay : DiagGroup<"sizeof-array-decay">;
|
|
|
|
def SizeofPointerMemaccess : DiagGroup<"sizeof-pointer-memaccess">;
|
|
|
|
def StaticInInline : DiagGroup<"static-in-inline">;
|
|
|
|
def StaticLocalInInline : DiagGroup<"static-local-in-inline">;
|
|
|
|
def GNUStaticFloatInit : DiagGroup<"gnu-static-float-init">;
|
|
|
|
def StaticFloatInit : DiagGroup<"static-float-init", [GNUStaticFloatInit]>;
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUStatementExpression : DiagGroup<"gnu-statement-expression">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def StringCompare : DiagGroup<"string-compare">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def StringPlusInt : DiagGroup<"string-plus-int">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def StringPlusChar : DiagGroup<"string-plus-char">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def StrncatSize : DiagGroup<"strncat-size">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def TautologicalOutOfRangeCompare : DiagGroup<"tautological-constant-out-of-range-compare">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def TautologicalPointerCompare : DiagGroup<"tautological-pointer-compare">;
|
|
|
|
def TautologicalOverlapCompare : DiagGroup<"tautological-overlap-compare">;
|
|
|
|
def TautologicalUndefinedCompare : DiagGroup<"tautological-undefined-compare">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def TautologicalCompare : DiagGroup<"tautological-compare",
|
2014-11-24 09:15:30 +00:00
|
|
|
[TautologicalOutOfRangeCompare,
|
|
|
|
TautologicalPointerCompare,
|
|
|
|
TautologicalOverlapCompare,
|
|
|
|
TautologicalUndefinedCompare]>;
|
2011-05-02 19:39:53 +00:00
|
|
|
def HeaderHygiene : DiagGroup<"header-hygiene">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def DuplicateDeclSpecifier : DiagGroup<"duplicate-decl-specifier">;
|
|
|
|
def CompareDistinctPointerType : DiagGroup<"compare-distinct-pointer-types">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUUnionCast : DiagGroup<"gnu-union-cast">;
|
|
|
|
def GNUVariableSizedTypeNotAtEnd : DiagGroup<"gnu-variable-sized-type-not-at-end">;
|
|
|
|
def Varargs : DiagGroup<"varargs">;
|
2009-06-02 17:58:47 +00:00
|
|
|
|
2013-04-08 18:45:10 +00:00
|
|
|
def Unsequenced : DiagGroup<"unsequenced">;
|
|
|
|
// GCC name for -Wunsequenced
|
|
|
|
def : DiagGroup<"sequence-point", [Unsequenced]>;
|
|
|
|
|
2009-10-14 18:03:49 +00:00
|
|
|
// Preprocessor warnings.
|
2012-12-02 13:20:44 +00:00
|
|
|
def AmbiguousMacro : DiagGroup<"ambiguous-macro">;
|
2015-01-18 16:23:48 +00:00
|
|
|
def KeywordAsMacro : DiagGroup<"keyword-macro">;
|
|
|
|
def ReservedIdAsMacro : DiagGroup<"reserved-id-macro">;
|
2009-10-14 18:03:49 +00:00
|
|
|
|
2009-12-01 11:08:04 +00:00
|
|
|
// Just silence warnings about -Wstrict-aliasing for now.
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"strict-aliasing=0">;
|
|
|
|
def : DiagGroup<"strict-aliasing=1">;
|
|
|
|
def : DiagGroup<"strict-aliasing=2">;
|
|
|
|
def : DiagGroup<"strict-aliasing">;
|
|
|
|
|
2009-12-01 11:08:04 +00:00
|
|
|
// Just silence warnings about -Wstrict-overflow for now.
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"strict-overflow=0">;
|
|
|
|
def : DiagGroup<"strict-overflow=1">;
|
|
|
|
def : DiagGroup<"strict-overflow=2">;
|
2009-12-01 11:08:04 +00:00
|
|
|
def : DiagGroup<"strict-overflow=3">;
|
|
|
|
def : DiagGroup<"strict-overflow=4">;
|
|
|
|
def : DiagGroup<"strict-overflow=5">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def : DiagGroup<"strict-overflow">;
|
|
|
|
|
|
|
|
def InvalidOffsetof : DiagGroup<"invalid-offsetof">;
|
|
|
|
def : DiagGroup<"strict-prototypes">;
|
2010-09-17 15:54:40 +00:00
|
|
|
def StrictSelector : DiagGroup<"strict-selector-match">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def MethodDuplicate : DiagGroup<"duplicate-method-match">;
|
2015-01-18 16:23:48 +00:00
|
|
|
def ObjCCStringFormat : DiagGroup<"cstring-format-directive">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def CoveredSwitchDefault : DiagGroup<"covered-switch-default">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def SwitchBool : DiagGroup<"switch-bool">;
|
2010-02-16 09:31:36 +00:00
|
|
|
def SwitchEnum : DiagGroup<"switch-enum">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def Switch : DiagGroup<"switch">;
|
2012-08-15 20:02:54 +00:00
|
|
|
def ImplicitFallthroughPerFunction :
|
|
|
|
DiagGroup<"implicit-fallthrough-per-function">;
|
|
|
|
def ImplicitFallthrough : DiagGroup<"implicit-fallthrough",
|
|
|
|
[ImplicitFallthroughPerFunction]>;
|
|
|
|
def InvalidPPToken : DiagGroup<"invalid-pp-token">;
|
2010-05-04 20:51:19 +00:00
|
|
|
def Trigraphs : DiagGroup<"trigraphs">;
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
def : DiagGroup<"type-limits">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def UndefinedReinterpretCast : DiagGroup<"undefined-reinterpret-cast">;
|
|
|
|
def ReinterpretBaseClass : DiagGroup<"reinterpret-base-class">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def Unicode : DiagGroup<"unicode">;
|
2011-05-02 19:39:53 +00:00
|
|
|
def UninitializedMaybe : DiagGroup<"conditional-uninitialized">;
|
2012-08-15 20:02:54 +00:00
|
|
|
def UninitializedSometimes : DiagGroup<"sometimes-uninitialized">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def UninitializedStaticSelfInit : DiagGroup<"static-self-init">;
|
|
|
|
def Uninitialized : DiagGroup<"uninitialized", [UninitializedSometimes,
|
|
|
|
UninitializedStaticSelfInit]>;
|
2009-06-02 17:58:47 +00:00
|
|
|
def UnknownPragmas : DiagGroup<"unknown-pragmas">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def IgnoredPragmas : DiagGroup<"ignored-pragmas">;
|
|
|
|
def Pragmas : DiagGroup<"pragmas", [UnknownPragmas, IgnoredPragmas]>;
|
2013-04-08 18:45:10 +00:00
|
|
|
def UnknownWarningOption : DiagGroup<"unknown-warning-option">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def NSobjectAttribute : DiagGroup<"NSObject-attribute">;
|
2015-05-27 18:47:56 +00:00
|
|
|
def IndependentClassAttribute : DiagGroup<"IndependentClass-attribute">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def UnknownAttributes : DiagGroup<"unknown-attributes">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def IgnoredAttributes : DiagGroup<"ignored-attributes">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def Attributes : DiagGroup<"attributes", [UnknownAttributes,
|
|
|
|
IgnoredAttributes]>;
|
2015-05-27 18:47:56 +00:00
|
|
|
def UnknownSanitizers : DiagGroup<"unknown-sanitizers">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def UnnamedTypeTemplateArgs : DiagGroup<"unnamed-type-template-args",
|
|
|
|
[CXX98CompatUnnamedTypeTemplateArgs]>;
|
2013-12-22 00:07:40 +00:00
|
|
|
def UnsupportedFriend : DiagGroup<"unsupported-friend">;
|
2009-06-08 15:36:55 +00:00
|
|
|
def UnusedArgument : DiagGroup<"unused-argument">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def UnusedCommandLineArgument : DiagGroup<"unused-command-line-argument">;
|
2015-01-18 16:23:48 +00:00
|
|
|
def IgnoredOptimizationArgument : DiagGroup<"ignored-optimization-argument">;
|
|
|
|
def InvalidCommandLineArgument : DiagGroup<"invalid-command-line-argument",
|
|
|
|
[IgnoredOptimizationArgument]>;
|
2011-10-20 21:14:49 +00:00
|
|
|
def UnusedComparison : DiagGroup<"unused-comparison">;
|
2010-05-04 16:12:48 +00:00
|
|
|
def UnusedExceptionParameter : DiagGroup<"unused-exception-parameter">;
|
2011-05-02 19:39:53 +00:00
|
|
|
def UnneededInternalDecl : DiagGroup<"unneeded-internal-declaration">;
|
|
|
|
def UnneededMemberFunction : DiagGroup<"unneeded-member-function">;
|
2012-08-15 20:02:54 +00:00
|
|
|
def UnusedPrivateField : DiagGroup<"unused-private-field">;
|
2011-05-02 19:39:53 +00:00
|
|
|
def UnusedFunction : DiagGroup<"unused-function", [UnneededInternalDecl]>;
|
|
|
|
def UnusedMemberFunction : DiagGroup<"unused-member-function",
|
|
|
|
[UnneededMemberFunction]>;
|
2009-06-08 15:36:55 +00:00
|
|
|
def UnusedLabel : DiagGroup<"unused-label">;
|
|
|
|
def UnusedParameter : DiagGroup<"unused-parameter">;
|
2011-10-20 21:14:49 +00:00
|
|
|
def UnusedResult : DiagGroup<"unused-result">;
|
2015-01-18 16:23:48 +00:00
|
|
|
def PotentiallyEvaluatedExpression : DiagGroup<"potentially-evaluated-expression">;
|
|
|
|
def UnevaluatedExpression : DiagGroup<"unevaluated-expression",
|
|
|
|
[PotentiallyEvaluatedExpression]>;
|
|
|
|
def UnusedValue : DiagGroup<"unused-value", [UnusedComparison, UnusedResult,
|
|
|
|
UnevaluatedExpression]>;
|
2013-12-22 00:07:40 +00:00
|
|
|
def UnusedConstVariable : DiagGroup<"unused-const-variable">;
|
|
|
|
def UnusedVariable : DiagGroup<"unused-variable",
|
|
|
|
[UnusedConstVariable]>;
|
2015-01-18 16:23:48 +00:00
|
|
|
def UnusedLocalTypedef : DiagGroup<"unused-local-typedef">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def UnusedPropertyIvar : DiagGroup<"unused-property-ivar">;
|
2015-01-18 16:23:48 +00:00
|
|
|
def UnusedGetterReturnValue : DiagGroup<"unused-getter-return-value">;
|
2011-02-20 13:06:31 +00:00
|
|
|
def UsedButMarkedUnused : DiagGroup<"used-but-marked-unused">;
|
2011-10-20 21:14:49 +00:00
|
|
|
def UserDefinedLiterals : DiagGroup<"user-defined-literals">;
|
2009-10-14 18:03:49 +00:00
|
|
|
def Reorder : DiagGroup<"reorder">;
|
2009-06-22 08:08:35 +00:00
|
|
|
def UndeclaredSelector : DiagGroup<"undeclared-selector">;
|
2011-02-20 13:06:31 +00:00
|
|
|
def ImplicitAtomic : DiagGroup<"implicit-atomic-properties">;
|
|
|
|
def CustomAtomic : DiagGroup<"custom-atomic-properties">;
|
|
|
|
def AtomicProperties : DiagGroup<"atomic-properties",
|
|
|
|
[ImplicitAtomic, CustomAtomic]>;
|
2011-07-17 15:40:56 +00:00
|
|
|
def ARCUnsafeRetainedAssign : DiagGroup<"arc-unsafe-retained-assign">;
|
|
|
|
def ARCRetainCycles : DiagGroup<"arc-retain-cycles">;
|
|
|
|
def ARCNonPodMemAccess : DiagGroup<"arc-non-pod-memaccess">;
|
|
|
|
def AutomaticReferenceCounting : DiagGroup<"arc",
|
2012-12-02 13:20:44 +00:00
|
|
|
[ARCUnsafeRetainedAssign,
|
2011-07-17 15:40:56 +00:00
|
|
|
ARCRetainCycles,
|
|
|
|
ARCNonPodMemAccess]>;
|
2012-12-02 13:20:44 +00:00
|
|
|
def ARCRepeatedUseOfWeakMaybe : DiagGroup<"arc-maybe-repeated-use-of-weak">;
|
|
|
|
def ARCRepeatedUseOfWeak : DiagGroup<"arc-repeated-use-of-weak",
|
|
|
|
[ARCRepeatedUseOfWeakMaybe]>;
|
2013-12-22 00:07:40 +00:00
|
|
|
def ObjCBridge : DiagGroup<"bridge-cast">;
|
|
|
|
|
2014-11-24 09:15:30 +00:00
|
|
|
def DeallocInCategory:DiagGroup<"dealloc-in-category">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def SelectorTypeMismatch : DiagGroup<"selector-type-mismatch">;
|
|
|
|
def Selector : DiagGroup<"selector", [SelectorTypeMismatch]>;
|
2010-04-02 08:55:10 +00:00
|
|
|
def Protocol : DiagGroup<"protocol">;
|
2015-01-18 16:23:48 +00:00
|
|
|
def AtProtocol : DiagGroup<"at-protocol">;
|
|
|
|
def PropertyAccessDotSyntax: DiagGroup<"property-access-dot-syntax">;
|
|
|
|
def PropertyAttr : DiagGroup<"property-attribute-mismatch">;
|
2009-10-14 18:03:49 +00:00
|
|
|
def SuperSubClassMismatch : DiagGroup<"super-class-method-mismatch">;
|
2011-10-20 21:14:49 +00:00
|
|
|
def OverridingMethodMismatch : DiagGroup<"overriding-method-mismatch">;
|
2009-12-15 18:49:47 +00:00
|
|
|
def VariadicMacros : DiagGroup<"variadic-macros">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def VectorConversion : DiagGroup<"vector-conversion">; // clang specific
|
|
|
|
def VexingParse : DiagGroup<"vexing-parse">;
|
2010-05-27 15:17:06 +00:00
|
|
|
def VLA : DiagGroup<"vla">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def VLAExtension : DiagGroup<"vla-extension">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def VolatileRegisterVar : DiagGroup<"volatile-register-var">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def Visibility : DiagGroup<"visibility">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def ZeroLengthArray : DiagGroup<"zero-length-array">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNUZeroLineDirective : DiagGroup<"gnu-zero-line-directive">;
|
|
|
|
def GNUZeroVariadicMacroArguments : DiagGroup<"gnu-zero-variadic-macro-arguments">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def Fallback : DiagGroup<"fallback">;
|
|
|
|
|
|
|
|
// This covers both the deprecated case (in C++98)
|
|
|
|
// and the extension case (in C++11 onwards).
|
|
|
|
def WritableStrings : DiagGroup<"writable-strings", [DeprecatedWritableStr]>;
|
2011-05-02 19:39:53 +00:00
|
|
|
|
|
|
|
// GCC calls -Wdeprecated-writable-strings -Wwrite-strings.
|
2014-11-24 09:15:30 +00:00
|
|
|
//
|
|
|
|
// Bizarrely, this warning flag enables -fconst-strings in C. This is
|
|
|
|
// GCC-compatible, but really weird.
|
|
|
|
//
|
|
|
|
// FIXME: Should this affect C++11 (where this is an error,
|
|
|
|
// not just deprecated) or not?
|
|
|
|
def GCCWriteStrings : DiagGroup<"write-strings" , [WritableStrings]>;
|
2011-05-02 19:39:53 +00:00
|
|
|
|
2009-10-14 18:03:49 +00:00
|
|
|
def CharSubscript : DiagGroup<"char-subscripts">;
|
2011-02-20 13:06:31 +00:00
|
|
|
def LargeByValueCopy : DiagGroup<"large-by-value-copy">;
|
2011-05-02 19:39:53 +00:00
|
|
|
def DuplicateArgDecl : DiagGroup<"duplicate-method-arg">;
|
2009-06-02 17:58:47 +00:00
|
|
|
|
2014-11-24 09:15:30 +00:00
|
|
|
// Unreachable code warning groups.
|
|
|
|
//
|
|
|
|
// The goal is make -Wunreachable-code on by default, in -Wall, or at
|
|
|
|
// least actively used, with more noisy versions of the warning covered
|
|
|
|
// under separate flags.
|
|
|
|
//
|
|
|
|
def UnreachableCodeLoopIncrement : DiagGroup<"unreachable-code-loop-increment">;
|
|
|
|
def UnreachableCode : DiagGroup<"unreachable-code",
|
|
|
|
[UnreachableCodeLoopIncrement]>;
|
|
|
|
def UnreachableCodeBreak : DiagGroup<"unreachable-code-break">;
|
|
|
|
def UnreachableCodeReturn : DiagGroup<"unreachable-code-return">;
|
|
|
|
def UnreachableCodeAggressive : DiagGroup<"unreachable-code-aggressive",
|
|
|
|
[UnreachableCode,
|
|
|
|
UnreachableCodeBreak,
|
|
|
|
UnreachableCodeReturn]>;
|
|
|
|
|
2009-06-02 17:58:47 +00:00
|
|
|
// Aggregation warning settings.
|
|
|
|
|
2014-11-24 09:15:30 +00:00
|
|
|
// Populate -Waddress with warnings from other groups.
|
|
|
|
def : DiagGroup<"address", [PointerBoolConversion,
|
|
|
|
StringCompare,
|
|
|
|
TautologicalPointerCompare]>;
|
|
|
|
|
2009-11-18 14:59:57 +00:00
|
|
|
// -Widiomatic-parentheses contains warnings about 'idiomatic'
|
2011-05-02 19:39:53 +00:00
|
|
|
// missing parentheses; it is off by default. We do not include it
|
|
|
|
// in -Wparentheses because most users who use -Wparentheses explicitly
|
|
|
|
// do not want these warnings.
|
2011-10-20 21:14:49 +00:00
|
|
|
def ParenthesesOnEquality : DiagGroup<"parentheses-equality">;
|
2011-02-20 13:06:31 +00:00
|
|
|
def Parentheses : DiagGroup<"parentheses",
|
2011-07-17 15:40:56 +00:00
|
|
|
[LogicalOpParentheses,
|
2013-12-22 00:07:40 +00:00
|
|
|
LogicalNotParentheses,
|
2011-10-20 21:14:49 +00:00
|
|
|
BitwiseOpParentheses,
|
2012-12-02 13:20:44 +00:00
|
|
|
ShiftOpParentheses,
|
2013-06-10 20:45:12 +00:00
|
|
|
OverloadedShiftOpParentheses,
|
2012-04-14 14:01:31 +00:00
|
|
|
ParenthesesOnEquality,
|
|
|
|
DanglingElse]>;
|
2009-11-18 14:59:57 +00:00
|
|
|
|
2011-02-20 13:06:31 +00:00
|
|
|
// -Wconversion has its own warnings, but we split a few out for
|
|
|
|
// legacy reasons:
|
|
|
|
// - some people want just 64-to-32 warnings
|
|
|
|
// - conversion warnings with constant sources are on by default
|
|
|
|
// - conversion warnings for literals are on by default
|
|
|
|
// - bool-to-pointer conversion warnings are on by default
|
2012-04-14 14:01:31 +00:00
|
|
|
// - __null-to-integer conversion warnings are on by default
|
2009-11-18 14:59:57 +00:00
|
|
|
def Conversion : DiagGroup<"conversion",
|
2012-12-02 13:20:44 +00:00
|
|
|
[BoolConversion,
|
2012-04-14 14:01:31 +00:00
|
|
|
ConstantConversion,
|
2012-12-02 13:20:44 +00:00
|
|
|
EnumConversion,
|
2014-11-24 09:15:30 +00:00
|
|
|
FloatConversion,
|
2012-12-02 13:20:44 +00:00
|
|
|
Shorten64To32,
|
|
|
|
IntConversion,
|
2012-04-14 14:01:31 +00:00
|
|
|
LiteralConversion,
|
2012-08-15 20:02:54 +00:00
|
|
|
NonLiteralNullConversion, // (1-1)->pointer (etc)
|
2012-12-02 13:20:44 +00:00
|
|
|
NullConversion, // NULL->non-pointer
|
2014-11-24 09:15:30 +00:00
|
|
|
ObjCLiteralConversion,
|
2012-12-02 13:20:44 +00:00
|
|
|
SignConversion,
|
|
|
|
StringConversion]>,
|
2010-05-27 15:17:06 +00:00
|
|
|
DiagCategory<"Value Conversion Issue">;
|
2009-06-02 17:58:47 +00:00
|
|
|
|
2009-06-08 15:36:55 +00:00
|
|
|
def Unused : DiagGroup<"unused",
|
|
|
|
[UnusedArgument, UnusedFunction, UnusedLabel,
|
2010-05-04 16:12:48 +00:00
|
|
|
// UnusedParameter, (matches GCC's behavior)
|
2010-09-17 15:54:40 +00:00
|
|
|
// UnusedMemberFunction, (clean-up llvm before enabling)
|
2015-01-18 16:23:48 +00:00
|
|
|
UnusedPrivateField, UnusedLocalTypedef,
|
2013-12-22 00:07:40 +00:00
|
|
|
UnusedValue, UnusedVariable, UnusedPropertyIvar]>,
|
2010-05-27 15:17:06 +00:00
|
|
|
DiagCategory<"Unused Entity Issue">;
|
2009-06-08 15:36:55 +00:00
|
|
|
|
2009-06-02 17:58:47 +00:00
|
|
|
// Format settings.
|
2011-10-20 21:14:49 +00:00
|
|
|
def FormatInvalidSpecifier : DiagGroup<"format-invalid-specifier">;
|
2011-02-26 22:09:03 +00:00
|
|
|
def FormatSecurity : DiagGroup<"format-security">;
|
2012-04-14 14:01:31 +00:00
|
|
|
def FormatNonStandard : DiagGroup<"format-non-iso">;
|
2011-07-17 15:40:56 +00:00
|
|
|
def FormatY2K : DiagGroup<"format-y2k">;
|
2015-05-27 18:47:56 +00:00
|
|
|
def FormatPedantic : DiagGroup<"format-pedantic">;
|
2011-02-26 22:09:03 +00:00
|
|
|
def Format : DiagGroup<"format",
|
|
|
|
[FormatExtraArgs, FormatZeroLength, NonNull,
|
2011-10-20 21:14:49 +00:00
|
|
|
FormatSecurity, FormatY2K, FormatInvalidSpecifier]>,
|
2010-05-27 15:17:06 +00:00
|
|
|
DiagCategory<"Format String Issue">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def FormatNonLiteral : DiagGroup<"format-nonliteral">;
|
2009-06-02 17:58:47 +00:00
|
|
|
def Format2 : DiagGroup<"format=2",
|
|
|
|
[FormatNonLiteral, FormatSecurity, FormatY2K]>;
|
|
|
|
|
2012-08-19 10:33:04 +00:00
|
|
|
def TypeSafety : DiagGroup<"type-safety">;
|
|
|
|
|
2013-12-22 00:07:40 +00:00
|
|
|
def IntToVoidPointerCast : DiagGroup<"int-to-void-pointer-cast">;
|
|
|
|
def IntToPointerCast : DiagGroup<"int-to-pointer-cast",
|
|
|
|
[IntToVoidPointerCast]>;
|
2012-12-02 13:20:44 +00:00
|
|
|
|
2015-05-27 18:47:56 +00:00
|
|
|
def Move : DiagGroup<"move", [PessimizingMove, RedundantMove, SelfMove]>;
|
|
|
|
|
2009-06-22 08:08:35 +00:00
|
|
|
def Extra : DiagGroup<"extra", [
|
2010-03-16 16:52:15 +00:00
|
|
|
MissingFieldInitializers,
|
2010-07-15 17:07:12 +00:00
|
|
|
IgnoredQualifiers,
|
2010-07-13 17:21:42 +00:00
|
|
|
InitializerOverrides,
|
2009-11-18 14:59:57 +00:00
|
|
|
SemiBeforeMethodBody,
|
2011-10-20 21:14:49 +00:00
|
|
|
MissingMethodReturnType,
|
2009-11-18 14:59:57 +00:00
|
|
|
SignCompare,
|
2009-06-22 08:08:35 +00:00
|
|
|
UnusedParameter
|
|
|
|
]>;
|
2009-06-02 17:58:47 +00:00
|
|
|
|
|
|
|
def Most : DiagGroup<"most", [
|
2010-05-04 16:12:48 +00:00
|
|
|
CharSubscript,
|
2009-06-02 17:58:47 +00:00
|
|
|
Comment,
|
2011-06-12 15:46:16 +00:00
|
|
|
DeleteNonVirtualDtor,
|
2009-06-02 17:58:47 +00:00
|
|
|
Format,
|
|
|
|
Implicit,
|
|
|
|
MismatchedTags,
|
2010-03-10 17:45:58 +00:00
|
|
|
MissingBraces,
|
2015-05-27 18:47:56 +00:00
|
|
|
Move,
|
2009-06-02 17:58:47 +00:00
|
|
|
MultiChar,
|
2010-05-04 16:12:48 +00:00
|
|
|
Reorder,
|
2009-10-14 18:03:49 +00:00
|
|
|
ReturnType,
|
2011-02-20 13:06:31 +00:00
|
|
|
SelfAssignment,
|
2015-01-18 16:23:48 +00:00
|
|
|
SelfMove,
|
2011-07-17 15:40:56 +00:00
|
|
|
SizeofArrayArgument,
|
2013-04-08 18:45:10 +00:00
|
|
|
SizeofArrayDecay,
|
2012-04-14 14:01:31 +00:00
|
|
|
StringPlusInt,
|
2009-06-02 17:58:47 +00:00
|
|
|
Trigraphs,
|
|
|
|
Uninitialized,
|
|
|
|
UnknownPragmas,
|
2010-05-04 16:12:48 +00:00
|
|
|
Unused,
|
2011-02-20 13:06:31 +00:00
|
|
|
VolatileRegisterVar,
|
2011-10-20 21:14:49 +00:00
|
|
|
ObjCMissingSuperCalls,
|
2014-11-24 09:15:30 +00:00
|
|
|
ObjCDesignatedInit,
|
2012-08-19 10:33:04 +00:00
|
|
|
OverloadedVirtual,
|
|
|
|
PrivateExtern,
|
2013-12-22 00:07:40 +00:00
|
|
|
SelTypeCast,
|
|
|
|
ExternCCompat
|
2009-06-02 17:58:47 +00:00
|
|
|
]>;
|
|
|
|
|
2011-10-20 21:14:49 +00:00
|
|
|
// Thread Safety warnings
|
2012-08-15 20:02:54 +00:00
|
|
|
def ThreadSafetyAttributes : DiagGroup<"thread-safety-attributes">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def ThreadSafetyAnalysis : DiagGroup<"thread-safety-analysis">;
|
|
|
|
def ThreadSafetyPrecise : DiagGroup<"thread-safety-precise">;
|
2015-01-18 16:23:48 +00:00
|
|
|
def ThreadSafetyReference : DiagGroup<"thread-safety-reference">;
|
|
|
|
def ThreadSafetyNegative : DiagGroup<"thread-safety-negative">;
|
2012-12-02 13:20:44 +00:00
|
|
|
def ThreadSafety : DiagGroup<"thread-safety",
|
|
|
|
[ThreadSafetyAttributes,
|
|
|
|
ThreadSafetyAnalysis,
|
2015-01-18 16:23:48 +00:00
|
|
|
ThreadSafetyPrecise,
|
|
|
|
ThreadSafetyReference]>;
|
|
|
|
def ThreadSafetyVerbose : DiagGroup<"thread-safety-verbose">;
|
2013-04-08 18:45:10 +00:00
|
|
|
def ThreadSafetyBeta : DiagGroup<"thread-safety-beta">;
|
2011-10-20 21:14:49 +00:00
|
|
|
|
2013-12-22 00:07:40 +00:00
|
|
|
// Uniqueness Analysis warnings
|
|
|
|
def Consumed : DiagGroup<"consumed">;
|
|
|
|
|
2012-04-14 14:01:31 +00:00
|
|
|
// Note that putting warnings in -Wall will not disable them by default. If a
|
|
|
|
// warning should be active _only_ when -Wall is passed in, mark it as
|
|
|
|
// DefaultIgnore in addition to putting it here.
|
2014-11-24 09:15:30 +00:00
|
|
|
def : DiagGroup<"all", [Most, Parentheses, Switch, SwitchBool]>;
|
2009-06-02 17:58:47 +00:00
|
|
|
|
2012-08-15 20:02:54 +00:00
|
|
|
// Warnings enabled by -pedantic. This is magically filled in by TableGen.
|
|
|
|
def Pedantic : DiagGroup<"pedantic">;
|
|
|
|
|
2009-06-02 17:58:47 +00:00
|
|
|
// Aliases.
|
2010-01-01 10:34:51 +00:00
|
|
|
def : DiagGroup<"", [Extra]>; // -W = -Wextra
|
2013-12-22 00:07:40 +00:00
|
|
|
def : DiagGroup<"endif-labels", [ExtraTokens]>; // -Wendif-labels=-Wextra-tokens
|
2010-01-01 10:34:51 +00:00
|
|
|
def : DiagGroup<"comments", [Comment]>; // -Wcomments = -Wcomment
|
2012-04-14 14:01:31 +00:00
|
|
|
def : DiagGroup<"conversion-null",
|
|
|
|
[NullConversion]>; // -Wconversion-null = -Wnull-conversion
|
|
|
|
def : DiagGroup<"bool-conversions",
|
|
|
|
[BoolConversion]>; // -Wbool-conversions = -Wbool-conversion
|
|
|
|
def : DiagGroup<"int-conversions",
|
|
|
|
[IntConversion]>; // -Wint-conversions = -Wint-conversion
|
|
|
|
def : DiagGroup<"vector-conversions",
|
|
|
|
[VectorConversion]>; // -Wvector-conversions = -Wvector-conversion
|
2015-01-18 16:23:48 +00:00
|
|
|
def : DiagGroup<"unused-local-typedefs", [UnusedLocalTypedef]>;
|
|
|
|
// -Wunused-local-typedefs = -Wunused-local-typedef
|
2009-06-02 17:58:47 +00:00
|
|
|
|
2009-11-18 14:59:57 +00:00
|
|
|
// A warning group for warnings that we want to have on by default in clang,
|
|
|
|
// but which aren't on by default in GCC.
|
|
|
|
def NonGCC : DiagGroup<"non-gcc",
|
2010-03-10 17:45:58 +00:00
|
|
|
[SignCompare, Conversion, LiteralRange]>;
|
2010-04-02 08:55:10 +00:00
|
|
|
|
2011-10-20 21:14:49 +00:00
|
|
|
// A warning group for warnings about using C++11 features as extensions in
|
2011-02-20 13:06:31 +00:00
|
|
|
// earlier C++ versions.
|
2012-12-02 13:20:44 +00:00
|
|
|
def CXX11 : DiagGroup<"c++11-extensions", [CXX11ExtraSemi, CXX11LongLong]>;
|
|
|
|
|
2015-01-18 16:23:48 +00:00
|
|
|
// A warning group for warnings about using C++14 features as extensions in
|
2013-06-10 20:45:12 +00:00
|
|
|
// earlier C++ versions.
|
2015-01-18 16:23:48 +00:00
|
|
|
def CXX14 : DiagGroup<"c++14-extensions">;
|
2013-06-10 20:45:12 +00:00
|
|
|
|
2014-11-24 09:15:30 +00:00
|
|
|
// A warning group for warnings about using C++1z features as extensions in
|
|
|
|
// earlier C++ versions.
|
|
|
|
def CXX1z : DiagGroup<"c++1z-extensions">;
|
|
|
|
|
2011-10-20 21:14:49 +00:00
|
|
|
def : DiagGroup<"c++0x-extensions", [CXX11]>;
|
2015-01-18 16:23:48 +00:00
|
|
|
def : DiagGroup<"c++1y-extensions", [CXX14]>;
|
|
|
|
|
2011-06-12 15:46:16 +00:00
|
|
|
def DelegatingCtorCycles :
|
|
|
|
DiagGroup<"delegating-ctor-cycles">;
|
2011-02-20 13:06:31 +00:00
|
|
|
|
2012-04-14 14:01:31 +00:00
|
|
|
// A warning group for warnings about using C11 features as extensions.
|
|
|
|
def C11 : DiagGroup<"c11-extensions">;
|
|
|
|
|
|
|
|
// A warning group for warnings about using C99 features as extensions.
|
|
|
|
def C99 : DiagGroup<"c99-extensions">;
|
2011-10-20 21:14:49 +00:00
|
|
|
|
2010-04-02 08:55:10 +00:00
|
|
|
// A warning group for warnings about GCC extensions.
|
2013-12-22 00:07:40 +00:00
|
|
|
def GNU : DiagGroup<"gnu", [GNUAlignofExpression, GNUAnonymousStruct,
|
|
|
|
GNUBinaryLiteral, GNUCaseRange,
|
|
|
|
GNUComplexInteger, GNUCompoundLiteralInitializer,
|
|
|
|
GNUConditionalOmittedOperand, GNUDesignator,
|
|
|
|
GNUEmptyInitializer, GNUEmptyStruct,
|
|
|
|
VLAExtension, GNUFlexibleArrayInitializer,
|
|
|
|
GNUFlexibleArrayUnionMember, GNUFoldingConstant,
|
|
|
|
GNUImaginaryConstant, GNULabelsAsValue,
|
|
|
|
RedeclaredClassMember, GNURedeclaredEnum,
|
|
|
|
GNUStatementExpression, GNUStaticFloatInit,
|
|
|
|
GNUStringLiteralOperatorTemplate,
|
|
|
|
GNUUnionCast, GNUVariableSizedTypeNotAtEnd,
|
|
|
|
ZeroLengthArray, GNUZeroLineDirective,
|
|
|
|
GNUZeroVariadicMacroArguments]>;
|
2012-04-14 14:01:31 +00:00
|
|
|
// A warning group for warnings about code that clang accepts but gcc doesn't.
|
|
|
|
def GccCompat : DiagGroup<"gcc-compat">;
|
2011-02-20 13:06:31 +00:00
|
|
|
|
|
|
|
// A warning group for warnings about Microsoft extensions.
|
|
|
|
def Microsoft : DiagGroup<"microsoft">;
|
2011-07-17 15:40:56 +00:00
|
|
|
|
|
|
|
def ObjCNonUnifiedException : DiagGroup<"objc-nonunified-exceptions">;
|
|
|
|
|
2011-10-20 21:14:49 +00:00
|
|
|
def ObjCProtocolMethodImpl : DiagGroup<"objc-protocol-method-implementation">;
|
2012-04-14 14:01:31 +00:00
|
|
|
|
2013-04-08 18:45:10 +00:00
|
|
|
def ObjCNoPropertyAutoSynthesis : DiagGroup<"objc-property-synthesis">;
|
|
|
|
|
2012-04-14 14:01:31 +00:00
|
|
|
// ObjC API warning groups.
|
|
|
|
def ObjCRedundantLiteralUse : DiagGroup<"objc-redundant-literal-use">;
|
|
|
|
def ObjCRedundantAPIUse : DiagGroup<"objc-redundant-api-use", [
|
|
|
|
ObjCRedundantLiteralUse
|
|
|
|
]>;
|
|
|
|
|
|
|
|
def ObjCCocoaAPI : DiagGroup<"objc-cocoa-api", [
|
|
|
|
ObjCRedundantAPIUse
|
|
|
|
]>;
|
2012-08-15 20:02:54 +00:00
|
|
|
|
|
|
|
def ObjCStringComparison : DiagGroup<"objc-string-compare">;
|
2013-12-22 00:07:40 +00:00
|
|
|
def ObjCStringConcatenation : DiagGroup<"objc-string-concatenation">;
|
2012-08-15 20:02:54 +00:00
|
|
|
def ObjCLiteralComparison : DiagGroup<"objc-literal-compare", [
|
|
|
|
ObjCStringComparison
|
|
|
|
]>;
|
2012-12-02 13:20:44 +00:00
|
|
|
|
|
|
|
// Inline ASM warnings.
|
|
|
|
def ASMOperandWidths : DiagGroup<"asm-operand-widths">;
|
|
|
|
def ASM : DiagGroup<"asm", [
|
|
|
|
ASMOperandWidths
|
|
|
|
]>;
|
2013-04-08 18:45:10 +00:00
|
|
|
|
|
|
|
// OpenMP warnings.
|
|
|
|
def SourceUsesOpenMP : DiagGroup<"source-uses-openmp">;
|
2014-11-24 09:15:30 +00:00
|
|
|
def OpenMPClauses : DiagGroup<"openmp-clauses">;
|
|
|
|
def OpenMPLoopForm : DiagGroup<"openmp-loop-form">;
|
|
|
|
|
|
|
|
// Backend warnings.
|
|
|
|
def BackendInlineAsm : DiagGroup<"inline-asm">;
|
|
|
|
def BackendFrameLargerThanEQ : DiagGroup<"frame-larger-than=">;
|
|
|
|
def BackendPlugin : DiagGroup<"backend-plugin">;
|
|
|
|
def RemarkBackendPlugin : DiagGroup<"remark-backend-plugin">;
|
|
|
|
def BackendOptimizationRemark : DiagGroup<"pass">;
|
|
|
|
def BackendOptimizationRemarkMissed : DiagGroup<"pass-missed">;
|
|
|
|
def BackendOptimizationRemarkAnalysis : DiagGroup<"pass-analysis">;
|
|
|
|
def BackendOptimizationFailure : DiagGroup<"pass-failed">;
|
|
|
|
|
|
|
|
// Instrumentation based profiling warnings.
|
|
|
|
def ProfileInstrOutOfDate : DiagGroup<"profile-instr-out-of-date">;
|
|
|
|
def ProfileInstrUnprofiled : DiagGroup<"profile-instr-unprofiled">;
|
|
|
|
|
2015-01-18 16:23:48 +00:00
|
|
|
// AddressSanitizer frontent instrumentation remarks.
|
|
|
|
def SanitizeAddressRemarks : DiagGroup<"sanitize-address">;
|
|
|
|
|
|
|
|
// Issues with serialized diagnostics.
|
|
|
|
def SerializedDiagnostics : DiagGroup<"serialized-diagnostics">;
|
|
|
|
|
2014-11-24 09:15:30 +00:00
|
|
|
// A warning group for warnings about code that clang accepts when
|
|
|
|
// compiling CUDA C/C++ but which is not compatible with the CUDA spec.
|
|
|
|
def CudaCompat : DiagGroup<"cuda-compat">;
|
2015-02-14 12:18:48 +00:00
|
|
|
|
|
|
|
// A warning group for things that will change semantics in the future.
|
|
|
|
def FutureCompat : DiagGroup<"future-compat">;
|