PathDiagnostic - PathDiagnostic objects represent a single path-sensitive diagnostic.
More...
#include "clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h"
|
| PathDiagnostic ()=delete |
|
| PathDiagnostic (StringRef CheckName, const Decl *DeclWithIssue, StringRef bugtype, StringRef verboseDesc, StringRef shortDesc, StringRef category, PathDiagnosticLocation LocationToUnique, const Decl *DeclToUnique, std::unique_ptr< FilesToLineNumsMap > ExecutedLines) |
|
| ~PathDiagnostic () |
|
PathPieces & | getActivePath () |
| Return the path currently used by builders for constructing the PathDiagnostic. More...
|
|
PathPieces & | getMutablePieces () |
| Return a mutable version of 'path'. More...
|
|
unsigned | full_size () |
| Return the unrolled size of the path. More...
|
|
void | pushActivePath (PathPieces *p) |
|
void | popActivePath () |
|
bool | isWithinCall () const |
|
void | setEndOfPath (std::shared_ptr< PathDiagnosticPiece > EndPiece) |
|
void | appendToDesc (StringRef S) |
|
void | resetDiagnosticLocationToMainFile () |
| If the last piece of the report point to the header file, resets the location of the report to be the last location in the main source file. More...
|
|
StringRef | getVerboseDescription () const |
|
StringRef | getShortDescription () const |
|
StringRef | getCheckName () const |
|
StringRef | getBugType () const |
|
StringRef | getCategory () const |
|
const Decl * | getDeclWithIssue () const |
| Return the semantic context where an issue occurred. More...
|
|
meta_iterator | meta_begin () const |
|
meta_iterator | meta_end () const |
|
void | addMeta (StringRef s) |
|
const FilesToLineNumsMap & | getExecutedLines () const |
|
FilesToLineNumsMap & | getExecutedLines () |
|
PathDiagnosticLocation | getLocation () const |
|
PathDiagnosticLocation | getUniqueingLoc () const |
| Get the location on which the report should be uniqued. More...
|
|
const Decl * | getUniqueingDecl () const |
| Get the declaration containing the uniqueing location. More...
|
|
void | flattenLocations () |
|
void | Profile (llvm::FoldingSetNodeID &ID) const |
| Profiles the diagnostic, independent of the path it references. More...
|
|
void | FullProfile (llvm::FoldingSetNodeID &ID) const |
| Profiles the diagnostic, including its path. More...
|
|
PathDiagnostic - PathDiagnostic objects represent a single path-sensitive diagnostic.
It represents an ordered-collection of PathDiagnosticPieces, each which represent the pieces of the path.
Definition at line 767 of file PathDiagnostic.h.
◆ meta_iterator
◆ PathDiagnostic() [1/2]
clang::ento::PathDiagnostic::PathDiagnostic |
( |
| ) |
|
|
delete |
◆ PathDiagnostic() [2/2]
clang::ento::PathDiagnostic::PathDiagnostic |
( |
StringRef |
CheckName, |
|
|
const Decl * |
DeclWithIssue, |
|
|
StringRef |
bugtype, |
|
|
StringRef |
verboseDesc, |
|
|
StringRef |
shortDesc, |
|
|
StringRef |
category, |
|
|
PathDiagnosticLocation |
LocationToUnique, |
|
|
const Decl * |
DeclToUnique, |
|
|
std::unique_ptr< FilesToLineNumsMap > |
ExecutedLines |
|
) |
| |
◆ ~PathDiagnostic()
PathDiagnostic::~PathDiagnostic |
( |
| ) |
|
|
default |
◆ addMeta()
void clang::ento::PathDiagnostic::addMeta |
( |
StringRef |
s | ) |
|
|
inline |
◆ appendToDesc()
void clang::ento::PathDiagnostic::appendToDesc |
( |
StringRef |
S | ) |
|
|
inline |
◆ flattenLocations()
void clang::ento::PathDiagnostic::flattenLocations |
( |
| ) |
|
|
inline |
◆ full_size()
unsigned PathDiagnostic::full_size |
( |
| ) |
|
◆ FullProfile()
void PathDiagnostic::FullProfile |
( |
llvm::FoldingSetNodeID & |
ID | ) |
const |
◆ getActivePath()
PathPieces& clang::ento::PathDiagnostic::getActivePath |
( |
| ) |
|
|
inline |
◆ getBugType()
StringRef clang::ento::PathDiagnostic::getBugType |
( |
| ) |
const |
|
inline |
◆ getCategory()
StringRef clang::ento::PathDiagnostic::getCategory |
( |
| ) |
const |
|
inline |
◆ getCheckName()
StringRef clang::ento::PathDiagnostic::getCheckName |
( |
| ) |
const |
|
inline |
◆ getDeclWithIssue()
const Decl* clang::ento::PathDiagnostic::getDeclWithIssue |
( |
| ) |
const |
|
inline |
Return the semantic context where an issue occurred.
If the issue occurs along a path, this represents the "central" area where the bug manifests.
Definition at line 853 of file PathDiagnostic.h.
◆ getExecutedLines() [1/2]
◆ getExecutedLines() [2/2]
◆ getLocation()
◆ getMutablePieces()
PathPieces& clang::ento::PathDiagnostic::getMutablePieces |
( |
| ) |
|
|
inline |
◆ getShortDescription()
StringRef clang::ento::PathDiagnostic::getShortDescription |
( |
| ) |
const |
|
inline |
◆ getUniqueingDecl()
const Decl* clang::ento::PathDiagnostic::getUniqueingDecl |
( |
| ) |
const |
|
inline |
Get the declaration containing the uniqueing location.
Definition at line 879 of file PathDiagnostic.h.
◆ getUniqueingLoc()
Get the location on which the report should be uniqued.
Definition at line 874 of file PathDiagnostic.h.
◆ getVerboseDescription()
StringRef clang::ento::PathDiagnostic::getVerboseDescription |
( |
| ) |
const |
|
inline |
◆ isWithinCall()
bool clang::ento::PathDiagnostic::isWithinCall |
( |
| ) |
const |
|
inline |
◆ meta_begin()
◆ meta_end()
◆ popActivePath()
void clang::ento::PathDiagnostic::popActivePath |
( |
| ) |
|
|
inline |
◆ Profile()
void PathDiagnostic::Profile |
( |
llvm::FoldingSetNodeID & |
ID | ) |
const |
◆ pushActivePath()
void clang::ento::PathDiagnostic::pushActivePath |
( |
PathPieces * |
p | ) |
|
|
inline |
◆ resetDiagnosticLocationToMainFile()
void PathDiagnostic::resetDiagnosticLocationToMainFile |
( |
| ) |
|
◆ setEndOfPath()
void clang::ento::PathDiagnostic::setEndOfPath |
( |
std::shared_ptr< PathDiagnosticPiece > |
EndPiece | ) |
|
|
inline |
◆ path
const PathPieces& clang::ento::PathDiagnostic::path |
The documentation for this class was generated from the following files: