class RefCountReport

Declaration

class RefCountReport : public PathSensitiveBugReport { /* full declaration omitted */ };

Description

This class provides an interface through which checkers can create individual bug reports.

Declared at: clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.h:49

Inherits from: PathSensitiveBugReport

Member Variables

protected clang::ento::SymbolRef Sym
protected bool isLeak = false

Inherited from PathSensitiveBugReport:

protected ErrorNode = nullptr
protected ErrorNodeRange
protected InterestingSymbols
protected InterestingRegions
protected InterestingLocationContexts
protected Callbacks
protected CallbacksSet
protected DoNotPrunePath = false
protected Invalidations
protected TrackedConditions
protected UniqueingLocation
protected UniqueingDecl
protected StackHints

Inherited from BugReport:

protected K
protected BT
protected ShortDescription
protected Description
protected Ranges
protected Notes
protected Fixits

Method Overview

  • public RefCountReport(const clang::ento::retaincountchecker::RefCountBug & D, const clang::LangOptions & LOpts, clang::ento::ExplodedNode * n, clang::ento::SymbolRef sym, bool isLeak = false)
  • public RefCountReport(const clang::ento::retaincountchecker::RefCountBug & D, const clang::LangOptions & LOpts, clang::ento::ExplodedNode * n, clang::ento::SymbolRef sym, llvm::StringRef endText)
  • public ArrayRef<clang::SourceRange> getRanges() const

Inherited from PathSensitiveBugReport:

Inherited from BugReport:

Methods

RefCountReport(
    const clang::ento::retaincountchecker::
        RefCountBug& D,
    const clang::LangOptions& LOpts,
    clang::ento::ExplodedNode* n,
    clang::ento::SymbolRef sym,
    bool isLeak = false)

Declared at: clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.h:55

Parameters

const clang::ento::retaincountchecker:: RefCountBug& D
const clang::LangOptions& LOpts
clang::ento::ExplodedNode* n
clang::ento::SymbolRef sym
bool isLeak = false

RefCountReport(
    const clang::ento::retaincountchecker::
        RefCountBug& D,
    const clang::LangOptions& LOpts,
    clang::ento::ExplodedNode* n,
    clang::ento::SymbolRef sym,
    llvm::StringRef endText)

Declared at: clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.h:59

Parameters

const clang::ento::retaincountchecker:: RefCountBug& D
const clang::LangOptions& LOpts
clang::ento::ExplodedNode* n
clang::ento::SymbolRef sym
llvm::StringRef endText

ArrayRef<clang::SourceRange> getRanges() const

Description

Get the SourceRanges associated with the report.

Declared at: clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.h:63