clang 20.0.0git
Public Types | Public Member Functions | Protected Member Functions | List of all members
clang::ento::BugReporter Class Reference

BugReporter is a utility class for generating PathDiagnostics for analysis. More...

#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"

Inheritance diagram for clang::ento::BugReporter:
Inheritance graph
[legend]

Public Types

using EQClasses_iterator = llvm::FoldingSet< BugReportEquivClass >::iterator
 Iterator over the set of BugReports tracked by the BugReporter.
 

Public Member Functions

 BugReporter (BugReporterData &d)
 
virtual ~BugReporter ()
 
void FlushReports ()
 Generate and flush diagnostics for all bug reports.
 
ArrayRef< PathDiagnosticConsumer * > getPathDiagnosticConsumers ()
 
llvm::iterator_range< EQClasses_iteratorequivalenceClasses ()
 
ASTContextgetContext ()
 
const SourceManagergetSourceManager ()
 
const AnalyzerOptionsgetAnalyzerOptions ()
 
PreprocessorgetPreprocessor ()
 
const DeclgetAnalysisEntryPoint () const
 Get the top-level entry point for the issue to be reported.
 
void setAnalysisEntryPoint (const Decl *EntryPoint)
 
virtual void emitReport (std::unique_ptr< BugReport > R)
 Add the given report to the set of reports tracked by BugReporter.
 
void EmitBasicReport (const Decl *DeclWithIssue, const CheckerBase *Checker, StringRef BugName, StringRef BugCategory, StringRef BugStr, PathDiagnosticLocation Loc, ArrayRef< SourceRange > Ranges={},