clang 20.0.0git
|
BugReporter is a utility class for generating PathDiagnostics for analysis. More...
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
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_iterator > | equivalenceClasses () |
ASTContext & | getContext () |
const SourceManager & | getSourceManager () |
const AnalyzerOptions & | getAnalyzerOptions () |
Preprocessor & | getPreprocessor () |
const Decl * | getAnalysisEntryPoint () 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={}, |