clang 20.0.0git
|
Public Types | |
enum | RefCountBugKind { UseAfterRelease , ReleaseNotOwned , DeallocNotOwned , FreeNotOwned , OverAutorelease , ReturnNotOwnedForOwned , LeakWithinFunction , LeakAtReturn } |
Public Member Functions | |
RefCountBug (CheckerNameRef Checker, RefCountBugKind BT) | |
StringRef | getDescription () const |
RefCountBugKind | getBugType () const |
Public Member Functions inherited from clang::ento::BugType | |
BugType (CheckerNameRef CheckerName, StringRef Desc, StringRef Cat=categories::LogicError, bool SuppressOnSink=false) | |
BugType (const CheckerBase *Checker, StringRef Desc, StringRef Cat=categories::LogicError, 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. | |
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 | ( | CheckerNameRef | Checker, |
RefCountBugKind | BT | ||
) |
Definition at line 69 of file RetainCountDiagnostics.cpp.
|
inline |
Definition at line 42 of file RetainCountDiagnostics.h.
Referenced by clang::ento::retaincountchecker::RefCountReportVisitor::VisitNode().
StringRef RefCountBug::getDescription | ( | ) | const |
Definition at line 46 of file RetainCountDiagnostics.cpp.
References DeallocNotOwned, FreeNotOwned, LeakAtReturn, LeakWithinFunction, OverAutorelease, ReleaseNotOwned, ReturnNotOwnedForOwned, and UseAfterRelease.