clang
10.0.0git
|
Public Types | |
enum | RefCountBugType { UseAfterRelease, ReleaseNotOwned, DeallocNotOwned, FreeNotOwned, OverAutorelease, ReturnNotOwnedForOwned, LeakWithinFunction, LeakAtReturn } |
Public Member Functions | |
RefCountBug (const CheckerBase *checker, RefCountBugType BT) | |
StringRef | getDescription () const |
RefCountBugType | getBugType () const |
const CheckerBase * | getChecker () const |
![]() | |
BugType (CheckerNameRef CheckerName, StringRef Name, StringRef Cat, bool SuppressOnSink=false) | |
BugType (const CheckerBase *Checker, StringRef Name, StringRef Cat, bool SuppressOnSink=false) | |
virtual | ~BugType ()=default |
StringRef | getDescription () const |
StringRef | getCategory () const |
StringRef | getCheckerName () const |
bool | isSuppressOnSink () const |
isSuppressOnSink - Returns true if bug reports associated with this bug type should be suppressed if the end node of the report is post-dominated by a sink node. More... | |
Definition at line 27 of file RetainCountDiagnostics.h.
Enumerator | |
---|---|
UseAfterRelease | |
ReleaseNotOwned | |
DeallocNotOwned | |
FreeNotOwned | |
OverAutorelease | |
ReturnNotOwnedForOwned | |
LeakWithinFunction | |
LeakAtReturn |
Definition at line 29 of file RetainCountDiagnostics.h.
RefCountBug::RefCountBug | ( | const CheckerBase * | checker, |
RefCountBugType | BT | ||
) |
Definition at line 66 of file RetainCountDiagnostics.cpp.
|
inline |
Definition at line 42 of file RetainCountDiagnostics.h.
|
inline |
Definition at line 46 of file RetainCountDiagnostics.h.
StringRef RefCountBug::getDescription | ( | ) | const |
Definition at line 43 of file RetainCountDiagnostics.cpp.
References DeallocNotOwned, FreeNotOwned, LeakAtReturn, LeakWithinFunction, OverAutorelease, ReleaseNotOwned, ReturnNotOwnedForOwned, and UseAfterRelease.