Objective-C lints
The lint rules of Objective-C, with what each one finds. This page has 40 cards.
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C, C++, Objective-C.
- Code
alpha.clone.CloneChecker
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to Objective-C.
- Code
alpha.core.BoolAssignment
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C, C++, Objective-C.
- Code
alpha.core.Conversion
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to Objective-C.
- Code
alpha.core.DynamicTypeChecker
This checker is a part of core.StackAddressEscape, but is temporarily disabled until some false positives are fixed. It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to Objective-C.
- Code
alpha.core.StackAddressAsyncEscape
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to Objective-C.
- Code
alpha.osx.cocoa.DirectIvarAssignment
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to Objective-C.
- Code
alpha.osx.cocoa.DirectIvarAssignmentForAnnotatedFunctions
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to Objective-C.
- Code
alpha.osx.cocoa.InstanceVariableInvalidation
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to Objective-C.
- Code
alpha.osx.cocoa.localizability.PluralMisuseChecker
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to Objective-C.
- Code
alpha.osx.cocoa.MissingInvalidationMethod
clang-tidy runs it as the check clang-analyzer-core.CallAndMessage. It applies to C, C++, Objective-C.
- Code
core.CallAndMessage
clang-tidy runs it as the check clang-analyzer-core.DivideZero. It applies to C, C++, Objective-C.
- Code
core.DivideZero
clang-tidy runs it as the check clang-analyzer-core.NonNullParamChecker. It applies to C, C++, Objective-C.
- Code
core.NonNullParamChecker
clang-tidy runs it as the check clang-analyzer-core.NullDereference. It applies to C, C++, Objective-C.
- Code
core.NullDereference
clang-tidy runs it as the check clang-analyzer-nullability.NullableDereferenced. It applies to Objective-C.
- Code
nullability.NullableDereferenced
clang-tidy runs it as the check clang-analyzer-nullability.NullablePassedToNonnull. It applies to Objective-C.
- Code
nullability.NullablePassedToNonnull
clang-tidy runs it as the check clang-analyzer-nullability.NullableReturnedFromNonnull. It applies to Objective-C.
- Code
nullability.NullableReturnedFromNonnull
clang-tidy runs it as the check clang-analyzer-nullability.NullPassedToNonnull. It applies to Objective-C.
- Code
nullability.NullPassedToNonnull
clang-tidy runs it as the check clang-analyzer-nullability.NullReturnedFromNonnull. It applies to C, C++, Objective-C.
- Code
nullability.NullReturnedFromNonnull
It is an opt-in checker, so the analyzer runs it only when you enable it. clang-tidy runs it as the check clang-analyzer-optin.core.FixedAddressDereference. It applies to C, C++, Objective-C.
- Code
optin.core.FixedAddressDereference
It is an opt-in checker, so the analyzer runs it only when you enable it. clang-tidy runs it as the check clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker. It applies to Objective-C.
- Code
optin.osx.cocoa.localizability.EmptyLocalizationContextChecker
It is an opt-in checker, so the analyzer runs it only when you enable it. clang-tidy runs it as the check clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker. It applies to Objective-C.
- Code
optin.osx.cocoa.localizability.NonLocalizedStringChecker
It is an opt-in checker, so the analyzer runs it only when you enable it. clang-tidy runs it as the check clang-analyzer-optin.performance.Padding. It applies to C, C++, Objective-C.
- Code
optin.performance.Padding
If the attacker can set the denominator to 0, a runtime error can be triggered. The checker warns when the denominator is a tainted value and the analyzer cannot prove that it is not 0. It is an opt-in checker, so the analyzer runs it only when you enable it. clang-tidy runs it as the check clang-analyzer-optin.taint.TaintedDiv. It applies to C, C++, Objective-C.
- Code
optin.taint.TaintedDiv
clang-tidy runs it as the check clang-analyzer-osx.cocoa.AtSync. It applies to Objective-C.
- Code
osx.cocoa.AtSync
clang-tidy runs it as the check clang-analyzer-osx.cocoa.ClassRelease. It applies to Objective-C.
- Code
osx.cocoa.ClassRelease
clang-tidy runs it as the check clang-analyzer-osx.cocoa.Dealloc. It applies to Objective-C.
- Code
osx.cocoa.Dealloc
clang-tidy runs it as the check clang-analyzer-osx.cocoa.IncompatibleMethodTypes. It applies to Objective-C.
- Code
osx.cocoa.IncompatibleMethodTypes
clang-tidy runs it as the check clang-analyzer-osx.cocoa.MissingSuperCall. It applies to Objective-C.
- Code
osx.cocoa.MissingSuperCall
clang-tidy runs it as the check clang-analyzer-osx.cocoa.NilArg. It applies to Objective-C.
- Code
osx.cocoa.NilArg
clang-tidy runs it as the check clang-analyzer-osx.cocoa.NSAutoreleasePool. It applies to Objective-C.
- Code
osx.cocoa.NSAutoreleasePool
clang-tidy runs it as the check clang-analyzer-osx.cocoa.NSError. It applies to Objective-C.
- Code
osx.cocoa.NSError
clang-tidy runs it as the check clang-analyzer-osx.cocoa.ObjCGenerics. It applies to Objective-C.
- Code
osx.cocoa.ObjCGenerics
clang-tidy runs it as the check clang-analyzer-osx.cocoa.RetainCount. It applies to Objective-C.
- Code
osx.cocoa.RetainCount
clang-tidy runs it as the check clang-analyzer-osx.cocoa.SelfInit. It applies to Objective-C.
- Code
osx.cocoa.SelfInit
clang-tidy runs it as the check clang-analyzer-osx.cocoa.SuperDealloc. It applies to Objective-C.
- Code
osx.cocoa.SuperDealloc
clang-tidy runs it as the check clang-analyzer-osx.cocoa.UnusedIvars. It applies to Objective-C.
- Code
osx.cocoa.UnusedIvars
clang-tidy runs it as the check clang-analyzer-osx.cocoa.VariadicMethodTypes. It applies to Objective-C.
- Code
osx.cocoa.VariadicMethodTypes
clang-tidy runs it as the check clang-analyzer-osx.NumberObjectConversion. It applies to C, C++, Objective-C.
- Code
osx.NumberObjectConversion
clang-tidy runs it as the check clang-analyzer-osx.ObjCProperty. It applies to Objective-C.
- Code
osx.ObjCProperty