clang  14.0.0git
Public Types | Public Member Functions | List of all members
clang::ento::retaincountchecker::RefCountBug Class Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.h"

Inheritance diagram for clang::ento::retaincountchecker::RefCountBug:
Inheritance graph
[legend]
Collaboration diagram for clang::ento::retaincountchecker::RefCountBug:
Collaboration graph
[legend]

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 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...
 

Detailed Description

Definition at line 27 of file RetainCountDiagnostics.h.

Member Enumeration Documentation

◆ RefCountBugKind

Enumerator
UseAfterRelease 
ReleaseNotOwned 
DeallocNotOwned 
FreeNotOwned 
OverAutorelease 
ReturnNotOwnedForOwned 
LeakWithinFunction 
LeakAtReturn 

Definition at line 29 of file RetainCountDiagnostics.h.

Constructor & Destructor Documentation

◆ RefCountBug()

RefCountBug::RefCountBug ( CheckerNameRef  Checker,
RefCountBugKind  BT 
)

Definition at line 68 of file RetainCountDiagnostics.cpp.

Member Function Documentation

◆ getBugType()

RefCountBugKind clang::ento::retaincountchecker::RefCountBug::getBugType ( ) const
inline

◆ getDescription()

StringRef RefCountBug::getDescription ( ) const

The documentation for this class was generated from the following files: