Index: cfe/trunk/include/clang/StaticAnalyzer/Checkers/CheckerBase.td =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Checkers/CheckerBase.td +++ cfe/trunk/include/clang/StaticAnalyzer/Checkers/CheckerBase.td @@ -48,9 +48,24 @@ /// Note that a checker has a name (e.g.: 'NullDereference'), and a fullname, /// that is autogenerated with the help of the ParentPackage field, that also /// includes package names (e.g.: 'core.NullDereference'). +/// Example: +/// def DereferenceChecker : Checker<"NullDereference">, +/// HelpText<"Check for dereferences of null pointers">; class Checker { - string CheckerName = name; - string HelpText; - bits<2> Documentation; - Package ParentPackage; + string CheckerName = name; + string HelpText; + list Dependencies; + bits<2> Documentation; + Package ParentPackage; +} + +/// Describes dependencies in between checkers. For example, InnerPointerChecker +/// relies on information MallocBase gathers. +/// Example: +/// def InnerPointerChecker : Checker<"InnerPointer">, +/// HelpText<"Check for inner pointers of C++ containers used after " +/// "re/deallocation">, +/// Dependencies<[MallocBase]>; +class Dependencies Deps = []> { + list Dependencies = Deps; } Index: cfe/trunk/include/clang/StaticAnalyzer/Checkers/Checkers.td =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Checkers/Checkers.td +++ cfe/trunk/include/clang/StaticAnalyzer/Checkers/Checkers.td @@ -127,8 +127,13 @@ HelpText<"Check for undefined results of binary operators">, Documentation; +def StackAddrEscapeBase : Checker<"StackAddrEscapeBase">, + HelpText<"Generate information about stack address escapes.">, + Documentation; + def StackAddrEscapeChecker : Checker<"StackAddressEscape">, HelpText<"Check that addresses to stack memory do not escape the function">, + Dependencies<[StackAddrEscapeBase]>, Documentation; def DynamicTypePropagation : Checker<"DynamicTypePropagation">, @@ -186,6 +191,7 @@ HelpText<"Check for logical errors for function calls and Objective-C " "message expressions (e.g., uninitialized arguments, null function " "pointers, and pointer to undefined variables)">, + Dependencies<[CallAndMessageChecker]>, Documentation; def TestAfterDivZeroChecker : Checker<"TestAfterDivZero">, @@ -200,15 +206,25 @@ def StackAddrAsyncEscapeChecker : Checker<"StackAddressAsyncEscape">, HelpText<"Check that addresses to stack memory do not escape the function">, + Dependencies<[StackAddrEscapeBase]>, Documentation; } // end "alpha.core" +//===----------------------------------------------------------------------===// +// Nullability checkers. +//===----------------------------------------------------------------------===// + let ParentPackage = Nullability in { +def NullabilityBase : Checker<"NullabilityBase">, + HelpText<"Stores information during the analysis about nullability.">, + Documentation; + def NullPassedToNonnullChecker : Checker<"NullPassedToNonnull">, HelpText<"Warns when a null pointer is passed to a pointer which has a " "_Nonnull type.">, + Dependencies<[NullabilityBase]>, Documentation; def NullReturnedFromNonnullChecker : Checker<"NullReturnedFromNonnull">, @@ -218,20 +234,27 @@ def NullableDereferencedChecker : Checker<"NullableDereferenced">, HelpText<"Warns when a nullable pointer is dereferenced.">, + Dependencies<[NullabilityBase]>, Documentation; def NullablePassedToNonnullChecker : Checker<"NullablePassedToNonnull">, HelpText<"Warns when a nullable pointer is passed to a pointer which has a " "_Nonnull type.">, + Dependencies<[NullabilityBase]>, Documentation; def NullableReturnedFromNonnullChecker : Checker<"NullableReturnedFromNonnull">, HelpText<"Warns when a nullable pointer is returned from a function that has " "_Nonnull return type.">, + Dependencies<[NullabilityBase]>, Documentation; } // end "nullability" +//===----------------------------------------------------------------------===// +// APIModeling. +//===----------------------------------------------------------------------===// + let ParentPackage = APIModeling in { def StdCLibraryFunctionsChecker : Checker<"StdCLibraryFunctions">, @@ -291,6 +314,109 @@ } // end "core.uninitialized" //===----------------------------------------------------------------------===// +// Unix API checkers. +//===----------------------------------------------------------------------===// + +let ParentPackage = CString in { + +def CStringModeling : Checker<"CStringModeling">, + HelpText<"The base of several CString related checkers. On it's own it emits " + "no reports, but adds valuable information to the analysis when " + "enabled.">, + Documentation; + +def CStringNullArg : Checker<"NullArg">, + HelpText<"Check for null pointers being passed as arguments to C string " + "functions">, + Dependencies<[CStringModeling]>, + Documentation; + +def CStringSyntaxChecker : Checker<"BadSizeArg">, + HelpText<"Check the size argument passed into C string functions for common " + "erroneous patterns">, + Dependencies<[CStringModeling]>, + Documentation; + +} // end "unix.cstring" + +let ParentPackage = CStringAlpha in { + +def CStringOutOfBounds : Checker<"OutOfBounds">, + HelpText<"Check for out-of-bounds access in string functions">, + Dependencies<[CStringModeling]>, + Documentation; + +def CStringBufferOverlap : Checker<"BufferOverlap">, + HelpText<"Checks for overlap in two buffer arguments">, + Dependencies<[CStringModeling]>, + Documentation; + +def CStringNotNullTerm : Checker<"NotNullTerminated">, + HelpText<"Check for arguments which are not null-terminating strings">, + Dependencies<[CStringModeling]>, + Documentation; + +} // end "alpha.unix.cstring" + +let ParentPackage = Unix in { + +def UnixAPIMisuseChecker : Checker<"API">, + HelpText<"Check calls to various UNIX/Posix functions">, + Documentation; + +def DynamicMemoryModeling: Checker<"DynamicMemoryModeling">, + HelpText<"The base of several malloc() related checkers. On it's own it " + "emits no reports, but adds valuable information to the analysis " + "when enabled.">, + Dependencies<[CStringModeling]>, + Documentation; + +def MallocChecker: Checker<"Malloc">, + HelpText<"Check for memory leaks, double free, and use-after-free problems. " + "Traces memory managed by malloc()/free().">, + Dependencies<[DynamicMemoryModeling]>, + Documentation; + +def MallocSizeofChecker : Checker<"MallocSizeof">, + HelpText<"Check for dubious malloc arguments involving sizeof">, + Documentation; + +def MismatchedDeallocatorChecker : Checker<"MismatchedDeallocator">, + HelpText<"Check for mismatched deallocators.">, + Dependencies<[DynamicMemoryModeling]>, + Documentation; + +def VforkChecker : Checker<"Vfork">, + HelpText<"Check for proper usage of vfork">, + Documentation; + +} // end "unix" + +let ParentPackage = UnixAlpha in { + +def ChrootChecker : Checker<"Chroot">, + HelpText<"Check improper use of chroot">, + Documentation; + +def PthreadLockChecker : Checker<"PthreadLock">, + HelpText<"Simple lock -> unlock checker">, + Documentation; + +def StreamChecker : Checker<"Stream">, + HelpText<"Check stream handling functions">, + Documentation; + +def SimpleStreamChecker : Checker<"SimpleStream">, + HelpText<"Check for misuses of stream APIs">, + Documentation; + +def BlockInCriticalSectionChecker : Checker<"BlockInCriticalSection">, + HelpText<"Check for calls to blocking functions inside a critical section">, + Documentation; + +} // end "alpha.unix" + +//===----------------------------------------------------------------------===// // C++ checkers. //===----------------------------------------------------------------------===// @@ -299,15 +425,18 @@ def InnerPointerChecker : Checker<"InnerPointer">, HelpText<"Check for inner pointers of C++ containers used after " "re/deallocation">, + Dependencies<[DynamicMemoryModeling]>, Documentation; def NewDeleteChecker : Checker<"NewDelete">, HelpText<"Check for double-free and use-after-free problems. Traces memory " "managed by new/delete.">, + Dependencies<[DynamicMemoryModeling]>, Documentation; def NewDeleteLeaksChecker : Checker<"NewDeleteLeaks">, HelpText<"Check for memory leaks. Traces memory managed by new/delete.">, + Dependencies<[NewDeleteChecker]>, Documentation; def CXXSelfAssignmentChecker : Checker<"SelfAssignment">, @@ -339,17 +468,24 @@ HelpText<"Check integer to enumeration casts for out of range values">, Documentation; +def IteratorModeling : Checker<"IteratorModeling">, + HelpText<"Models iterators of C++ containers">, + Documentation; + def InvalidatedIteratorChecker : Checker<"InvalidatedIterator">, HelpText<"Check for use of invalidated iterators">, + Dependencies<[IteratorModeling]>, Documentation; def IteratorRangeChecker : Checker<"IteratorRange">, HelpText<"Check for iterators used outside their valid ranges">, + Dependencies<[IteratorModeling]>, Documentation; def MismatchedIteratorChecker : Checker<"MismatchedIterator">, HelpText<"Check for use of iterators of different containers where iterators " "of the same container are expected">, + Dependencies<[IteratorModeling]>, Documentation; def UninitializedObjectChecker: Checker<"UninitializedObject">, @@ -365,16 +501,22 @@ let ParentPackage = Valist in { +def ValistBase : Checker<"ValistBase">, + HelpText<"Gathers information about va_lists.">, + Documentation; + def UninitializedChecker : Checker<"Uninitialized">, HelpText<"Check for usages of uninitialized (or already released) va_lists.">, Documentation; def UnterminatedChecker : Checker<"Unterminated">, HelpText<"Check for va_lists which are not released by a va_end call.">, + Dependencies<[ValistBase]>, Documentation; def CopyToSelfChecker : Checker<"CopyToSelf">, HelpText<"Check for va_lists which are copied onto itself.">, + Dependencies<[ValistBase]>, Documentation; } // end : "valist" @@ -418,40 +560,65 @@ let ParentPackage = InsecureAPI in { +def SecuritySyntaxChecker : Checker<"SecuritySyntaxChecker">, + HelpText<"Base of various security function related checkers">, + Documentation; + def bcmp : Checker<"bcmp">, HelpText<"Warn on uses of the 'bcmp' function">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; + def bcopy : Checker<"bcopy">, HelpText<"Warn on uses of the 'bcopy' function">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; + def bzero : Checker<"bzero">, HelpText<"Warn on uses of the 'bzero' function">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; + def gets : Checker<"gets">, HelpText<"Warn on uses of the 'gets' function">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; + def getpw : Checker<"getpw">, HelpText<"Warn on uses of the 'getpw' function">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; + def mktemp : Checker<"mktemp">, HelpText<"Warn on uses of the 'mktemp' function">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; + def mkstemp : Checker<"mkstemp">, HelpText<"Warn when 'mkstemp' is passed fewer than 6 X's in the format " "string">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; + def rand : Checker<"rand">, HelpText<"Warn on uses of the 'rand', 'random', and related functions">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; + def strcpy : Checker<"strcpy">, HelpText<"Warn on uses of the 'strcpy' and 'strcat' functions">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; + def vfork : Checker<"vfork">, HelpText<"Warn on uses of the 'vfork' function">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; + def UncheckedReturn : Checker<"UncheckedReturn">, HelpText<"Warn on uses of functions whose return values must be always " "checked">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; } // end "security.insecureAPI" @@ -461,6 +628,7 @@ def FloatLoopCounter : Checker<"FloatLoopCounter">, HelpText<"Warn on using a floating point value as a loop counter (CERT: " "FLP30-C, FLP30-CPP)">, + Dependencies<[SecuritySyntaxChecker]>, Documentation; } // end "security" @@ -505,94 +673,23 @@ } // end "alpha.security.taint" //===----------------------------------------------------------------------===// -// Unix API checkers. +// Mac OS X, Cocoa, and Core Foundation checkers. //===----------------------------------------------------------------------===// -let ParentPackage = Unix in { - -def UnixAPIMisuseChecker : Checker<"API">, - HelpText<"Check calls to various UNIX/Posix functions">, - Documentation; - -def MallocChecker: Checker<"Malloc">, - HelpText<"Check for memory leaks, double free, and use-after-free problems. " - "Traces memory managed by malloc()/free().">, - Documentation; - -def MallocSizeofChecker : Checker<"MallocSizeof">, - HelpText<"Check for dubious malloc arguments involving sizeof">, - Documentation; - -def MismatchedDeallocatorChecker : Checker<"MismatchedDeallocator">, - HelpText<"Check for mismatched deallocators.">, - Documentation; - -def VforkChecker : Checker<"Vfork">, - HelpText<"Check for proper usage of vfork">, - Documentation; - -} // end "unix" - -let ParentPackage = UnixAlpha in { - -def ChrootChecker : Checker<"Chroot">, - HelpText<"Check improper use of chroot">, - Documentation; - -def PthreadLockChecker : Checker<"PthreadLock">, - HelpText<"Simple lock -> unlock checker">, - Documentation; - -def StreamChecker : Checker<"Stream">, - HelpText<"Check stream handling functions">, - Documentation; - -def SimpleStreamChecker : Checker<"SimpleStream">, - HelpText<"Check for misuses of stream APIs">, - Documentation; - -def BlockInCriticalSectionChecker : Checker<"BlockInCriticalSection">, - HelpText<"Check for calls to blocking functions inside a critical section">, - Documentation; - -} // end "alpha.unix" - -let ParentPackage = CString in { - -def CStringNullArg : Checker<"NullArg">, - HelpText<"Check for null pointers being passed as arguments to C string " - "functions">, - Documentation; - -def CStringSyntaxChecker : Checker<"BadSizeArg">, - HelpText<"Check the size argument passed into C string functions for common " - "erroneous patterns">, - Documentation; - -} // end "unix.cstring" - -let ParentPackage = CStringAlpha in { - -def CStringOutOfBounds : Checker<"OutOfBounds">, - HelpText<"Check for out-of-bounds access in string functions">, - Documentation; - -def CStringBufferOverlap : Checker<"BufferOverlap">, - HelpText<"Checks for overlap in two buffer arguments">, - Documentation; - -def CStringNotNullTerm : Checker<"NotNullTerminated">, - HelpText<"Check for arguments which are not null-terminating strings">, - Documentation; +let ParentPackage = Cocoa in { -} // end "alpha.unix.cstring" +def RetainCountBase : Checker<"RetainCountBase">, + HelpText<"Common base of various retain count related checkers">, + Documentation; -//===----------------------------------------------------------------------===// -// Mac OS X, Cocoa, and Core Foundation checkers. -//===----------------------------------------------------------------------===// +} // end "osx.cocoa" let ParentPackage = OSX in { +def NSOrCFErrorDerefChecker : Checker<"NSOrCFErrorDerefChecker">, + HelpText<"Implementation checker for NSErrorChecker and CFErrorChecker">, + Documentation; + def NumberObjectConversionChecker : Checker<"NumberObjectConversion">, HelpText<"Check for erroneous conversions of objects representing numbers " "into numbers">, @@ -611,7 +708,9 @@ Documentation; def OSObjectRetainCountChecker : Checker<"OSObjectRetainCount">, - HelpText<"Check for leaks and improper reference count management for OSObject">, + HelpText<"Check for leaks and improper reference count management for " + "OSObject">, + Dependencies<[RetainCountBase]>, Documentation; } // end "osx" @@ -675,14 +774,17 @@ def NSErrorChecker : Checker<"NSError">, HelpText<"Check usage of NSError** parameters">, + Dependencies<[NSOrCFErrorDerefChecker]>, Documentation; def RetainCountChecker : Checker<"RetainCount">, HelpText<"Check for leaks and improper reference count management">, + Dependencies<[RetainCountBase]>, Documentation; def ObjCGenericsChecker : Checker<"ObjCGenerics">, HelpText<"Check for type errors when using Objective-C generics">, + Dependencies<[DynamicTypePropagation]>, Documentation; def ObjCDeallocChecker : Checker<"Dealloc">, @@ -711,14 +813,22 @@ let ParentPackage = CocoaAlpha in { +def IvarInvalidationModeling : Checker<"IvarInvalidationModeling">, + HelpText<"Gathers information for annotation driven invalidation checking " + "for classes that contains a method annotated with " + "'objc_instance_variable_invalidator'">, + Documentation; + def InstanceVariableInvalidation : Checker<"InstanceVariableInvalidation">, HelpText<"Check that the invalidatable instance variables are invalidated in " "the methods annotated with objc_instance_variable_invalidator">, + Dependencies<[IvarInvalidationModeling]>, Documentation; def MissingInvalidationMethod : Checker<"MissingInvalidationMethod">, HelpText<"Check that the invalidation methods are present in classes that " "contain invalidatable instance variables">, + Dependencies<[IvarInvalidationModeling]>, Documentation; def DirectIvarAssignment : Checker<"DirectIvarAssignment">, @@ -729,6 +839,7 @@ Checker<"DirectIvarAssignmentForAnnotatedFunctions">, HelpText<"Check for direct assignments to instance variables in the methods " "annotated with objc_no_direct_instance_variable_assignment">, + Dependencies<[DirectIvarAssignment]>, Documentation; } // end "alpha.osx.cocoa" @@ -745,6 +856,7 @@ def CFErrorChecker : Checker<"CFError">, HelpText<"Check usage of CFErrorRef* parameters">, + Dependencies<[NSOrCFErrorDerefChecker]>, Documentation; } // end "osx.coreFoundation" Index: cfe/trunk/include/clang/StaticAnalyzer/Frontend/CheckerRegistry.h =================================================================== --- cfe/trunk/include/clang/StaticAnalyzer/Frontend/CheckerRegistry.h +++ cfe/trunk/include/clang/StaticAnalyzer/Frontend/CheckerRegistry.h @@ -92,6 +92,13 @@ using InitializationFunction = void (*)(CheckerManager &); using ShouldRegisterFunction = bool (*)(const LangOptions &); + struct CheckerInfo; + + using CheckerInfoList = std::vector; + using CheckerInfoListRange = llvm::iterator_range; + using ConstCheckerInfoList = llvm::SmallVector; + using CheckerInfoSet = llvm::SetVector; + struct CheckerInfo { enum class StateFromCmdLine { // This checker wasn't explicitly enabled or disabled. @@ -109,10 +116,16 @@ StringRef DocumentationUri; StateFromCmdLine State = StateFromCmdLine::State_Unspecified; + ConstCheckerInfoList Dependencies; + bool isEnabled(const LangOptions &LO) const { return State == StateFromCmdLine::State_Enabled && ShouldRegister(LO); } + bool isDisabled(const LangOptions &LO) const { + return State == StateFromCmdLine::State_Disabled && ShouldRegister(LO); + } + CheckerInfo(InitializationFunction Fn, ShouldRegisterFunction sfn, StringRef Name, StringRef Desc, StringRef DocsUri) : Initialize(Fn), ShouldRegister(sfn), FullName(Name), Desc(Desc), @@ -120,9 +133,6 @@ }; using StateFromCmdLine = CheckerInfo::StateFromCmdLine; - using CheckerInfoList = std::vector; - using CheckerInfoListRange = llvm::iterator_range; - using CheckerInfoSet = llvm::SetVector; private: template @@ -152,6 +162,28 @@ &CheckerRegistry::returnTrue, FullName, Desc, DocsUri); } + /// Makes the checker with the full name \p fullName depends on the checker + /// called \p dependency. + void addDependency(StringRef fullName, StringRef dependency) { + auto CheckerThatNeedsDeps = + [&fullName](const CheckerInfo &Chk) { return Chk.FullName == fullName; }; + auto Dependency = + [&dependency](const CheckerInfo &Chk) { + return Chk.FullName == dependency; + }; + + auto CheckerIt = llvm::find_if(Checkers, CheckerThatNeedsDeps); + assert(CheckerIt != Checkers.end() && + "Failed to find the checker while attempting to set up it's " + "dependencies!"); + + auto DependencyIt = llvm::find_if(Checkers, Dependency); + assert(DependencyIt != Checkers.end() && + "Failed to find the dependency of a checker!"); + + CheckerIt->Dependencies.push_back(&*DependencyIt); + } + // FIXME: This *really* should be added to the frontend flag descriptions. /// Initializes a CheckerManager by calling the initialization functions for /// all checkers specified by the given CheckerOptInfo list. The order of this @@ -168,6 +200,9 @@ void printList(raw_ostream &out) const; private: + /// Collect all enabled checkers. The returned container preserves the order + /// of insertion, as dependencies have to be enabled before the checkers that + /// depend on them. CheckerInfoSet getEnabledCheckers() const; /// Return an iterator range of mutable CheckerInfos \p CmdLineArg applies to. Index: cfe/trunk/lib/StaticAnalyzer/Checkers/CStringChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/CStringChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/CStringChecker.cpp @@ -2475,6 +2475,14 @@ C.addTransition(state); } +void ento::registerCStringModeling(CheckerManager &Mgr) { + Mgr.registerChecker(); +} + +bool ento::shouldRegisterCStringModeling(const LangOptions &LO) { + return true; +} + #define REGISTER_CHECKER(name) \ void ento::register##name(CheckerManager &mgr) { \ CStringChecker *checker = mgr.registerChecker(); \ @@ -2490,7 +2498,3 @@ REGISTER_CHECKER(CStringOutOfBounds) REGISTER_CHECKER(CStringBufferOverlap) REGISTER_CHECKER(CStringNotNullTerm) - - void ento::registerCStringCheckerBasic(CheckerManager &Mgr) { - Mgr.registerChecker(); - } Index: cfe/trunk/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp @@ -28,14 +28,6 @@ namespace { -struct ChecksFilter { - DefaultBool Check_CallAndMessageUnInitRefArg; - DefaultBool Check_CallAndMessageChecker; - - CheckName CheckName_CallAndMessageUnInitRefArg; - CheckName CheckName_CallAndMessageChecker; -}; - class CallAndMessageChecker : public Checker< check::PreStmt, check::PreStmt, @@ -56,7 +48,8 @@ mutable std::unique_ptr BT_call_few_args; public: - ChecksFilter Filter; + DefaultBool Check_CallAndMessageUnInitRefArg; + CheckName CheckName_CallAndMessageUnInitRefArg; void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; void checkPreStmt(const CXXDeleteExpr *DE, CheckerContext &C) const; @@ -151,7 +144,7 @@ CheckerContext &C, const SVal &V, SourceRange ArgRange, const Expr *ArgEx, std::unique_ptr &BT, const ParmVarDecl *ParamDecl, const char *BD, int ArgumentNumber) const { - if (!Filter.Check_CallAndMessageUnInitRefArg) + if (!Check_CallAndMessageUnInitRefArg) return false; // No parameter declaration available, i.e. variadic function argument. @@ -607,17 +600,21 @@ C.addTransition(state); } -#define REGISTER_CHECKER(name) \ - void ento::register##name(CheckerManager &mgr) { \ - CallAndMessageChecker *Checker = \ - mgr.registerChecker(); \ - Checker->Filter.Check_##name = true; \ - Checker->Filter.CheckName_##name = mgr.getCurrentCheckName(); \ - } \ - \ - bool ento::shouldRegister##name(const LangOptions &LO) { \ - return true; \ - } +void ento::registerCallAndMessageChecker(CheckerManager &mgr) { + mgr.registerChecker(); +} + +bool ento::shouldRegisterCallAndMessageChecker(const LangOptions &LO) { + return true; +} -REGISTER_CHECKER(CallAndMessageUnInitRefArg) -REGISTER_CHECKER(CallAndMessageChecker) +void ento::registerCallAndMessageUnInitRefArg(CheckerManager &mgr) { + CallAndMessageChecker *Checker = + mgr.registerChecker(); + Checker->Check_CallAndMessageUnInitRefArg = true; + Checker->CheckName_CallAndMessageUnInitRefArg = mgr.getCurrentCheckName(); +} + +bool ento::shouldRegisterCallAndMessageUnInitRefArg(const LangOptions &LO) { + return true; +} Index: cfe/trunk/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/CheckSecuritySyntaxOnly.cpp @@ -905,6 +905,14 @@ }; } +void ento::registerSecuritySyntaxChecker(CheckerManager &mgr) { + mgr.registerChecker(); +} + +bool ento::shouldRegisterSecuritySyntaxChecker(const LangOptions &LO) { + return true; +} + #define REGISTER_CHECKER(name) \ void ento::register##name(CheckerManager &mgr) { \ SecuritySyntaxChecker *checker = \ Index: cfe/trunk/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h +++ cfe/trunk/lib/StaticAnalyzer/Checkers/InterCheckerAPI.h @@ -16,9 +16,6 @@ namespace ento { -/// Register the checker which evaluates CString API calls. -void registerCStringCheckerBasic(CheckerManager &Mgr); - /// Register the part of MallocChecker connected to InnerPointerChecker. void registerInnerPointerCheckerAux(CheckerManager &Mgr); Index: cfe/trunk/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/IteratorChecker.cpp @@ -2393,6 +2393,14 @@ } // namespace +void ento::registerIteratorModeling(CheckerManager &mgr) { + mgr.registerChecker(); +} + +bool ento::shouldRegisterIteratorModeling(const LangOptions &LO) { + return true; +} + #define REGISTER_CHECKER(name) \ void ento::register##name(CheckerManager &Mgr) { \ auto *checker = Mgr.registerChecker(); \ Index: cfe/trunk/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/IvarInvalidationChecker.cpp @@ -735,6 +735,14 @@ }; } // end anonymous namespace +void ento::registerIvarInvalidationModeling(CheckerManager &mgr) { + mgr.registerChecker(); +} + +bool ento::shouldRegisterIvarInvalidationModeling(const LangOptions &LO) { + return true; +} + #define REGISTER_CHECKER(name) \ void ento::register##name(CheckerManager &mgr) { \ IvarInvalidationChecker *checker = \ Index: cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/MallocChecker.cpp @@ -3086,44 +3086,27 @@ } // end namespace ento } // end namespace clang -void ento::registerNewDeleteLeaksChecker(CheckerManager &mgr) { - registerCStringCheckerBasic(mgr); - MallocChecker *checker = mgr.registerChecker(); - checker->IsOptimistic = mgr.getAnalyzerOptions().getCheckerBooleanOption( - "Optimistic", false, checker); - checker->ChecksEnabled[MallocChecker::CK_NewDeleteLeaksChecker] = true; - checker->CheckNames[MallocChecker::CK_NewDeleteLeaksChecker] = - mgr.getCurrentCheckName(); - // We currently treat NewDeleteLeaks checker as a subchecker of NewDelete - // checker. - if (!checker->ChecksEnabled[MallocChecker::CK_NewDeleteChecker]) { - checker->ChecksEnabled[MallocChecker::CK_NewDeleteChecker] = true; - // FIXME: This does not set the correct name, but without this workaround - // no name will be set at all. - checker->CheckNames[MallocChecker::CK_NewDeleteChecker] = - mgr.getCurrentCheckName(); - } -} - -bool ento::shouldRegisterNewDeleteLeaksChecker(const LangOptions &LO) { - return true; -} - // Intended to be used in InnerPointerChecker to register the part of // MallocChecker connected to it. void ento::registerInnerPointerCheckerAux(CheckerManager &mgr) { - registerCStringCheckerBasic(mgr); MallocChecker *checker = mgr.registerChecker(); checker->IsOptimistic = mgr.getAnalyzerOptions().getCheckerBooleanOption( - "Optimistic", false, checker); + "Optimistic", false, checker); checker->ChecksEnabled[MallocChecker::CK_InnerPointerChecker] = true; checker->CheckNames[MallocChecker::CK_InnerPointerChecker] = mgr.getCurrentCheckName(); } +void ento::registerDynamicMemoryModeling(CheckerManager &mgr) { + mgr.registerChecker(); +} + +bool ento::shouldRegisterDynamicMemoryModeling(const LangOptions &LO) { + return true; +} + #define REGISTER_CHECKER(name) \ void ento::register##name(CheckerManager &mgr) { \ - registerCStringCheckerBasic(mgr); \ MallocChecker *checker = mgr.registerChecker(); \ checker->IsOptimistic = mgr.getAnalyzerOptions().getCheckerBooleanOption( \ "Optimistic", false, checker); \ @@ -3137,4 +3120,5 @@ REGISTER_CHECKER(MallocChecker) REGISTER_CHECKER(NewDeleteChecker) +REGISTER_CHECKER(NewDeleteLeaksChecker) REGISTER_CHECKER(MismatchedDeallocatorChecker) Index: cfe/trunk/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp @@ -307,6 +307,14 @@ return TT->getDecl()->getIdentifier() == II; } +void ento::registerNSOrCFErrorDerefChecker(CheckerManager &mgr) { + mgr.registerChecker(); +} + +bool ento::shouldRegisterNSOrCFErrorDerefChecker(const LangOptions &LO) { + return true; +} + void ento::registerNSErrorChecker(CheckerManager &mgr) { mgr.registerChecker(); NSOrCFErrorDerefChecker *checker = Index: cfe/trunk/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp @@ -1191,6 +1191,14 @@ } } +void ento::registerNullabilityBase(CheckerManager &mgr) { + mgr.registerChecker(); +} + +bool ento::shouldRegisterNullabilityBase(const LangOptions &LO) { + return true; +} + #define REGISTER_CHECKER(name, trackingRequired) \ void ento::register##name##Checker(CheckerManager &mgr) { \ NullabilityChecker *checker = mgr.registerChecker(); \ Index: cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp @@ -1455,6 +1455,14 @@ // Checker registration. //===----------------------------------------------------------------------===// +void ento::registerRetainCountBase(CheckerManager &Mgr) { + Mgr.registerChecker(); +} + +bool ento::shouldRegisterRetainCountBase(const LangOptions &LO) { + return true; +} + void ento::registerRetainCountChecker(CheckerManager &Mgr) { auto *Chk = Mgr.registerChecker(); Chk->TrackObjCAndCFObjects = true; Index: cfe/trunk/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp @@ -359,6 +359,14 @@ } } +void ento::registerStackAddrEscapeBase(CheckerManager &mgr) { + mgr.registerChecker(); +} + +bool ento::shouldRegisterStackAddrEscapeBase(const LangOptions &LO) { + return true; +} + #define REGISTER_CHECKER(name) \ void ento::register##name(CheckerManager &Mgr) { \ StackAddrEscapeChecker *Chk = \ Index: cfe/trunk/lib/StaticAnalyzer/Checkers/ValistChecker.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Checkers/ValistChecker.cpp +++ cfe/trunk/lib/StaticAnalyzer/Checkers/ValistChecker.cpp @@ -399,6 +399,14 @@ return std::make_shared(Pos, Msg, true); } +void ento::registerValistBase(CheckerManager &mgr) { + mgr.registerChecker(); +} + +bool ento::shouldRegisterValistBase(const LangOptions &LO) { + return true; +} + #define REGISTER_CHECKER(name) \ void ento::register##name##Checker(CheckerManager &mgr) { \ ValistChecker *checker = mgr.registerChecker(); \ Index: cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp =================================================================== --- cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp +++ cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp @@ -151,6 +151,15 @@ // that's ASCIIbetically last? llvm::sort(Checkers, checkerNameLT); +#define GET_CHECKER_DEPENDENCIES + +#define CHECKER_DEPENDENCY(FULLNAME, DEPENDENCY) \ + addDependency(FULLNAME, DEPENDENCY); + +#include "clang/StaticAnalyzer/Checkers/Checkers.inc" +#undef CHECKER_DEPENDENCY +#undef GET_CHECKER_DEPENDENCIES + // Parse '-analyzer-checker' and '-analyzer-disable-checker' options from the // command line. for (const std::pair &opt : AnOpts.CheckersControlList) { @@ -169,13 +178,69 @@ } } +/// Collects dependencies in \p ret, returns false on failure. +static bool collectDependenciesImpl( + const CheckerRegistry::ConstCheckerInfoList &deps, + const LangOptions &LO, + CheckerRegistry::CheckerInfoSet &ret); + +/// Collects dependenies in \p enabledCheckers. Return None on failure. +LLVM_NODISCARD +static llvm::Optional collectDependencies( + const CheckerRegistry::CheckerInfo &checker, const LangOptions &LO) { + + CheckerRegistry::CheckerInfoSet ret; + // Add dependencies to the enabled checkers only if all of them can be + // enabled. + if (!collectDependenciesImpl(checker.Dependencies, LO, ret)) + return None; + + return ret; +} + +static bool collectDependenciesImpl( + const CheckerRegistry::ConstCheckerInfoList &deps, + const LangOptions &LO, + CheckerRegistry::CheckerInfoSet &ret) { + + for (const CheckerRegistry::CheckerInfo *dependency : deps) { + + if (dependency->isDisabled(LO)) + return false; + + // Collect dependencies recursively. + if (!collectDependenciesImpl(dependency->Dependencies, LO, ret)) + return false; + + ret.insert(dependency); + } + + return true; +} + CheckerRegistry::CheckerInfoSet CheckerRegistry::getEnabledCheckers() const { CheckerInfoSet enabledCheckers; for (const CheckerInfo &checker : Checkers) { - if (checker.isEnabled(LangOpts)) - enabledCheckers.insert(&checker); + if (!checker.isEnabled(LangOpts)) + continue; + + // Recursively enable it's dependencies. + llvm::Optional deps = + collectDependencies(checker, LangOpts); + + if (!deps) { + // If we failed to enable any of the dependencies, don't enable this + // checker. + continue; + } + + // Note that set_union also preserves the order of insertion. + enabledCheckers.set_union(*deps); + + // Enable the checker. + enabledCheckers.insert(&checker); } return enabledCheckers; @@ -196,7 +261,6 @@ } void CheckerRegistry::initializeManager(CheckerManager &checkerMgr) const { - // Collect checkers enabled by the options. CheckerInfoSet enabledCheckers = getEnabledCheckers(); Index: cfe/trunk/test/Analysis/Inputs/expected-plists/edges-new.mm.plist =================================================================== --- cfe/trunk/test/Analysis/Inputs/expected-plists/edges-new.mm.plist +++ cfe/trunk/test/Analysis/Inputs/expected-plists/edges-new.mm.plist @@ -3,7 +3,6 @@ clang_version -clang version 8.0.0 diagnostics @@ -2120,9 +2119,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context29a10ca4af622b6146ca082e49d919d6 + issue_hash_content_of_line_in_contextb2b15a95787e594ff79f02c600e9d357 issue_context_kindfunction issue_contextrdar8331641 issue_hash_function_offset2 @@ -11219,9 +11218,9 @@ descriptionPotential leak of an object stored into 'foo' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextf533db5cbb9c20d171f9f92105789dc4 + issue_hash_content_of_line_in_contextef342aeb2f2719117ddd4ef1b72f5ba7 issue_context_kindObjective-C method issue_contexttest2 issue_hash_function_offset2 @@ -21065,9 +21064,9 @@ descriptionPotential leak of an object stored into 'foo' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context5616a7601faa1a8c2ac56fa1b595b172 + issue_hash_content_of_line_in_contextf81f51dd154d0a11cab412a1cd1cd095 issue_context_kindfunction issue_contextlongLines issue_hash_function_offset1 @@ -21446,7 +21445,6 @@ files - /clang/test/Analysis/edges-new.mm Index: cfe/trunk/test/Analysis/Inputs/expected-plists/nullability-notes.m.plist =================================================================== --- cfe/trunk/test/Analysis/Inputs/expected-plists/nullability-notes.m.plist +++ cfe/trunk/test/Analysis/Inputs/expected-plists/nullability-notes.m.plist @@ -173,9 +173,9 @@ descriptionNullable pointer is passed to a callee that requires a non-null 1st parameter categoryMemory error typeNullability - check_namenullability.NullPassedToNonnull + check_namenullability.NullabilityBase - issue_hash_content_of_line_in_contextb6bc8126de8e6eb3375483a656fe858d + issue_hash_content_of_line_in_contextff735bea0eb12d4d172b139143c32365 issue_context_kindObjective-C method issue_contextmethod issue_hash_function_offset3 Index: cfe/trunk/test/Analysis/Inputs/expected-plists/objc-arc.m.plist =================================================================== --- cfe/trunk/test/Analysis/Inputs/expected-plists/objc-arc.m.plist +++ cfe/trunk/test/Analysis/Inputs/expected-plists/objc-arc.m.plist @@ -3,7 +3,6 @@ clang_version -clang version 8.0.0 diagnostics @@ -313,9 +312,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context61d185b2522d15fb327f6784e0217adf + issue_hash_content_of_line_in_context7bd4a6e187407677b2d9e717576818bf issue_context_kindfunction issue_contexttest_cf_leak issue_hash_function_offset2 @@ -844,9 +843,9 @@ descriptionPotential leak of an object stored into 'obj5' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context5baa7d5f38420d0a035aa61607675f3e + issue_hash_content_of_line_in_context0aed4f65cb3dba7331f9319fd1ceb003 issue_context_kindfunction issue_contextfrom_cf issue_hash_function_offset7 @@ -990,9 +989,9 @@ descriptionPotential leak of an object stored into 'obj6' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context4665e04694fd55e7c4ed7a67860b3b74 + issue_hash_content_of_line_in_context0851961d40a4c8331ebe713f4a3e05f4 issue_context_kindfunction issue_contextfrom_cf issue_hash_function_offset8 @@ -1424,9 +1423,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context798e65f80df0526369f9bb240e3d91fd + issue_hash_content_of_line_in_context00045bff3b7c26fe7cb80a71f512575c issue_context_kindfunction issue_contexttest_objc_unretainedObject issue_hash_function_offset2 @@ -1735,9 +1734,9 @@ descriptionPotential leak of an object of type 'CFStringRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexte1fbcc142b678b3c2c43737ee35b64d9 + issue_hash_content_of_line_in_context9f258122568ea8763047e98db8a52647 issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset24 @@ -1929,9 +1928,9 @@ descriptionPotential leak of an object stored into 'o' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexte300a279615a384d2b310329651d3978 + issue_hash_content_of_line_in_context8187b0ba5cadd42594120fe05d871502 issue_context_kindfunction issue_contextrdar11059275_positive issue_hash_function_offset1 @@ -2083,7 +2082,6 @@ files - /clang/test/Analysis/objc-arc.m Index: cfe/trunk/test/Analysis/Inputs/expected-plists/objc-radar17039661.m.plist =================================================================== --- cfe/trunk/test/Analysis/Inputs/expected-plists/objc-radar17039661.m.plist +++ cfe/trunk/test/Analysis/Inputs/expected-plists/objc-radar17039661.m.plist @@ -3,7 +3,6 @@ clang_version -clang version 8.0.0 diagnostics @@ -1268,9 +1267,9 @@ descriptionPotential leak of an object of type 'NSNumber *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context500e2bbda41c8086771ad98b6bcfdc50 + issue_hash_content_of_line_in_contextc204ce6cce660a7714c801bdf9183431 location line53 @@ -1303,7 +1302,6 @@ files - /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/objc-radar17039661.m Index: cfe/trunk/test/Analysis/Inputs/expected-plists/plist-output-alternate.m.plist =================================================================== --- cfe/trunk/test/Analysis/Inputs/expected-plists/plist-output-alternate.m.plist +++ cfe/trunk/test/Analysis/Inputs/expected-plists/plist-output-alternate.m.plist @@ -3,7 +3,6 @@ clang_version -clang version 8.0.0 diagnostics @@ -1486,9 +1485,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context29a10ca4af622b6146ca082e49d919d6 + issue_hash_content_of_line_in_contextb2b15a95787e594ff79f02c600e9d357 issue_context_kindfunction issue_contextrdar8331641 issue_hash_function_offset2 @@ -1514,7 +1513,6 @@ files - /clang/test/Analysis/plist-output-alternate.m Index: cfe/trunk/test/Analysis/Inputs/expected-plists/plist-output.m.plist =================================================================== --- cfe/trunk/test/Analysis/Inputs/expected-plists/plist-output.m.plist +++ cfe/trunk/test/Analysis/Inputs/expected-plists/plist-output.m.plist @@ -3,7 +3,6 @@ clang_version -clang version 8.0.0 diagnostics @@ -2373,9 +2372,9 @@ descriptionPotential leak of an object stored into 'foo' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextf533db5cbb9c20d171f9f92105789dc4 + issue_hash_content_of_line_in_contextef342aeb2f2719117ddd4ef1b72f5ba7 issue_context_kindObjective-C method issue_contexttest2 issue_hash_function_offset2 @@ -6214,7 +6213,6 @@ files - /clang/test/Analysis/plist-output.m Index: cfe/trunk/test/Analysis/Inputs/expected-plists/retain-release-path-notes.m.plist =================================================================== --- cfe/trunk/test/Analysis/Inputs/expected-plists/retain-release-path-notes.m.plist +++ cfe/trunk/test/Analysis/Inputs/expected-plists/retain-release-path-notes.m.plist @@ -3,7 +3,6 @@ clang_version -clang version 8.0.0 diagnostics @@ -105,9 +104,9 @@ descriptionPotential leak of an object stored into 'leaked' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextd21e9660cc6434ef84a51f39ffcdce86 + issue_hash_content_of_line_in_contextfc2476fe550128eebe2a0a8fa4299a59 issue_context_kindfunction issue_contextcreationViaAlloc issue_hash_function_offset1 @@ -226,9 +225,9 @@ descriptionPotential leak of an object stored into 'leaked' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextf8ec2601a04113e567aa1d09c9902c91 + issue_hash_content_of_line_in_context31ad4a19f94c8994ebf7e887ed4ab840 issue_context_kindfunction issue_contextcreationViaCFCreate issue_hash_function_offset1 @@ -572,9 +571,9 @@ descriptionPotential leak of an object stored into 'leaked' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextdd26a8ad9a7a057feaa636974b43ccb0 + issue_hash_content_of_line_in_context1b654ea7bbef1493beda9e0a667dd859 issue_context_kindfunction issue_contextacquisitionViaMethod issue_hash_function_offset1 @@ -771,9 +770,9 @@ descriptionPotential leak of an object stored into 'leaked' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context2f2de5d7fe728958585598b619069e5a + issue_hash_content_of_line_in_context3fc42b0b859923347e789ad601d29b2a issue_context_kindfunction issue_contextacquisitionViaProperty issue_hash_function_offset1 @@ -968,9 +967,9 @@ descriptionPotential leak of an object stored into 'leaked' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1c02b65e83dad1b22270ff5a71de3118 + issue_hash_content_of_line_in_context0b4d42c9cc01d55bc281c067f1cc1c3d issue_context_kindfunction issue_contextacquisitionViaCFFunction issue_hash_function_offset1 @@ -1165,9 +1164,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context03c23f0f82d7f2fd880a22e0d9cf14b9 + issue_hash_content_of_line_in_contextbaa3d5ecb7824a6997e0734ad148ec55 issue_context_kindfunction issue_contextexplicitDealloc issue_hash_function_offset3 @@ -1362,9 +1361,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6f1b3f0c6c7f79f1af9b313273a01e92 + issue_hash_content_of_line_in_contextce73a05e0a1055b4b451f5015edbd6ec issue_context_kindfunction issue_contextimplicitDealloc issue_hash_function_offset3 @@ -1634,9 +1633,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextcb5e4205a8f925230a70715914a2e3d2 + issue_hash_content_of_line_in_contextb8cbd4dae812cd8d8faaf3b48dad2021 issue_context_kindfunction issue_contextoverAutorelease issue_hash_function_offset4 @@ -1832,9 +1831,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1edd178e5ad76c79ce9812f519e8f467 + issue_hash_content_of_line_in_contextee96f7e22e32b24d677efa45b2395915 issue_context_kindfunction issue_contextautoreleaseUnowned issue_hash_function_offset3 @@ -1954,9 +1953,9 @@ descriptionPotential leak of an object stored into 'leaked' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context3f08690fae9687c29bb23b7a7cb7995b + issue_hash_content_of_line_in_context12887d3520c4c9fd03995feeb69967ec issue_context_kindfunction issue_contextmakeCollectableIgnored issue_hash_function_offset1 @@ -2077,9 +2076,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context4b621ab5f8f2ef9240699119f4d874cb + issue_hash_content_of_line_in_contextd715154641c7b248d401df12c1ce0808 issue_context_kindfunction issue_contextCFCopyRuleViolation issue_hash_function_offset2 @@ -2198,9 +2197,9 @@ descriptionPotential leak of an object stored into 'object' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context5248d2310322982d02e5f3d564249b4f + issue_hash_content_of_line_in_context58d56f1d5982f5923ab07900852ea30c issue_context_kindfunction issue_contextCFGetRuleViolation issue_hash_function_offset1 @@ -2319,9 +2318,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context4f23ad2725fb68134cec8b8354cd295c + issue_hash_content_of_line_in_contextcc20c23c14b2363ca453c24ede3bc38d issue_context_kindObjective-C method issue_contextcopyViolation issue_hash_function_offset2 @@ -2440,9 +2439,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextda1dab126ed46b144040160ae8628460 + issue_hash_content_of_line_in_context4eefa164042de89f947573c1df2fce03 issue_context_kindObjective-C method issue_contextcopyViolationIndexedSubscript issue_hash_function_offset2 @@ -2561,9 +2560,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context52877f9471b1ecdaf213b39016b84e52 + issue_hash_content_of_line_in_contexte8ad4d8a073872a91d2b0225319cd521 issue_context_kindObjective-C method issue_contextcopyViolationKeyedSubscript issue_hash_function_offset2 @@ -2682,9 +2681,9 @@ descriptionPotential leak of an object stored into 'result' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextcf8c65a18ad9982cb9848a266cd9c61b + issue_hash_content_of_line_in_contextf858bd7c1720b43bd464bbec97a1cb6b issue_context_kindObjective-C method issue_contextgetViolation issue_hash_function_offset1 @@ -2878,9 +2877,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexte7b798151545b45a994592df0d27d250 + issue_hash_content_of_line_in_context4da16a9c4c9d9587418f276359c5f098 issue_context_kindObjective-C method issue_contextcopyAutorelease issue_hash_function_offset3 @@ -3000,9 +2999,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context4e0c810e2b301aca3f636ad7e3d6b0b8 + issue_hash_content_of_line_in_context18ba6f4fe59b182bee196c1a976e3aa2 issue_context_kindfunction issue_contexttestNumericLiteral issue_hash_function_offset2 @@ -3121,9 +3120,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1d054002016aa4360aaf23a4c4d8fbb7 + issue_hash_content_of_line_in_contextac4375d1ab6887c27055ee00b20a212e issue_context_kindfunction issue_contexttestBoxedInt issue_hash_function_offset2 @@ -3242,9 +3241,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context67ca92144b05322ee4569aea88d08595 + issue_hash_content_of_line_in_contextcd2f260edad8ce1826b21acc49cba277 issue_context_kindfunction issue_contexttestBoxedString issue_hash_function_offset2 @@ -3363,9 +3362,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context32fcec71872b8f62d8d7b1b05284b0fe + issue_hash_content_of_line_in_contexte60765ef00b3af982aacd5471a2cdb21 issue_context_kindfunction issue_contexttestArray issue_hash_function_offset2 @@ -3484,9 +3483,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextd9584825bb1e62066879949e3ade8570 + issue_hash_content_of_line_in_context42da4f0388822b235ed56427f2e1ac1b issue_context_kindfunction issue_contexttestDictionary issue_hash_function_offset2 @@ -3842,9 +3841,9 @@ descriptionPotential leak of an object of type 'MyObj *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexteef2aef4b58abf21fcfa4bbf69e19c02 + issue_hash_content_of_line_in_contextb5589615cea2321192e477d2011edf09 issue_context_kindObjective-C method issue_contexttest issue_hash_function_offset2 @@ -4241,9 +4240,9 @@ descriptionPotential leak of an object stored into 'y' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context8c27524f691296551f9e52856b824326 + issue_hash_content_of_line_in_contextb319657460942b0e8deafb79876d5479 issue_context_kindObjective-C method issue_contexttest issue_hash_function_offset8 @@ -4519,9 +4518,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context4fc36e73ba317d307dc9cc4b3d62fd0a + issue_hash_content_of_line_in_context8e06af66dd0b414c095c951ac1f2cc68 issue_context_kindfunction issue_contextCFOverAutorelease issue_hash_function_offset4 @@ -4717,9 +4716,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context08e6a3931d34cda45c09dfda76976e17 + issue_hash_content_of_line_in_context06eeb988e43f885cb575eba46e7ccf8f issue_context_kindfunction issue_contextCFAutoreleaseUnowned issue_hash_function_offset3 @@ -4989,9 +4988,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextd9bb23a5435fe15df9d7ffdc27a8a072 + issue_hash_content_of_line_in_contexte1b335bbbaad2a9c427e681a6fac6562 issue_context_kindfunction issue_contextCFAutoreleaseUnownedMixed issue_hash_function_offset4 @@ -5016,7 +5015,6 @@ files - /test/Analysis/retain-release-path-notes.m Index: cfe/trunk/test/Analysis/Inputs/expected-plists/retain-release.m.objc.plist =================================================================== --- cfe/trunk/test/Analysis/Inputs/expected-plists/retain-release.m.objc.plist +++ cfe/trunk/test/Analysis/Inputs/expected-plists/retain-release.m.objc.plist @@ -3,7 +3,6 @@ clang_version -clang version 8.0.0 diagnostics @@ -398,9 +397,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context5928b2a4699cbae0686391c20e639007 + issue_hash_content_of_line_in_context1089a297e77ff0c9d2d55cfb3aae26d3 issue_context_kindfunction issue_contextf1 issue_hash_function_offset7 @@ -817,9 +816,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6b2e175938153ac041f52ebbf50b1f43 + issue_hash_content_of_line_in_contextbb12c99d56657635b20d4a0801590eed issue_context_kindfunction issue_contextf2 issue_hash_function_offset7 @@ -1108,9 +1107,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context3fdbd844ddb925306ba2bb1b3626f310 + issue_hash_content_of_line_in_context0e9bb151f425535a0ec1b0bf0574dd7d issue_context_kindfunction issue_contextf5 issue_hash_function_offset2 @@ -1306,9 +1305,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context8529da75e357c59fb0a7fefb0b6e0952 + issue_hash_content_of_line_in_contextad4b758c93bbe7feeee349a526293527 issue_context_kindfunction issue_contextf6 issue_hash_function_offset1 @@ -1503,9 +1502,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexteb0faa12081b1e28b218e4c6e53d57ec + issue_hash_content_of_line_in_context2a319c210c1c5b4274e3f28931ead03b issue_context_kindfunction issue_contextf7 issue_hash_function_offset1 @@ -1660,9 +1659,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context404d4de8faa444bc52fd510380bd0a63 + issue_hash_content_of_line_in_context2c347e0a0af508867a6d854a3fc8f690 issue_context_kindfunction issue_contextf7 issue_hash_function_offset3 @@ -1858,9 +1857,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context251dff6727b3d99ec95caa28672669ea + issue_hash_content_of_line_in_context0be746eb38e868156f7f57ea95735f4e issue_context_kindfunction issue_contextf8 issue_hash_function_offset1 @@ -2563,9 +2562,9 @@ descriptionPotential leak of an object stored into 'disk' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context69ae08a90fe52a921ed423df38ed7480 + issue_hash_content_of_line_in_context3e83186b5b944ef7a3ec026d469d5ad7 issue_context_kindfunction issue_contextf10 issue_hash_function_offset1 @@ -3046,9 +3045,9 @@ descriptionPotential leak of an object stored into 'dict' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta7f8c63b1cdc39df79b7457e27ff4930 + issue_hash_content_of_line_in_contextffc6479dc21fc10cdb83b4392685ed36 issue_context_kindfunction issue_contextf10 issue_hash_function_offset7 @@ -3661,9 +3660,9 @@ descriptionPotential leak of an object stored into 'disk' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextcace8e35bed93ecdfa0455ac166aaa97 + issue_hash_content_of_line_in_context1c06fc99a1d078653ae8e4fe308e09cd issue_context_kindfunction issue_contextf10 issue_hash_function_offset10 @@ -4346,9 +4345,9 @@ descriptionPotential leak of an object stored into 'disk' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context778f70549a15e78703b4dcb3a287df33 + issue_hash_content_of_line_in_context460f099c6ae21a4b3ae818c9f65df2b0 issue_context_kindfunction issue_contextf10 issue_hash_function_offset4 @@ -5163,9 +5162,9 @@ descriptionPotential leak of an object stored into 'dissenter' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6c188b4716e84cdc55b93d40e6c2daf3 + issue_hash_content_of_line_in_context65004e269b1b5cb5d9b5c6f7a02926e3 issue_context_kindfunction issue_contextf10 issue_hash_function_offset13 @@ -6045,9 +6044,9 @@ descriptionPotential leak of an object stored into 'session' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context35b9ac7ff198890c88d5839a898b7fea + issue_hash_content_of_line_in_contexte9c1be038ef498b7985f5b1ddcb5444f issue_context_kindfunction issue_contextf10 issue_hash_function_offset17 @@ -6162,9 +6161,9 @@ descriptionPotential leak of an object stored into 'f' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context17d84d673b35235b52d8f8f00c1d1eea + issue_hash_content_of_line_in_context9c7c3b2bf298c7d046fd6fc7f6fe688e issue_context_kindfunction issue_contexttestLeakCoreMediaReferenceType issue_hash_function_offset1 @@ -6283,9 +6282,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1702285448a953b02ab74a8eb9a610d9 + issue_hash_content_of_line_in_context69932084739a429d667d8de6de42af0b issue_context_kindfunction issue_contexttestOverReleaseMediaReferenceType issue_hash_function_offset2 @@ -6675,9 +6674,9 @@ descriptionPotential leak of an object stored into 'buffer' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context402566b4ddf1683dac1aefc1ab3e76e9 + issue_hash_content_of_line_in_context0f30258c45ed9ecd8646db90eaf20c4a issue_context_kindfunction issue_contexttestCMBufferQueueDequeueAndRetain issue_hash_function_offset1 @@ -6830,9 +6829,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context143ef5974bfece95e9894da5250aaff0 + issue_hash_content_of_line_in_context13e672795c0e57433c642c84f26f6c9b issue_context_kindfunction issue_contextf11 issue_hash_function_offset21 @@ -6942,9 +6941,9 @@ descriptionPotential leak of an object stored into 'o' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextaf4ad99c5fb565d82e1b4848aaca4e24 + issue_hash_content_of_line_in_contexteeff9e133573bdbc1aeb633284cbdb2b issue_context_kindfunction issue_contextf12 issue_hash_function_offset1 @@ -7198,9 +7197,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context58a0b3f8332f42561f89b11f6eb5e91f + issue_hash_content_of_line_in_context620a4245edc8df18036da34702ca01c8 issue_context_kindfunction issue_contextf13_autorelease_b issue_hash_function_offset4 @@ -7471,9 +7470,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context612dc6574d54c8010703a9776d8a4a0a + issue_hash_content_of_line_in_context1a87a5f904c165069a731b0325d45edf issue_context_kindfunction issue_contextf13_autorelease_c issue_hash_function_offset4 @@ -7778,9 +7777,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextc57037289bc3acc586de325df25951ed + issue_hash_content_of_line_in_context6ed645efdfe968f31d4356610bb6dd02 issue_context_kindfunction issue_contextf13_autorelease_d issue_hash_function_offset4 @@ -7886,9 +7885,9 @@ descriptionPotential leak of an object of type 'CFMutableArrayRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6abb479bc4c7782a125d680fddf825ef + issue_hash_content_of_line_in_context5295be41524e9e28f4b1a608006801fe issue_context_kindfunction issue_contextf14_leakimmediately issue_hash_function_offset1 @@ -8892,9 +8891,9 @@ descriptionPotential leak of an object stored into 'bmap' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context2cfebefee7b63ce3954419e571be4f63 + issue_hash_content_of_line_in_context2e5affde083280f6d31ed412ac8c2396 issue_context_kindfunction issue_contextf18 issue_hash_function_offset2 @@ -9013,9 +9012,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextdcd3becc58a149abe6ade5598138d3dd + issue_hash_content_of_line_in_contextfdd0cb02c08c718da2686b6e0f04aad7 issue_context_kindObjective-C method issue_contextnewString issue_hash_function_offset2 @@ -9231,9 +9230,9 @@ descriptionPotential leak of an object stored into 'kind' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6688c9cb12f0c76ec80eb03b1d2eddf8 + issue_hash_content_of_line_in_context03f39b74e1ccafa9c613ba4bb71de560 issue_context_kindfunction issue_contextrdar_6659160 issue_hash_function_offset5 @@ -10406,9 +10405,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextd04966e9b8e981d8f69bf03823253033 + issue_hash_content_of_line_in_contextc8a4713a734a4f6e747423ef88af6bf8 issue_context_kindfunction issue_contextrdar_6659160 issue_hash_function_offset33 @@ -10614,9 +10613,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1b35183a6aca4df5a8732c8da94e3205 + issue_hash_content_of_line_in_context83c7891609f8efb616060d0c6ae6bb43 issue_context_kindfunction issue_contextpr3820_ReleaseAfterDealloc issue_hash_function_offset3 @@ -10846,9 +10845,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context54f2bd1534fa675b58c4f8eef3120373 + issue_hash_content_of_line_in_context9fe338c720f25b3b1d5a68930d3ae4b8 issue_context_kindfunction issue_contextpr3820_DeallocAfterRelease issue_hash_function_offset4 @@ -11098,9 +11097,9 @@ descriptionPotential leak of an object stored into 'dict' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context055e6f3413539276fedeac241fccd9b8 + issue_hash_content_of_line_in_contextdf3400f53fc437aede21f685ca1955d4 issue_context_kindObjective-C method issue_contextapplicationDidFinishLaunching: issue_hash_function_offset1 @@ -11412,9 +11411,9 @@ descriptionPotential leak of an object stored into 'dict' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context444f6019b048a95dd71c6be49ecb73ff + issue_hash_content_of_line_in_context5104ca579763af0f8c66da3fdc42b95f issue_context_kindObjective-C method issue_contextradar10102244 issue_hash_function_offset1 @@ -11568,9 +11567,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context641de26edd3d85ca241de577afbcda86 + issue_hash_content_of_line_in_contexta4a85a3991cb3888217d5c62346107dc issue_context_kindfunction issue_contextrdar_6257780_Case1 issue_hash_function_offset3 @@ -11724,9 +11723,9 @@ descriptionPotential leak of an object of type 'RDar6320065Subclass *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context8e8ae80fd006f27a952f77494bd1c05f + issue_hash_content_of_line_in_context75b7ad344b1d4665d918188bd10429df issue_context_kindObjective-C method issue_context_initReturningNewClassBad issue_hash_function_offset2 @@ -11921,9 +11920,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context625e26ef3ae9de238f30175e4e9f4937 + issue_hash_content_of_line_in_context791e285d27d610c4c016065dd5addd37 issue_context_kindObjective-C method issue_contextinitReturningNewClassBad2 issue_hash_function_offset3 @@ -12009,9 +12008,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context666dce676597e2cfa3199521864f7b96 + issue_hash_content_of_line_in_context58cf9e4228ab9cbe375ddf37d04d45f1 issue_context_kindObjective-C method issue_contextNoCopyString issue_hash_function_offset0 @@ -12094,9 +12093,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context31104cdb408dbc3faf693a5c31973486 + issue_hash_content_of_line_in_contexte1b0176b31382e7e75129dd78883c91b issue_context_kindObjective-C method issue_contextnoCopyString issue_hash_function_offset0 @@ -12319,9 +12318,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context909638940b4d7020f51062089653b231 + issue_hash_content_of_line_in_context5ff4d17e82026ccd84121b0a361fc135 issue_context_kindfunction issue_contexttest_RDar6859457 issue_hash_function_offset1 @@ -12581,9 +12580,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context2a37743e32cfa0a86958fed215c30e87 + issue_hash_content_of_line_in_context964683651b544d6c1cce0c4ae6961936 issue_context_kindfunction issue_contexttest_RDar6859457 issue_hash_function_offset2 @@ -12671,9 +12670,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context20b25f0ba6268e055d8491c67c6a26bd + issue_hash_content_of_line_in_contextca046c4c96c27a0e8c84dd707563bba9 issue_context_kindObjective-C method issue_context: issue_hash_function_offset1 @@ -12791,9 +12790,9 @@ descriptionPotential leak of an object of type 'id' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context706b9d732ece93a88487dbbf0b82fd23 + issue_hash_content_of_line_in_context12515c1f2d3343496d32a54ef376347d issue_context_kindfunction issue_contextrdar6902710 issue_hash_function_offset1 @@ -12948,9 +12947,9 @@ descriptionPotential leak of an object of type 'id' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context631eebb0c921191c24734f98fe93f6bf + issue_hash_content_of_line_in_contexte10d7d441805b9f66c118bfeccf32f29 issue_context_kindfunction issue_contextrdar6902710 issue_hash_function_offset2 @@ -13106,9 +13105,9 @@ descriptionPotential leak of an object of type 'CGImageRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextee36a48521a32c183a086066d3c5ae1f + issue_hash_content_of_line_in_context3ae54947ad02e14773ac126982de301d issue_context_kindfunction issue_contextrdar6902710 issue_hash_function_offset3 @@ -13250,9 +13249,9 @@ descriptionPotential leak of an object of type 'CGImageRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context70a2dd4ee6b6f7caad87a46dc6dd3580 + issue_hash_content_of_line_in_context6dba0d2672617f7eb2c512129fb17bb3 issue_context_kindfunction issue_contextrdar6902710 issue_hash_function_offset4 @@ -13361,9 +13360,9 @@ descriptionPotential leak of an object of type 'CGLayerRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta82448687d1cbf5cb517914dbe6de4fe + issue_hash_content_of_line_in_contextb065641c4257dac33ff15b08859d09e2 issue_context_kindfunction issue_contextrdar6945561 issue_hash_function_offset1 @@ -13467,9 +13466,9 @@ descriptionPotential leak of an object of type 'CFMutableDictionaryRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context540e0145994c1e14ea750fe91a497855 + issue_hash_content_of_line_in_context7cbb4f547b5c1fb1a456ecc47f27d853 issue_context_kindfunction issue_contextIOBSDNameMatching_wrapper issue_hash_function_offset1 @@ -13573,9 +13572,9 @@ descriptionPotential leak of an object of type 'CFMutableDictionaryRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context99d7012d797e181ef8e9a289ee9099eb + issue_hash_content_of_line_in_context0b329ce97e1baf94f89590888a4af794 issue_context_kindfunction issue_contextIOServiceMatching_wrapper issue_hash_function_offset1 @@ -13679,9 +13678,9 @@ descriptionPotential leak of an object of type 'CFMutableDictionaryRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context5d956e58f05bcc1b67ff65e02cbba302 + issue_hash_content_of_line_in_contexte207241fbe4666cffeeca3f47966425f issue_context_kindfunction issue_contextIOServiceNameMatching_wrapper issue_hash_function_offset1 @@ -13875,9 +13874,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context84a53bfb58a3a929535b47e28b997382 + issue_hash_content_of_line_in_contextae61d11111bc6c9f049a5ca8935b7bae issue_context_kindfunction issue_contextIOServiceAddNotification_wrapper issue_hash_function_offset4 @@ -13984,9 +13983,9 @@ descriptionPotential leak of an object of type 'CFMutableDictionaryRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context36337ff486f6a8b702e68d13393bc975 + issue_hash_content_of_line_in_context62fc802833a96d44d2fa008826c46c64 issue_context_kindfunction issue_contextIORegistryEntryIDMatching_wrapper issue_hash_function_offset1 @@ -14090,9 +14089,9 @@ descriptionPotential leak of an object of type 'CFMutableDictionaryRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextee83ca968ddc2ecad7ae4318ce7d1d95 + issue_hash_content_of_line_in_context644a1e5f3d844a5d9b140de26e6e5645 issue_context_kindfunction issue_contextIOOpenFirmwarePathMatching_wrapper issue_hash_function_offset1 @@ -14287,9 +14286,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexte8c08b2b3d53f5890907888e16927805 + issue_hash_content_of_line_in_context904a99d378144e5aa011649cec493695 issue_context_kindfunction issue_contextIOServiceGetMatchingService_wrapper issue_hash_function_offset3 @@ -14484,9 +14483,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context31664b5acc7980da73f5545fb16b0910 + issue_hash_content_of_line_in_context23c94c459003beb49ea078f75a86ccc5 issue_context_kindfunction issue_contextIOServiceGetMatchingServices_wrapper issue_hash_function_offset3 @@ -14681,9 +14680,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6edae46016a9671e2d5400b100d5efb5 + issue_hash_content_of_line_in_context06e6fa1f7f96818fbd619dfe8b210b0d issue_context_kindfunction issue_contextIOServiceAddMatchingNotification_wrapper issue_hash_function_offset4 @@ -14988,9 +14987,9 @@ descriptionPotential leak of an object stored into 'number' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextdcec4e2bd254a3c24e84e598b5a827bf + issue_hash_content_of_line_in_context1692047c1a2ab283584ae01c84e3ae35 issue_context_kindfunction issue_contextrdar_7152619 issue_hash_function_offset4 @@ -15188,9 +15187,9 @@ descriptionPotential leak of an object of type 'CGColorSpaceRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context9317a6bf07dd10dc988f2415cc2c4ef7 + issue_hash_content_of_line_in_context17e5c3184216ca3aef86288dc1f41d8d issue_context_kindfunction issue_contextrdar_7184450 issue_hash_function_offset13 @@ -15388,9 +15387,9 @@ descriptionPotential leak of an object of type 'CGColorSpaceRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextec3e6216b279aa48d8403c6aab30d996 + issue_hash_content_of_line_in_contextc2225660bdec84d2ae183eda303a1abb issue_context_kindfunction issue_contextrdar_7184450_pos issue_hash_function_offset13 @@ -15606,9 +15605,9 @@ descriptionPotential leak of an object stored into 'myGradient' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context4b3d6bb6b8dc5c51b7dfa8554b24eb66 + issue_hash_content_of_line_in_context6415d6b7dd7d48a2ef27f4c4d0168c64 issue_context_kindfunction issue_contextrdar_7184450_pos issue_hash_function_offset13 @@ -15725,9 +15724,9 @@ descriptionPotential leak of an object stored into 'number' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context42a83016e862ec323e24920873073a5a + issue_hash_content_of_line_in_context08a69979bb4fa932512da1327fbf3b23 issue_context_kindfunction issue_contextrdar_7299394_positive issue_hash_function_offset1 @@ -15865,9 +15864,9 @@ descriptionPotential leak of an object of type 'CGContextRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta416473fed3a9dbc6bfee885bee38216 + issue_hash_content_of_line_in_context32b76a1b35c681cad8093c7e79e36388 issue_context_kindfunction issue_contextrdar_7358899 issue_hash_function_offset7 @@ -15976,9 +15975,9 @@ descriptionPotential leak of an object stored into 'y' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context980dd45e9cf6581dbc2be9ebfc500b7f + issue_hash_content_of_line_in_context7e6172f0b4b6af27712153519e1934e1 issue_context_kindfunction issue_contextrdar7265711_a issue_hash_function_offset1 @@ -16116,9 +16115,9 @@ descriptionPotential leak of an object stored into 'number' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextebf51fb2b16499cf3a5c57d251a91061 + issue_hash_content_of_line_in_context5eb97f906bb3af4befe63c891484f791 issue_context_kindfunction issue_contextrdar7306898 issue_hash_function_offset4 @@ -16559,9 +16558,9 @@ descriptionPotential leak of an object stored into 'str' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1174ccc2a30887ebf80fe25fc6722b1a + issue_hash_content_of_line_in_context6b9b51ce7b68ca0ba6a85e8924601a96 issue_context_kindfunction issue_contexttest_attr_1 issue_hash_function_offset1 @@ -16665,9 +16664,9 @@ descriptionPotential leak of an object stored into 'str' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextce9963dd1c85ac22cea4e4fef615354e + issue_hash_content_of_line_in_contexteb040d5ec198d092ec9894af4dce6af8 issue_context_kindfunction issue_contexttest_attr_1b issue_hash_function_offset1 @@ -16854,9 +16853,9 @@ descriptionPotential leak of an object stored into 'str2' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context0183088266857082f35eb17f1377fd69 + issue_hash_content_of_line_in_context21b45a41bb0c3c70a0efe89359ff3385 issue_context_kindfunction issue_contexttest_attr1c issue_hash_function_offset2 @@ -17104,9 +17103,9 @@ descriptionPotential leak of an object stored into 'str4' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context352a17ef8eddd3aa5f7f6e74a74a4df3 + issue_hash_content_of_line_in_context60396abae77bacd747ea9081b63a32db issue_context_kindfunction issue_contexttest_attr1c issue_hash_function_offset4 @@ -17213,9 +17212,9 @@ descriptionPotential leak of an object stored into 'x' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextd0e564404585060990202acb33f0bb1e + issue_hash_content_of_line_in_contexte258a710e07550a3dc5f47361a7380e1 issue_context_kindfunction issue_contexttestattr2_a issue_hash_function_offset1 @@ -17319,9 +17318,9 @@ descriptionPotential leak of an object stored into 'x' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context567dfcbc22471ca4ba9f2fccd9ff14fb + issue_hash_content_of_line_in_contextdc245145c78c3421392a20775cdd6f23 issue_context_kindfunction issue_contexttestattr2_b issue_hash_function_offset1 @@ -17459,9 +17458,9 @@ descriptionPotential leak of an object stored into 'x' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context83cd2670977d513443836653fee8147b + issue_hash_content_of_line_in_context77b970319b12b0c189e46ad65fa848c7 issue_context_kindfunction issue_contexttestattr2_b_11358224_self_assign_looses_the_leak issue_hash_function_offset1 @@ -17547,9 +17546,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextf83246e7e738918426df1adc915f4eca + issue_hash_content_of_line_in_context4a8d774d2b821ce1601df7edabf66097 issue_context_kindObjective-C method issue_contextnewString issue_hash_function_offset1 @@ -18056,9 +18055,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context5f233261d96f1d461af36fc3e0efc8eb + issue_hash_content_of_line_in_context2a609b8807dab6d3cb1a1db524094f2f issue_context_kindObjective-C method issue_contextnewCFRetainedAsCFNoAttr issue_hash_function_offset1 @@ -18321,9 +18320,9 @@ descriptionPotential leak of an object of type 'CFDateRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context7ee55b74b5ee01c6ffa2a3d83c8cf88b + issue_hash_content_of_line_in_context944f189da47b1406f9cca6f17ad9f77c issue_context_kindObjective-C method issue_contextalsoReturnsRetained issue_hash_function_offset1 @@ -18584,9 +18583,9 @@ descriptionPotential leak of an object of type 'CFDateRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context177b2cf7eb3d8334393ee0861f5a38ac + issue_hash_content_of_line_in_context30ebf65449c31336f8a97555d79f1943 issue_context_kindObjective-C method issue_contextalsoReturnsRetainedAsCF issue_hash_function_offset1 @@ -18726,9 +18725,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context85e9d8130a1f1ec37f0ba26746abd749 + issue_hash_content_of_line_in_context2ab1a2345ddfa1fd48777c7c179d4e33 issue_context_kindfunction issue_contexttest_panic_negative issue_hash_function_offset2 @@ -18964,9 +18963,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context4a0b16976e0517b38b2ccc16e2928c2e + issue_hash_content_of_line_in_contextf96bb4f5c1af6cf932d7ab58b678c235 issue_context_kindfunction issue_contexttest_panic_neg_2 issue_hash_function_offset2 @@ -19087,9 +19086,9 @@ descriptionPotential leak of an object stored into 'number' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextaf73d9c62952a300a7c393ebd5073f75 + issue_hash_content_of_line_in_context14182fb28ed03595f896c2f8536ac111 issue_context_kindfunction issue_contexttest_blocks_1_pos issue_hash_function_offset1 @@ -19374,9 +19373,9 @@ descriptionPotential leak of an object stored into 'number' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context771b2a332053388ffbdd9ba74ea84c5e + issue_hash_content_of_line_in_contextdbf800f836ff675d2f779f7417877c1b issue_context_kindfunction issue_contexttest_blocks_1_indirect_retain_via_call issue_hash_function_offset1 @@ -19772,9 +19771,9 @@ descriptionPotential leak of an object stored into 'info' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context39f8c30f7436f678d5259c0fdd3a0dad + issue_hash_content_of_line_in_context64424de797303506a3dfdb52fa765645 issue_context_kindfunction issue_contextrdar_8724287 issue_hash_function_offset7 @@ -19865,9 +19864,9 @@ descriptionPotential leak of an object of type 'CFMutableArrayRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context107e3efdeb8cdff4bef4c64183c4f6fa + issue_hash_content_of_line_in_context7b7fc0c36e58713202141cb584150903 issue_context_kindfunction issue_contextcamelcase_createno issue_hash_function_offset1 @@ -19951,9 +19950,9 @@ descriptionPotential leak of an object of type 'CFMutableArrayRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context20c973a013858abb0a926276c956f858 + issue_hash_content_of_line_in_context32912dd9518de1b3f4cc8ba38368f7e6 issue_context_kindfunction issue_contextcamelcase_copying issue_hash_function_offset1 @@ -20037,9 +20036,9 @@ descriptionPotential leak of an object of type 'CFMutableArrayRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context80ee99e51561a37297429740e3a4da0c + issue_hash_content_of_line_in_context1dccc42846a9ef9bf1a1830e277d5b78 issue_context_kindfunction issue_contextcamel_creat issue_hash_function_offset1 @@ -20123,9 +20122,9 @@ descriptionPotential leak of an object of type 'CFMutableArrayRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta4e28a04f6a8d87c8aaf4d71c37cac0f + issue_hash_content_of_line_in_context2a0ba33097f6e9362a79689e2ac0cf4a issue_context_kindfunction issue_contextcamel_copymachine issue_hash_function_offset1 @@ -20262,9 +20261,9 @@ descriptionPotential leak of an object stored into 'vals' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6b727a438d8411c058fd32867b9402bc + issue_hash_content_of_line_in_context43f6c1be372d09a4a4cffaefa69d0148 issue_context_kindfunction issue_contextrdar6582778 issue_hash_function_offset2 @@ -20527,9 +20526,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextb39dcf9df7cec8dd73cbbe25b2a7d6c5 + issue_hash_content_of_line_in_contextebe7e868c0075bfa7480e3359e4fbce8 issue_context_kindfunction issue_contextrdar10232019_positive issue_hash_function_offset6 @@ -20684,9 +20683,9 @@ descriptionPotential leak of an object stored into 'a' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta501f743b22f1feb5dc317fcad4f7556 + issue_hash_content_of_line_in_context507c3679ae27249e01844b7555843688 issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset3 @@ -20910,9 +20909,9 @@ descriptionPotential leak of an object stored into 'a2' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta141a6ad33e8ff2ae3b13da0ad36ebc5 + issue_hash_content_of_line_in_context821f8268a0b7d3f90e4dd88fa1edf39b issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset12 @@ -21319,9 +21318,9 @@ descriptionPotential leak of an object stored into 'a3' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context2b072d75e8da8e3fe8f7968a85efb37c + issue_hash_content_of_line_in_context37b00e6e0e6b792ea3294a9ffd6f4886 issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset20 @@ -21692,9 +21691,9 @@ descriptionPotential leak of an object stored into 'a' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context0bfdfb7e392626e0fccc6ab9f58f1ca8 + issue_hash_content_of_line_in_context62fc5b80705a03ab1d8b50bdcfbfb179 issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset28 @@ -22247,9 +22246,9 @@ descriptionPotential leak of an object stored into 'a' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextff7c34e661a42d06a7fb3e9669e70339 + issue_hash_content_of_line_in_context3eee239ca30a84ef6ecc5d154ae8df28 issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset37 @@ -22520,9 +22519,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context73e84c042932d2e17e00f00dc3d36d5a + issue_hash_content_of_line_in_contextcb86fdadd2217db6b784b37dc29eba34 issue_context_kindfunction issue_contexttest_objc_integer_literals issue_hash_function_offset1 @@ -22751,9 +22750,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context465e592d4f7a187717d00b8154a614b5 + issue_hash_content_of_line_in_context4ad9235c4885452c3034fef815598a63 issue_context_kindfunction issue_contexttest_objc_boxed_expressions issue_hash_function_offset1 @@ -23036,9 +23035,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextc701bd0c60f51d96c047aa78c9e0eb99 + issue_hash_content_of_line_in_context9d3a52ee2efe90fef76f91f143f0d9e7 issue_context_kindfunction issue_contexttest_objc_boxed_expressions issue_hash_function_offset4 @@ -23400,9 +23399,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta4cedbb647e9632da7a5072cb839e54a + issue_hash_content_of_line_in_context0aad7b0550b51ebc0a2323c482d8eefd issue_context_kindfunction issue_contextrdar11400885 issue_hash_function_offset9 @@ -23560,9 +23559,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextfd9427d86a2357fd92478c9c7abbc1f4 + issue_hash_content_of_line_in_context3b63deb8c998b2d73dd63da9f89672bb issue_context_kindfunction issue_contexttestConsumeAndStopTracking issue_hash_function_offset10 @@ -23719,9 +23718,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context0e65e51476e5671dcd37f632806e5147 + issue_hash_content_of_line_in_contexta4fe04db2f5fa1aa2b6d8d18ccb5dd02 issue_context_kindfunction issue_contexttestCFConsumeAndStopTracking issue_hash_function_offset10 @@ -23829,9 +23828,9 @@ descriptionPotential leak of an object stored into 'x' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta0ba9c47505e923763ea5323ad2f71b7 + issue_hash_content_of_line_in_context55f656da79f1b87a4b5618167f68c233 issue_context_kindfunction issue_contexttest_custom_cf issue_hash_function_offset1 @@ -23935,9 +23934,9 @@ descriptionPotential leak of an object stored into 'obj' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context7a6cf8cb3c5e0ca3125d7e27695a810a + issue_hash_content_of_line_in_contexta7b4693fabae95c6b2091c7816fb2358 issue_context_kindfunction issue_contexttestCustomReturnsRetained issue_hash_function_offset1 @@ -24022,9 +24021,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context810fce32373fe40ba8e2d0894d46f667 + issue_hash_content_of_line_in_context51de919c9df9dec2d383d050bf73d2d8 issue_context_kindfunction issue_contexttestCustomReturnsNotRetained issue_hash_function_offset1 @@ -24379,9 +24378,9 @@ descriptionPotential leak of an object of type 'MyObj12706177 *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context68ee7961ffb62c575cc2298cb4836090 + issue_hash_content_of_line_in_contextd8890e44d330279fd91ce8fdb35d7c81 issue_context_kindObjective-C method issue_contexttest12706177 issue_hash_function_offset1 @@ -24611,9 +24610,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1dc376fbbe90d14b6766585a0e2b7bee + issue_hash_content_of_line_in_contextd4c839aab11cc39188d1054f3270d67f issue_context_kindfunction issue_contextgetIncorrectlyAutoreleasedCFType issue_hash_function_offset2 @@ -24840,9 +24839,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6ae8ea9fe4bf203e6b7bfaf649a6ca6a + issue_hash_content_of_line_in_contextd2d9e8a977772482263591670a124c5d issue_context_kindfunction issue_contextcreateIncorrectlyAutoreleasedCFType issue_hash_function_offset2 @@ -25035,9 +25034,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextd4e28f96fc8610b5b4b849f4760956eb + issue_hash_content_of_line_in_contextc483bb676bdbea00f7e99b3617b4b6e2 issue_context_kindfunction issue_contextuseAfterRelease issue_hash_function_offset7 @@ -25292,9 +25291,9 @@ descriptionPotential leak of an object stored into 'obj' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context7986c4b7fb29301c109343dfe4155202 + issue_hash_content_of_line_in_context5bbb9b1720912f3fd2c67b3332de793b issue_context_kindfunction issue_contexttestAutoreleaseReturnsInput issue_hash_function_offset2 @@ -25550,9 +25549,9 @@ descriptionPotential leak of an object stored into 'arr' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context2e0dbfdf379acf2f09e46db47d753e8a + issue_hash_content_of_line_in_contextea7d6978bcb6da71c23b4bb6fef51a87 issue_context_kindfunction issue_contextautoreleaseReturningTypedObject issue_hash_function_offset1 @@ -25767,9 +25766,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context41a2d6f91fdfa9b5f396102a60571e21 + issue_hash_content_of_line_in_context1f4f3ca2f399a94e54304b4a0dcb1e85 issue_context_kindfunction issue_contextautoreleaseObjC issue_hash_function_offset6 @@ -25925,9 +25924,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context95dd5581ae4195b71e9a11f34290af5d + issue_hash_content_of_line_in_contextced44137127627330194b72c97aef162 issue_context_kindfunction issue_contexttestCFReturnsNotRetained issue_hash_function_offset4 @@ -26081,9 +26080,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context014103674df4a8a65a96bcdf936637a2 + issue_hash_content_of_line_in_contexte7615a640885cbd55bc856bfc07d7123 issue_context_kindfunction issue_contexttestCFReturnsNotRetainedAnnotated issue_hash_function_offset4 @@ -26107,7 +26106,6 @@ files - /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/retain-release.m Index: cfe/trunk/test/Analysis/Inputs/expected-plists/retain-release.m.objcpp.plist =================================================================== --- cfe/trunk/test/Analysis/Inputs/expected-plists/retain-release.m.objcpp.plist +++ cfe/trunk/test/Analysis/Inputs/expected-plists/retain-release.m.objcpp.plist @@ -3,7 +3,6 @@ clang_version -clang version 8.0.0 diagnostics @@ -398,9 +397,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context5928b2a4699cbae0686391c20e639007 + issue_hash_content_of_line_in_context1089a297e77ff0c9d2d55cfb3aae26d3 issue_context_kindfunction issue_contextf1 issue_hash_function_offset7 @@ -817,9 +816,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6b2e175938153ac041f52ebbf50b1f43 + issue_hash_content_of_line_in_contextbb12c99d56657635b20d4a0801590eed issue_context_kindfunction issue_contextf2 issue_hash_function_offset7 @@ -1108,9 +1107,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context3fdbd844ddb925306ba2bb1b3626f310 + issue_hash_content_of_line_in_context0e9bb151f425535a0ec1b0bf0574dd7d issue_context_kindfunction issue_contextf5 issue_hash_function_offset2 @@ -1306,9 +1305,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context8529da75e357c59fb0a7fefb0b6e0952 + issue_hash_content_of_line_in_contextad4b758c93bbe7feeee349a526293527 issue_context_kindfunction issue_contextf6 issue_hash_function_offset1 @@ -1503,9 +1502,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexteb0faa12081b1e28b218e4c6e53d57ec + issue_hash_content_of_line_in_context2a319c210c1c5b4274e3f28931ead03b issue_context_kindfunction issue_contextf7 issue_hash_function_offset1 @@ -1660,9 +1659,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context404d4de8faa444bc52fd510380bd0a63 + issue_hash_content_of_line_in_context2c347e0a0af508867a6d854a3fc8f690 issue_context_kindfunction issue_contextf7 issue_hash_function_offset3 @@ -1858,9 +1857,9 @@ descriptionPotential leak of an object stored into 'date' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context251dff6727b3d99ec95caa28672669ea + issue_hash_content_of_line_in_context0be746eb38e868156f7f57ea95735f4e issue_context_kindfunction issue_contextf8 issue_hash_function_offset1 @@ -2563,9 +2562,9 @@ descriptionPotential leak of an object stored into 'disk' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context69ae08a90fe52a921ed423df38ed7480 + issue_hash_content_of_line_in_context3e83186b5b944ef7a3ec026d469d5ad7 issue_context_kindfunction issue_contextf10 issue_hash_function_offset1 @@ -3046,9 +3045,9 @@ descriptionPotential leak of an object stored into 'dict' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta7f8c63b1cdc39df79b7457e27ff4930 + issue_hash_content_of_line_in_contextffc6479dc21fc10cdb83b4392685ed36 issue_context_kindfunction issue_contextf10 issue_hash_function_offset7 @@ -3661,9 +3660,9 @@ descriptionPotential leak of an object stored into 'disk' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextcace8e35bed93ecdfa0455ac166aaa97 + issue_hash_content_of_line_in_context1c06fc99a1d078653ae8e4fe308e09cd issue_context_kindfunction issue_contextf10 issue_hash_function_offset10 @@ -4346,9 +4345,9 @@ descriptionPotential leak of an object stored into 'disk' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context778f70549a15e78703b4dcb3a287df33 + issue_hash_content_of_line_in_context460f099c6ae21a4b3ae818c9f65df2b0 issue_context_kindfunction issue_contextf10 issue_hash_function_offset4 @@ -5163,9 +5162,9 @@ descriptionPotential leak of an object stored into 'dissenter' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6c188b4716e84cdc55b93d40e6c2daf3 + issue_hash_content_of_line_in_context65004e269b1b5cb5d9b5c6f7a02926e3 issue_context_kindfunction issue_contextf10 issue_hash_function_offset13 @@ -6045,9 +6044,9 @@ descriptionPotential leak of an object stored into 'session' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context35b9ac7ff198890c88d5839a898b7fea + issue_hash_content_of_line_in_contexte9c1be038ef498b7985f5b1ddcb5444f issue_context_kindfunction issue_contextf10 issue_hash_function_offset17 @@ -6162,9 +6161,9 @@ descriptionPotential leak of an object stored into 'f' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context17d84d673b35235b52d8f8f00c1d1eea + issue_hash_content_of_line_in_context9c7c3b2bf298c7d046fd6fc7f6fe688e issue_context_kindfunction issue_contexttestLeakCoreMediaReferenceType issue_hash_function_offset1 @@ -6283,9 +6282,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1702285448a953b02ab74a8eb9a610d9 + issue_hash_content_of_line_in_context69932084739a429d667d8de6de42af0b issue_context_kindfunction issue_contexttestOverReleaseMediaReferenceType issue_hash_function_offset2 @@ -6675,9 +6674,9 @@ descriptionPotential leak of an object stored into 'buffer' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context402566b4ddf1683dac1aefc1ab3e76e9 + issue_hash_content_of_line_in_context0f30258c45ed9ecd8646db90eaf20c4a issue_context_kindfunction issue_contexttestCMBufferQueueDequeueAndRetain issue_hash_function_offset1 @@ -6830,9 +6829,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context143ef5974bfece95e9894da5250aaff0 + issue_hash_content_of_line_in_context13e672795c0e57433c642c84f26f6c9b issue_context_kindfunction issue_contextf11 issue_hash_function_offset21 @@ -6942,9 +6941,9 @@ descriptionPotential leak of an object stored into 'o' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextaf4ad99c5fb565d82e1b4848aaca4e24 + issue_hash_content_of_line_in_contexteeff9e133573bdbc1aeb633284cbdb2b issue_context_kindfunction issue_contextf12 issue_hash_function_offset1 @@ -7198,9 +7197,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context58a0b3f8332f42561f89b11f6eb5e91f + issue_hash_content_of_line_in_context620a4245edc8df18036da34702ca01c8 issue_context_kindfunction issue_contextf13_autorelease_b issue_hash_function_offset4 @@ -7471,9 +7470,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context612dc6574d54c8010703a9776d8a4a0a + issue_hash_content_of_line_in_context1a87a5f904c165069a731b0325d45edf issue_context_kindfunction issue_contextf13_autorelease_c issue_hash_function_offset4 @@ -7778,9 +7777,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextc57037289bc3acc586de325df25951ed + issue_hash_content_of_line_in_context6ed645efdfe968f31d4356610bb6dd02 issue_context_kindfunction issue_contextf13_autorelease_d issue_hash_function_offset4 @@ -7886,9 +7885,9 @@ descriptionPotential leak of an object of type 'CFMutableArrayRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6abb479bc4c7782a125d680fddf825ef + issue_hash_content_of_line_in_context5295be41524e9e28f4b1a608006801fe issue_context_kindfunction issue_contextf14_leakimmediately issue_hash_function_offset1 @@ -8892,9 +8891,9 @@ descriptionPotential leak of an object stored into 'bmap' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context2cfebefee7b63ce3954419e571be4f63 + issue_hash_content_of_line_in_context2e5affde083280f6d31ed412ac8c2396 issue_context_kindfunction issue_contextf18 issue_hash_function_offset2 @@ -9013,9 +9012,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextdcd3becc58a149abe6ade5598138d3dd + issue_hash_content_of_line_in_contextfdd0cb02c08c718da2686b6e0f04aad7 issue_context_kindObjective-C method issue_contextnewString issue_hash_function_offset2 @@ -9231,9 +9230,9 @@ descriptionPotential leak of an object stored into 'kind' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6688c9cb12f0c76ec80eb03b1d2eddf8 + issue_hash_content_of_line_in_context03f39b74e1ccafa9c613ba4bb71de560 issue_context_kindfunction issue_contextrdar_6659160 issue_hash_function_offset5 @@ -10406,9 +10405,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextd04966e9b8e981d8f69bf03823253033 + issue_hash_content_of_line_in_contextc8a4713a734a4f6e747423ef88af6bf8 issue_context_kindfunction issue_contextrdar_6659160 issue_hash_function_offset33 @@ -10614,9 +10613,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1b35183a6aca4df5a8732c8da94e3205 + issue_hash_content_of_line_in_context83c7891609f8efb616060d0c6ae6bb43 issue_context_kindfunction issue_contextpr3820_ReleaseAfterDealloc issue_hash_function_offset3 @@ -10846,9 +10845,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context54f2bd1534fa675b58c4f8eef3120373 + issue_hash_content_of_line_in_context9fe338c720f25b3b1d5a68930d3ae4b8 issue_context_kindfunction issue_contextpr3820_DeallocAfterRelease issue_hash_function_offset4 @@ -11098,9 +11097,9 @@ descriptionPotential leak of an object stored into 'dict' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context055e6f3413539276fedeac241fccd9b8 + issue_hash_content_of_line_in_contextdf3400f53fc437aede21f685ca1955d4 issue_context_kindObjective-C method issue_contextapplicationDidFinishLaunching: issue_hash_function_offset1 @@ -11412,9 +11411,9 @@ descriptionPotential leak of an object stored into 'dict' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context444f6019b048a95dd71c6be49ecb73ff + issue_hash_content_of_line_in_context5104ca579763af0f8c66da3fdc42b95f issue_context_kindObjective-C method issue_contextradar10102244 issue_hash_function_offset1 @@ -11568,9 +11567,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context641de26edd3d85ca241de577afbcda86 + issue_hash_content_of_line_in_contexta4a85a3991cb3888217d5c62346107dc issue_context_kindfunction issue_contextrdar_6257780_Case1 issue_hash_function_offset3 @@ -11724,9 +11723,9 @@ descriptionPotential leak of an object of type 'RDar6320065Subclass *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context8e8ae80fd006f27a952f77494bd1c05f + issue_hash_content_of_line_in_context75b7ad344b1d4665d918188bd10429df issue_context_kindObjective-C method issue_context_initReturningNewClassBad issue_hash_function_offset2 @@ -11921,9 +11920,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context625e26ef3ae9de238f30175e4e9f4937 + issue_hash_content_of_line_in_context791e285d27d610c4c016065dd5addd37 issue_context_kindObjective-C method issue_contextinitReturningNewClassBad2 issue_hash_function_offset3 @@ -12009,9 +12008,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context666dce676597e2cfa3199521864f7b96 + issue_hash_content_of_line_in_context58cf9e4228ab9cbe375ddf37d04d45f1 issue_context_kindObjective-C method issue_contextNoCopyString issue_hash_function_offset0 @@ -12094,9 +12093,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context31104cdb408dbc3faf693a5c31973486 + issue_hash_content_of_line_in_contexte1b0176b31382e7e75129dd78883c91b issue_context_kindObjective-C method issue_contextnoCopyString issue_hash_function_offset0 @@ -12319,9 +12318,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context909638940b4d7020f51062089653b231 + issue_hash_content_of_line_in_context5ff4d17e82026ccd84121b0a361fc135 issue_context_kindfunction issue_contexttest_RDar6859457 issue_hash_function_offset1 @@ -12581,9 +12580,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context2a37743e32cfa0a86958fed215c30e87 + issue_hash_content_of_line_in_context964683651b544d6c1cce0c4ae6961936 issue_context_kindfunction issue_contexttest_RDar6859457 issue_hash_function_offset2 @@ -12671,9 +12670,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context20b25f0ba6268e055d8491c67c6a26bd + issue_hash_content_of_line_in_contextca046c4c96c27a0e8c84dd707563bba9 issue_context_kindObjective-C method issue_context: issue_hash_function_offset1 @@ -12791,9 +12790,9 @@ descriptionPotential leak of an object of type 'id' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context706b9d732ece93a88487dbbf0b82fd23 + issue_hash_content_of_line_in_context12515c1f2d3343496d32a54ef376347d issue_context_kindfunction issue_contextrdar6902710 issue_hash_function_offset1 @@ -12982,9 +12981,9 @@ descriptionPotential leak of an object of type 'id' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context631eebb0c921191c24734f98fe93f6bf + issue_hash_content_of_line_in_contexte10d7d441805b9f66c118bfeccf32f29 issue_context_kindfunction issue_contextrdar6902710 issue_hash_function_offset2 @@ -13174,9 +13173,9 @@ descriptionPotential leak of an object of type 'CGImageRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextee36a48521a32c183a086066d3c5ae1f + issue_hash_content_of_line_in_context3ae54947ad02e14773ac126982de301d issue_context_kindfunction issue_contextrdar6902710 issue_hash_function_offset3 @@ -13318,9 +13317,9 @@ descriptionPotential leak of an object of type 'CGImageRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context70a2dd4ee6b6f7caad87a46dc6dd3580 + issue_hash_content_of_line_in_context6dba0d2672617f7eb2c512129fb17bb3 issue_context_kindfunction issue_contextrdar6902710 issue_hash_function_offset4 @@ -13429,9 +13428,9 @@ descriptionPotential leak of an object of type 'CGLayerRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta82448687d1cbf5cb517914dbe6de4fe + issue_hash_content_of_line_in_contextb065641c4257dac33ff15b08859d09e2 issue_context_kindfunction issue_contextrdar6945561 issue_hash_function_offset1 @@ -13535,9 +13534,9 @@ descriptionPotential leak of an object of type 'CFMutableDictionaryRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context540e0145994c1e14ea750fe91a497855 + issue_hash_content_of_line_in_context7cbb4f547b5c1fb1a456ecc47f27d853 issue_context_kindfunction issue_contextIOBSDNameMatching_wrapper issue_hash_function_offset1 @@ -13641,9 +13640,9 @@ descriptionPotential leak of an object of type 'CFMutableDictionaryRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context99d7012d797e181ef8e9a289ee9099eb + issue_hash_content_of_line_in_context0b329ce97e1baf94f89590888a4af794 issue_context_kindfunction issue_contextIOServiceMatching_wrapper issue_hash_function_offset1 @@ -13747,9 +13746,9 @@ descriptionPotential leak of an object of type 'CFMutableDictionaryRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context5d956e58f05bcc1b67ff65e02cbba302 + issue_hash_content_of_line_in_contexte207241fbe4666cffeeca3f47966425f issue_context_kindfunction issue_contextIOServiceNameMatching_wrapper issue_hash_function_offset1 @@ -13943,9 +13942,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context84a53bfb58a3a929535b47e28b997382 + issue_hash_content_of_line_in_contextae61d11111bc6c9f049a5ca8935b7bae issue_context_kindfunction issue_contextIOServiceAddNotification_wrapper issue_hash_function_offset4 @@ -14052,9 +14051,9 @@ descriptionPotential leak of an object of type 'CFMutableDictionaryRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context36337ff486f6a8b702e68d13393bc975 + issue_hash_content_of_line_in_context62fc802833a96d44d2fa008826c46c64 issue_context_kindfunction issue_contextIORegistryEntryIDMatching_wrapper issue_hash_function_offset1 @@ -14158,9 +14157,9 @@ descriptionPotential leak of an object of type 'CFMutableDictionaryRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextee83ca968ddc2ecad7ae4318ce7d1d95 + issue_hash_content_of_line_in_context644a1e5f3d844a5d9b140de26e6e5645 issue_context_kindfunction issue_contextIOOpenFirmwarePathMatching_wrapper issue_hash_function_offset1 @@ -14355,9 +14354,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexte8c08b2b3d53f5890907888e16927805 + issue_hash_content_of_line_in_context904a99d378144e5aa011649cec493695 issue_context_kindfunction issue_contextIOServiceGetMatchingService_wrapper issue_hash_function_offset3 @@ -14552,9 +14551,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context31664b5acc7980da73f5545fb16b0910 + issue_hash_content_of_line_in_context23c94c459003beb49ea078f75a86ccc5 issue_context_kindfunction issue_contextIOServiceGetMatchingServices_wrapper issue_hash_function_offset3 @@ -14749,9 +14748,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6edae46016a9671e2d5400b100d5efb5 + issue_hash_content_of_line_in_context06e6fa1f7f96818fbd619dfe8b210b0d issue_context_kindfunction issue_contextIOServiceAddMatchingNotification_wrapper issue_hash_function_offset4 @@ -15056,9 +15055,9 @@ descriptionPotential leak of an object stored into 'number' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextdcec4e2bd254a3c24e84e598b5a827bf + issue_hash_content_of_line_in_context1692047c1a2ab283584ae01c84e3ae35 issue_context_kindfunction issue_contextrdar_7152619 issue_hash_function_offset4 @@ -15257,9 +15256,9 @@ descriptionPotential leak of an object of type 'CGColorSpaceRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context9317a6bf07dd10dc988f2415cc2c4ef7 + issue_hash_content_of_line_in_context17e5c3184216ca3aef86288dc1f41d8d issue_context_kindfunction issue_contextrdar_7184450 issue_hash_function_offset13 @@ -15457,9 +15456,9 @@ descriptionPotential leak of an object of type 'CGColorSpaceRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextec3e6216b279aa48d8403c6aab30d996 + issue_hash_content_of_line_in_contextc2225660bdec84d2ae183eda303a1abb issue_context_kindfunction issue_contextrdar_7184450_pos issue_hash_function_offset13 @@ -15675,9 +15674,9 @@ descriptionPotential leak of an object stored into 'myGradient' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context4b3d6bb6b8dc5c51b7dfa8554b24eb66 + issue_hash_content_of_line_in_context6415d6b7dd7d48a2ef27f4c4d0168c64 issue_context_kindfunction issue_contextrdar_7184450_pos issue_hash_function_offset13 @@ -15794,9 +15793,9 @@ descriptionPotential leak of an object stored into 'number' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context42a83016e862ec323e24920873073a5a + issue_hash_content_of_line_in_context08a69979bb4fa932512da1327fbf3b23 issue_context_kindfunction issue_contextrdar_7299394_positive issue_hash_function_offset1 @@ -15934,9 +15933,9 @@ descriptionPotential leak of an object of type 'CGContextRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta416473fed3a9dbc6bfee885bee38216 + issue_hash_content_of_line_in_context32b76a1b35c681cad8093c7e79e36388 issue_context_kindfunction issue_contextrdar_7358899 issue_hash_function_offset7 @@ -16045,9 +16044,9 @@ descriptionPotential leak of an object stored into 'y' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context980dd45e9cf6581dbc2be9ebfc500b7f + issue_hash_content_of_line_in_context7e6172f0b4b6af27712153519e1934e1 issue_context_kindfunction issue_contextrdar7265711_a issue_hash_function_offset1 @@ -16185,9 +16184,9 @@ descriptionPotential leak of an object stored into 'number' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextebf51fb2b16499cf3a5c57d251a91061 + issue_hash_content_of_line_in_context5eb97f906bb3af4befe63c891484f791 issue_context_kindfunction issue_contextrdar7306898 issue_hash_function_offset4 @@ -16628,9 +16627,9 @@ descriptionPotential leak of an object stored into 'str' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1174ccc2a30887ebf80fe25fc6722b1a + issue_hash_content_of_line_in_context6b9b51ce7b68ca0ba6a85e8924601a96 issue_context_kindfunction issue_contexttest_attr_1 issue_hash_function_offset1 @@ -16734,9 +16733,9 @@ descriptionPotential leak of an object stored into 'str' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextce9963dd1c85ac22cea4e4fef615354e + issue_hash_content_of_line_in_contexteb040d5ec198d092ec9894af4dce6af8 issue_context_kindfunction issue_contexttest_attr_1b issue_hash_function_offset1 @@ -16923,9 +16922,9 @@ descriptionPotential leak of an object stored into 'str2' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context0183088266857082f35eb17f1377fd69 + issue_hash_content_of_line_in_context21b45a41bb0c3c70a0efe89359ff3385 issue_context_kindfunction issue_contexttest_attr1c issue_hash_function_offset2 @@ -17173,9 +17172,9 @@ descriptionPotential leak of an object stored into 'str4' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context352a17ef8eddd3aa5f7f6e74a74a4df3 + issue_hash_content_of_line_in_context60396abae77bacd747ea9081b63a32db issue_context_kindfunction issue_contexttest_attr1c issue_hash_function_offset4 @@ -17282,9 +17281,9 @@ descriptionPotential leak of an object stored into 'x' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextd0e564404585060990202acb33f0bb1e + issue_hash_content_of_line_in_contexte258a710e07550a3dc5f47361a7380e1 issue_context_kindfunction issue_contexttestattr2_a issue_hash_function_offset1 @@ -17388,9 +17387,9 @@ descriptionPotential leak of an object stored into 'x' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context567dfcbc22471ca4ba9f2fccd9ff14fb + issue_hash_content_of_line_in_contextdc245145c78c3421392a20775cdd6f23 issue_context_kindfunction issue_contexttestattr2_b issue_hash_function_offset1 @@ -17528,9 +17527,9 @@ descriptionPotential leak of an object stored into 'x' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context83cd2670977d513443836653fee8147b + issue_hash_content_of_line_in_context77b970319b12b0c189e46ad65fa848c7 issue_context_kindfunction issue_contexttestattr2_b_11358224_self_assign_looses_the_leak issue_hash_function_offset1 @@ -17616,9 +17615,9 @@ descriptionPotential leak of an object of type 'NSString *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextf83246e7e738918426df1adc915f4eca + issue_hash_content_of_line_in_context4a8d774d2b821ce1601df7edabf66097 issue_context_kindObjective-C method issue_contextnewString issue_hash_function_offset1 @@ -18125,9 +18124,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context5f233261d96f1d461af36fc3e0efc8eb + issue_hash_content_of_line_in_context2a609b8807dab6d3cb1a1db524094f2f issue_context_kindObjective-C method issue_contextnewCFRetainedAsCFNoAttr issue_hash_function_offset1 @@ -18390,9 +18389,9 @@ descriptionPotential leak of an object of type 'CFDateRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context7ee55b74b5ee01c6ffa2a3d83c8cf88b + issue_hash_content_of_line_in_context944f189da47b1406f9cca6f17ad9f77c issue_context_kindObjective-C method issue_contextalsoReturnsRetained issue_hash_function_offset1 @@ -18653,9 +18652,9 @@ descriptionPotential leak of an object of type 'CFDateRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context177b2cf7eb3d8334393ee0861f5a38ac + issue_hash_content_of_line_in_context30ebf65449c31336f8a97555d79f1943 issue_context_kindObjective-C method issue_contextalsoReturnsRetainedAsCF issue_hash_function_offset1 @@ -18795,9 +18794,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context85e9d8130a1f1ec37f0ba26746abd749 + issue_hash_content_of_line_in_context2ab1a2345ddfa1fd48777c7c179d4e33 issue_context_kindfunction issue_contexttest_panic_negative issue_hash_function_offset2 @@ -19033,9 +19032,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context4a0b16976e0517b38b2ccc16e2928c2e + issue_hash_content_of_line_in_contextf96bb4f5c1af6cf932d7ab58b678c235 issue_context_kindfunction issue_contexttest_panic_neg_2 issue_hash_function_offset2 @@ -19156,9 +19155,9 @@ descriptionPotential leak of an object stored into 'number' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextaf73d9c62952a300a7c393ebd5073f75 + issue_hash_content_of_line_in_context14182fb28ed03595f896c2f8536ac111 issue_context_kindfunction issue_contexttest_blocks_1_pos issue_hash_function_offset1 @@ -19443,9 +19442,9 @@ descriptionPotential leak of an object stored into 'number' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context771b2a332053388ffbdd9ba74ea84c5e + issue_hash_content_of_line_in_contextdbf800f836ff675d2f779f7417877c1b issue_context_kindfunction issue_contexttest_blocks_1_indirect_retain_via_call issue_hash_function_offset1 @@ -19841,9 +19840,9 @@ descriptionPotential leak of an object stored into 'info' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context39f8c30f7436f678d5259c0fdd3a0dad + issue_hash_content_of_line_in_context64424de797303506a3dfdb52fa765645 issue_context_kindfunction issue_contextrdar_8724287 issue_hash_function_offset7 @@ -19934,9 +19933,9 @@ descriptionPotential leak of an object of type 'CFMutableArrayRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context107e3efdeb8cdff4bef4c64183c4f6fa + issue_hash_content_of_line_in_context7b7fc0c36e58713202141cb584150903 issue_context_kindfunction issue_contextcamelcase_createno issue_hash_function_offset1 @@ -20020,9 +20019,9 @@ descriptionPotential leak of an object of type 'CFMutableArrayRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context20c973a013858abb0a926276c956f858 + issue_hash_content_of_line_in_context32912dd9518de1b3f4cc8ba38368f7e6 issue_context_kindfunction issue_contextcamelcase_copying issue_hash_function_offset1 @@ -20106,9 +20105,9 @@ descriptionPotential leak of an object of type 'CFMutableArrayRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context80ee99e51561a37297429740e3a4da0c + issue_hash_content_of_line_in_context1dccc42846a9ef9bf1a1830e277d5b78 issue_context_kindfunction issue_contextcamel_creat issue_hash_function_offset1 @@ -20192,9 +20191,9 @@ descriptionPotential leak of an object of type 'CFMutableArrayRef' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak of returned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta4e28a04f6a8d87c8aaf4d71c37cac0f + issue_hash_content_of_line_in_context2a0ba33097f6e9362a79689e2ac0cf4a issue_context_kindfunction issue_contextcamel_copymachine issue_hash_function_offset1 @@ -20331,9 +20330,9 @@ descriptionPotential leak of an object stored into 'vals' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6b727a438d8411c058fd32867b9402bc + issue_hash_content_of_line_in_context43f6c1be372d09a4a4cffaefa69d0148 issue_context_kindfunction issue_contextrdar6582778 issue_hash_function_offset2 @@ -20596,9 +20595,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextb39dcf9df7cec8dd73cbbe25b2a7d6c5 + issue_hash_content_of_line_in_contextebe7e868c0075bfa7480e3359e4fbce8 issue_context_kindfunction issue_contextrdar10232019_positive issue_hash_function_offset6 @@ -20753,9 +20752,9 @@ descriptionPotential leak of an object stored into 'a' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta501f743b22f1feb5dc317fcad4f7556 + issue_hash_content_of_line_in_context507c3679ae27249e01844b7555843688 issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset3 @@ -20979,9 +20978,9 @@ descriptionPotential leak of an object stored into 'a2' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta141a6ad33e8ff2ae3b13da0ad36ebc5 + issue_hash_content_of_line_in_context821f8268a0b7d3f90e4dd88fa1edf39b issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset12 @@ -21388,9 +21387,9 @@ descriptionPotential leak of an object stored into 'a3' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context2b072d75e8da8e3fe8f7968a85efb37c + issue_hash_content_of_line_in_context37b00e6e0e6b792ea3294a9ffd6f4886 issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset20 @@ -21761,9 +21760,9 @@ descriptionPotential leak of an object stored into 'a' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context0bfdfb7e392626e0fccc6ab9f58f1ca8 + issue_hash_content_of_line_in_context62fc5b80705a03ab1d8b50bdcfbfb179 issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset28 @@ -22316,9 +22315,9 @@ descriptionPotential leak of an object stored into 'a' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextff7c34e661a42d06a7fb3e9669e70339 + issue_hash_content_of_line_in_context3eee239ca30a84ef6ecc5d154ae8df28 issue_context_kindfunction issue_contexttest_objc_arrays issue_hash_function_offset37 @@ -22589,9 +22588,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context73e84c042932d2e17e00f00dc3d36d5a + issue_hash_content_of_line_in_contextcb86fdadd2217db6b784b37dc29eba34 issue_context_kindfunction issue_contexttest_objc_integer_literals issue_hash_function_offset1 @@ -22820,9 +22819,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context465e592d4f7a187717d00b8154a614b5 + issue_hash_content_of_line_in_context4ad9235c4885452c3034fef815598a63 issue_context_kindfunction issue_contexttest_objc_boxed_expressions issue_hash_function_offset1 @@ -23105,9 +23104,9 @@ descriptionPotential leak of an object stored into 'value' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextc701bd0c60f51d96c047aa78c9e0eb99 + issue_hash_content_of_line_in_context9d3a52ee2efe90fef76f91f143f0d9e7 issue_context_kindfunction issue_contexttest_objc_boxed_expressions issue_hash_function_offset4 @@ -23469,9 +23468,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta4cedbb647e9632da7a5072cb839e54a + issue_hash_content_of_line_in_context0aad7b0550b51ebc0a2323c482d8eefd issue_context_kindfunction issue_contextrdar11400885 issue_hash_function_offset9 @@ -23629,9 +23628,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextfd9427d86a2357fd92478c9c7abbc1f4 + issue_hash_content_of_line_in_context3b63deb8c998b2d73dd63da9f89672bb issue_context_kindfunction issue_contexttestConsumeAndStopTracking issue_hash_function_offset10 @@ -23788,9 +23787,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context0e65e51476e5671dcd37f632806e5147 + issue_hash_content_of_line_in_contexta4fe04db2f5fa1aa2b6d8d18ccb5dd02 issue_context_kindfunction issue_contexttestCFConsumeAndStopTracking issue_hash_function_offset10 @@ -23898,9 +23897,9 @@ descriptionPotential leak of an object stored into 'x' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta0ba9c47505e923763ea5323ad2f71b7 + issue_hash_content_of_line_in_context55f656da79f1b87a4b5618167f68c233 issue_context_kindfunction issue_contexttest_custom_cf issue_hash_function_offset1 @@ -24004,9 +24003,9 @@ descriptionPotential leak of an object stored into 'obj' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context7a6cf8cb3c5e0ca3125d7e27695a810a + issue_hash_content_of_line_in_contexta7b4693fabae95c6b2091c7816fb2358 issue_context_kindfunction issue_contexttestCustomReturnsRetained issue_hash_function_offset1 @@ -24091,9 +24090,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context810fce32373fe40ba8e2d0894d46f667 + issue_hash_content_of_line_in_context51de919c9df9dec2d383d050bf73d2d8 issue_context_kindfunction issue_contexttestCustomReturnsNotRetained issue_hash_function_offset1 @@ -24448,9 +24447,9 @@ descriptionPotential leak of an object of type 'MyObj12706177 *' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context68ee7961ffb62c575cc2298cb4836090 + issue_hash_content_of_line_in_contextd8890e44d330279fd91ce8fdb35d7c81 issue_context_kindObjective-C method issue_contexttest12706177 issue_hash_function_offset1 @@ -24680,9 +24679,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context1dc376fbbe90d14b6766585a0e2b7bee + issue_hash_content_of_line_in_contextd4c839aab11cc39188d1054f3270d67f issue_context_kindfunction issue_contextgetIncorrectlyAutoreleasedCFType issue_hash_function_offset2 @@ -24909,9 +24908,9 @@ descriptionObject with a +0 retain count returned to caller where a +1 (owning) retain count is expected categoryMemory (Core Foundation/Objective-C/OSObject) typeMethod should return an owned object - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context6ae8ea9fe4bf203e6b7bfaf649a6ca6a + issue_hash_content_of_line_in_contextd2d9e8a977772482263591670a124c5d issue_context_kindfunction issue_contextcreateIncorrectlyAutoreleasedCFType issue_hash_function_offset2 @@ -25104,9 +25103,9 @@ descriptionReference-counted object is used after it is released categoryMemory (Core Foundation/Objective-C/OSObject) typeUse-after-release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contextd4e28f96fc8610b5b4b849f4760956eb + issue_hash_content_of_line_in_contextc483bb676bdbea00f7e99b3617b4b6e2 issue_context_kindfunction issue_contextuseAfterRelease issue_hash_function_offset7 @@ -25361,9 +25360,9 @@ descriptionPotential leak of an object stored into 'obj' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context7986c4b7fb29301c109343dfe4155202 + issue_hash_content_of_line_in_context5bbb9b1720912f3fd2c67b3332de793b issue_context_kindfunction issue_contexttestAutoreleaseReturnsInput issue_hash_function_offset2 @@ -25619,9 +25618,9 @@ descriptionPotential leak of an object stored into 'arr' categoryMemory (Core Foundation/Objective-C/OSObject) typeLeak - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context2e0dbfdf379acf2f09e46db47d753e8a + issue_hash_content_of_line_in_contextea7d6978bcb6da71c23b4bb6fef51a87 issue_context_kindfunction issue_contextautoreleaseReturningTypedObject issue_hash_function_offset1 @@ -25836,9 +25835,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context41a2d6f91fdfa9b5f396102a60571e21 + issue_hash_content_of_line_in_context1f4f3ca2f399a94e54304b4a0dcb1e85 issue_context_kindfunction issue_contextautoreleaseObjC issue_hash_function_offset6 @@ -25994,9 +25993,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context95dd5581ae4195b71e9a11f34290af5d + issue_hash_content_of_line_in_contextced44137127627330194b72c97aef162 issue_context_kindfunction issue_contexttestCFReturnsNotRetained issue_hash_function_offset4 @@ -26150,9 +26149,9 @@ descriptionIncorrect decrement of the reference count of an object that is not owned at this point by the caller categoryMemory (Core Foundation/Objective-C/OSObject) typeBad release - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_context014103674df4a8a65a96bcdf936637a2 + issue_hash_content_of_line_in_contexte7615a640885cbd55bc856bfc07d7123 issue_context_kindfunction issue_contexttestCFReturnsNotRetainedAnnotated issue_hash_function_offset4 @@ -26176,7 +26175,6 @@ files - /Volumes/Transcend/code/monorepo/llvm-project/clang/test/Analysis/retain-release.m Index: cfe/trunk/test/Analysis/NewDelete+MismatchedDeallocator_intersections.cpp =================================================================== --- cfe/trunk/test/Analysis/NewDelete+MismatchedDeallocator_intersections.cpp +++ cfe/trunk/test/Analysis/NewDelete+MismatchedDeallocator_intersections.cpp @@ -1,5 +1,14 @@ -// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete,unix.MismatchedDeallocator -std=c++11 -verify %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete,cplusplus.NewDeleteLeaks,unix.MismatchedDeallocator -DLEAKS -std=c++11 -verify %s +// RUN: %clang_analyze_cc1 -std=c++11 -verify %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus.NewDelete \ +// RUN: -analyzer-checker=unix.MismatchedDeallocator +// +// RUN: %clang_analyze_cc1 -std=c++11 -verify %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus.NewDelete \ +// RUN: -analyzer-checker=cplusplus.NewDeleteLeaks \ +// RUN: -analyzer-checker=unix.MismatchedDeallocator + // expected-no-diagnostics typedef __typeof(sizeof(int)) size_t; Index: cfe/trunk/test/Analysis/NewDelete-checker-test.cpp =================================================================== --- cfe/trunk/test/Analysis/NewDelete-checker-test.cpp +++ cfe/trunk/test/Analysis/NewDelete-checker-test.cpp @@ -1,11 +1,42 @@ -// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete -std=c++11 -fblocks -verify %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDeleteLeaks -DLEAKS -std=c++11 -fblocks -verify %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete -std=c++11 -fblocks -analyzer-config c++-allocator-inlining=true -verify %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDeleteLeaks -DLEAKS -std=c++11 -fblocks -analyzer-config c++-allocator-inlining=true -verify %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete -std=c++11 -fblocks -DTEST_INLINABLE_ALLOCATORS -verify %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDeleteLeaks -DLEAKS -std=c++11 -fblocks -DTEST_INLINABLE_ALLOCATORS -verify %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete -std=c++11 -fblocks -analyzer-config c++-allocator-inlining=true -DTEST_INLINABLE_ALLOCATORS -verify %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDeleteLeaks -DLEAKS -std=c++11 -fblocks -analyzer-config c++-allocator-inlining=true -DTEST_INLINABLE_ALLOCATORS -verify %s +// RUN: %clang_analyze_cc1 -std=c++11 -fblocks -verify %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus.NewDelete +// +// RUN: %clang_analyze_cc1 -DLEAKS -std=c++11 -fblocks -verify %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus.NewDeleteLeaks +// +// RUN: %clang_analyze_cc1 -std=c++11 -fblocks -verify %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus.NewDelete \ +// RUN: -analyzer-config c++-allocator-inlining=true +// +// RUN: %clang_analyze_cc1 -DLEAKS -std=c++11 -fblocks -verify %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus.NewDeleteLeaks \ +// RUN: -analyzer-config c++-allocator-inlining=true +// +// RUN: %clang_analyze_cc1 -DTEST_INLINABLE_ALLOCATORS \ +// RUN: -std=c++11 -fblocks -verify %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus.NewDelete +// +// RUN: %clang_analyze_cc1 -DLEAKS -DTEST_INLINABLE_ALLOCATORS \ +// RUN: -std=c++11 -fblocks -verify %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus.NewDeleteLeaks +// +// RUN: %clang_analyze_cc1 -DTEST_INLINABLE_ALLOCATORS \ +// RUN: -std=c++11 -fblocks -verify %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus.NewDelete \ +// RUN: -analyzer-config c++-allocator-inlining=true +// +// RUN: %clang_analyze_cc1 -DLEAKS -DTEST_INLINABLE_ALLOCATORS \ +// RUN: -std=c++11 -fblocks -verify %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus.NewDeleteLeaks \ +// RUN: -analyzer-config c++-allocator-inlining=true #include "Inputs/system-header-simulator-cxx.h" Index: cfe/trunk/test/Analysis/inlining/Inputs/expected-plists/path-notes.m.plist =================================================================== --- cfe/trunk/test/Analysis/inlining/Inputs/expected-plists/path-notes.m.plist +++ cfe/trunk/test/Analysis/inlining/Inputs/expected-plists/path-notes.m.plist @@ -3,7 +3,6 @@ clang_version -clang version 8.0.0 diagnostics @@ -1966,9 +1965,9 @@ descriptionObject autoreleased too many times categoryMemory (Core Foundation/Objective-C/OSObject) typeObject autoreleased too many times - check_nameosx.cocoa.RetainCount + check_nameosx.cocoa.RetainCountBase - issue_hash_content_of_line_in_contexta3c91a7a52619d81ebe032dcc49ebb93 + issue_hash_content_of_line_in_contextb6a556c71184371a9567489c8477c2f7 issue_context_kindfunction issue_contexttestAutoreleaseTakesEffectInDispatch issue_hash_function_offset11 @@ -1995,7 +1994,6 @@ files - /clang/test/Analysis/inlining/path-notes.m Index: cfe/trunk/test/Analysis/malloc-annotations.c =================================================================== --- cfe/trunk/test/Analysis/malloc-annotations.c +++ cfe/trunk/test/Analysis/malloc-annotations.c @@ -1,8 +1,10 @@ -// RUN: %clang_analyze_cc1 -analyzer-store=region -verify %s \ +// RUN: %clang_analyze_cc1 -analyzer-store=region -verify \ // RUN: -analyzer-checker=core \ // RUN: -analyzer-checker=alpha.deadcode.UnreachableCode \ -// RUN: -analyzer-checker=alpha.core.CastSize,unix.Malloc \ -// RUN: -analyzer-config unix.Malloc:Optimistic=true +// RUN: -analyzer-checker=alpha.core.CastSize \ +// RUN: -analyzer-checker=unix.Malloc \ +// RUN: -analyzer-config unix.DynamicMemoryModeling:Optimistic=true %s + typedef __typeof(sizeof(int)) size_t; void *malloc(size_t); void free(void *); Index: cfe/trunk/test/Analysis/test-separate-retaincount.cpp =================================================================== --- cfe/trunk/test/Analysis/test-separate-retaincount.cpp +++ cfe/trunk/test/Analysis/test-separate-retaincount.cpp @@ -1,6 +1,14 @@ -// RUN: %clang_analyze_cc1 -analyzer-checker=core,osx -analyzer-disable-checker osx.cocoa.RetainCount -DNO_CF_OBJECT -verify %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,osx -analyzer-disable-checker osx.OSObjectRetainCount -DNO_OS_OBJECT -verify %s -// RUN: %clang_analyze_cc1 -analyzer-checker=core,osx -analyzer-config "osx.cocoa.RetainCount:CheckOSObject=false" -DNO_OS_OBJECT -verify %s +// RUN: %clang_analyze_cc1 -DNO_CF_OBJECT -verify %s \ +// RUN: -analyzer-checker=core,osx \ +// RUN: -analyzer-disable-checker osx.cocoa.RetainCount +// +// RUN: %clang_analyze_cc1 -DNO_OS_OBJECT -verify %s \ +// RUN: -analyzer-checker=core,osx \ +// RUN: -analyzer-disable-checker osx.OSObjectRetainCount +// +// RUN: %clang_analyze_cc1 -DNO_OS_OBJECT -verify %s \ +// RUN: -analyzer-checker=core,osx \ +// RUN: -analyzer-config "osx.cocoa.RetainCount:CheckOSObject=false" #include "os_object_base.h" Index: cfe/trunk/utils/TableGen/ClangSACheckersEmitter.cpp =================================================================== --- cfe/trunk/utils/TableGen/ClangSACheckersEmitter.cpp +++ cfe/trunk/utils/TableGen/ClangSACheckersEmitter.cpp @@ -90,6 +90,17 @@ .str(); } +static void printChecker(llvm::raw_ostream &OS, const Record &R) { + OS << "CHECKER(" << "\""; + OS.write_escaped(getCheckerFullName(&R)) << "\", "; + OS << R.getName() << ", "; + OS << "\""; + OS.write_escaped(getStringValue(R, "HelpText")) << "\", "; + OS << "\""; + OS.write_escaped(getCheckerDocs(R)); + OS << "\""; +} + namespace clang { void EmitClangSACheckers(RecordKeeper &Records, raw_ostream &OS) { std::vector checkers = Records.getAllDerivedDefinitions("Checker"); @@ -100,7 +111,12 @@ OS << "// This file is automatically generated. Do not edit this file by " "hand.\n"; - OS << "\n#ifdef GET_PACKAGES\n"; + // Emit packages. + // + // PACKAGE(PACKAGENAME) + // - PACKAGENAME: The name of the package. + OS << "\n" + "#ifdef GET_PACKAGES\n"; { SortedRecords sortedPackages; for (unsigned i = 0, e = packages.size(); i != e; ++i) @@ -115,22 +131,50 @@ OS << ")\n"; } } - OS << "#endif // GET_PACKAGES\n\n"; - - OS << "\n#ifdef GET_CHECKERS\n"; - for (unsigned i = 0, e = checkers.size(); i != e; ++i) { - const Record &R = *checkers[i]; + OS << "#endif // GET_PACKAGES\n" + "\n"; - OS << "CHECKER(" << "\""; - OS.write_escaped(getCheckerFullName(&R)) << "\", "; - OS << R.getName() << ", "; - OS << "\""; - OS.write_escaped(getStringValue(R, "HelpText")) << "\", "; - OS << "\""; - OS.write_escaped(getCheckerDocs(R)); - OS << "\""; + // Emit checkers. + // + // CHECKER(FULLNAME, CLASS, HELPTEXT) + // - FULLNAME: The full name of the checker, including packages, e.g.: + // alpha.cplusplus.UninitializedObject + // - CLASS: The name of the checker, with "Checker" appended, e.g.: + // UninitializedObjectChecker + // - HELPTEXT: The description of the checker. + OS << "\n" + "#ifdef GET_CHECKERS\n" + "\n"; + for (const Record *checker : checkers) { + printChecker(OS, *checker); OS << ")\n"; } - OS << "#endif // GET_CHECKERS\n\n"; + OS << "\n" + "#endif // GET_CHECKERS\n" + "\n"; + + // Emit dependencies. + // + // CHECKER_DEPENDENCY(FULLNAME, DEPENDENCY) + // - FULLNAME: The full name of the checker that depends on another checker. + // - DEPENDENCY: The full name of the checker FULLNAME depends on. + OS << "\n" + "#ifdef GET_CHECKER_DEPENDENCIES\n"; + for (const Record *checker : checkers) { + if (checker->isValueUnset("Dependencies")) + continue; + + for (const Record *Dependency : + checker->getValueAsListOfDefs("Dependencies")) { + OS << "CHECKER_DEPENDENCY("; + OS << '\"'; + OS.write_escaped(getCheckerFullName(checker)) << "\", "; + OS << '\"'; + OS.write_escaped(getCheckerFullName(Dependency)) << '\"'; + OS << ")\n"; + } + } + OS << "\n" + "#endif // GET_CHECKER_DEPENDENCIES\n"; } } // end namespace clang