15 #ifndef LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_RETAINCOUNTCHECKER_DIAGNOSTICS_H 16 #define LLVM_CLANG_LIB_STATICANALYZER_CHECKERS_RETAINCOUNTCHECKER_DIAGNOSTICS_H 35 virtual bool isLeak()
const {
return false; }
45 bool registerVisitor =
true);
51 llvm::iterator_range<ranges_iterator>
getRanges()
override {
61 const Stmt *AllocStmt;
76 assert(Location.isValid());
MemRegion - The root abstract class for all memory regions.
Stmt - This represents one statement.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
llvm::iterator_range< ranges_iterator > getRanges() override
Get the SourceRanges associated with the report.
virtual llvm::iterator_range< ranges_iterator > getRanges()
Get the SourceRanges associated with the report.
const char *const MemoryRefCount
PathDiagnosticLocation getLocation(const SourceManager &SM) const override
Return the "definitive" location of the reported bug.
virtual const char * getDescription() const =0
virtual bool isLeak() const
Dataflow Directional Tag Classes.
RefCountBug(const CheckerBase *checker, StringRef name)
A trivial tuple used to represent a source range.
This class provides an interface through which checkers can create individual bug reports...
This class handles loading and caching of source files into memory.