clang
3.9.0
|
#include <BugReporter.h>
Public Member Functions | |
GRBugReporter (BugReporterData &d, ExprEngine &eng) | |
~GRBugReporter () override | |
ExprEngine & | getEngine () |
getEngine - Return the analysis engine used to analyze a given function or method. More... | |
ExplodedGraph & | getGraph () |
getGraph - Get the exploded graph created by the analysis engine for the analyzed method or function. More... | |
ProgramStateManager & | getStateManager () |
getStateManager - Return the state manager used by the analysis engine. More... | |
bool | generatePathDiagnostic (PathDiagnostic &PD, PathDiagnosticConsumer &PC, ArrayRef< BugReport * > &bugReports) override |
Generates a path corresponding to one of the given bug reports. More... | |
![]() | |
BugReporter (BugReporterData &d) | |
virtual | ~BugReporter () |
void | FlushReports () |
Generate and flush diagnostics for all bug reports. More... | |
Kind | getKind () const |
DiagnosticsEngine & | getDiagnostic () |
ArrayRef < PathDiagnosticConsumer * > | getPathDiagnosticConsumers () |
iterator | begin () |
iterator | end () |
EQClasses_iterator | EQClasses_begin () |
EQClasses_iterator | EQClasses_end () |
ASTContext & | getContext () |
SourceManager & | getSourceManager () |
AnalyzerOptions & | getAnalyzerOptions () |
bool | RemoveUnneededCalls (PathPieces &pieces, BugReport *R) |
void | Register (BugType *BT) |
void | emitReport (std::unique_ptr< BugReport > R) |
Add the given report to the set of reports tracked by BugReporter. More... | |
void | EmitBasicReport (const Decl *DeclWithIssue, const CheckerBase *Checker, StringRef BugName, StringRef BugCategory, StringRef BugStr, PathDiagnosticLocation Loc, ArrayRef< SourceRange > Ranges=None) |
void | EmitBasicReport (const Decl *DeclWithIssue, CheckName CheckName, StringRef BugName, StringRef BugCategory, StringRef BugStr, PathDiagnosticLocation Loc, ArrayRef< SourceRange > Ranges=None) |
Static Public Member Functions | |
static bool | classof (const BugReporter *R) |
classof - Used by isa<>, cast<>, and dyn_cast<>. More... | |
Additional Inherited Members | |
![]() | |
enum | Kind { BaseBRKind, GRBugReporterKind } |
typedef BugTypesTy::iterator | iterator |
Iterator over the set of BugTypes tracked by the BugReporter. More... | |
typedef llvm::FoldingSet < BugReportEquivClass > ::iterator | EQClasses_iterator |
Iterator over the set of BugReports tracked by the BugReporter. More... | |
![]() | |
BugReporter (BugReporterData &d, Kind k) | |
Definition at line 489 of file BugReporter.h.
|
inline |
Definition at line 492 of file BugReporter.h.
|
override |
Definition at line 2734 of file BugReporter.cpp.
|
inlinestatic |
classof - Used by isa<>, cast<>, and dyn_cast<>.
Definition at line 521 of file BugReporter.h.
References clang::ento::BugReporter::getKind(), and clang::ento::BugReporter::GRBugReporterKind.
|
overridevirtual |
Generates a path corresponding to one of the given bug reports.
Which report is used for path generation is not specified. The bug reporter will try to pick the shortest path, but this is not guaranteed.
Reimplemented from clang::ento::BugReporter.
Definition at line 3054 of file BugReporter.cpp.
References adjustCallLocations(), clang::ento::PathDiagnosticConsumer::AlternateExtensive, dropFunctionEntryEdge(), E, clang::ento::PathDiagnosticConsumer::Extensive, GenerateAlternateExtensivePathDiagnostic(), GenerateExtensivePathDiagnostic(), GenerateMinimalPathDiagnostic(), GenerateVisitorsOnlyPathDiagnostic(), clang::AnalyzerOptions::getBooleanOption(), clang::ento::BugReporterVisitor::getDefaultEndPath(), clang::ento::PathDiagnosticConsumer::getGenerationScheme(), clang::ento::PathDiagnostic::getMutablePieces(), I, clang::ento::PathDiagnosticConsumer::Minimal, clang::ento::PathDiagnosticConsumer::None, optimizeEdges(), clang::ento::PathDiagnostic::path, removeEdgesToDefaultInitializers(), removePiecesWithInvalidLocations(), removeRedundantMsgs(), removeUnneededCalls(), clang::ento::PathDiagnostic::resetPath(), clang::ento::PathDiagnostic::setEndOfPath(), and SM.
|
inline |
getEngine - Return the analysis engine used to analyze a given function or method.
Definition at line 499 of file BugReporter.h.
Referenced by clang::ento::LikelyFalsePositiveSuppressionBRVisitor::getEndPath().
ExplodedGraph & GRBugReporter::getGraph | ( | ) |
getGraph - Get the exploded graph created by the analysis engine for the analyzed method or function.
Definition at line 2737 of file BugReporter.cpp.
Referenced by clang::ento::BugReporterContext::getGraph().
ProgramStateManager & GRBugReporter::getStateManager | ( | ) |
getStateManager - Return the state manager used by the analysis engine.
Definition at line 2740 of file BugReporter.cpp.
Referenced by clang::ento::BugReporterContext::getStateManager().