clang 20.0.0git
|
#include "clang/StaticAnalyzer/Core/BugReporter/BugSuppression.h"
Public Types | |
using | DiagnosticIdentifierList = llvm::ArrayRef< llvm::StringRef > |
Public Member Functions | |
BugSuppression (const ASTContext &ACtx) | |
bool | isSuppressed (const BugReport &) |
Return true if the given bug report was explicitly suppressed by the user. | |
bool | isSuppressed (const PathDiagnosticLocation &Location, const Decl *DeclWithIssue, DiagnosticIdentifierList DiagnosticIdentification) |
Return true if the bug reported at the given location was explicitly suppressed by the user. | |
Definition at line 29 of file BugSuppression.h.
using clang::ento::BugSuppression::DiagnosticIdentifierList = llvm::ArrayRef<llvm::StringRef> |
Definition at line 33 of file BugSuppression.h.
|
inlineexplicit |
Definition at line 31 of file BugSuppression.h.
Return true if the given bug report was explicitly suppressed by the user.
Definition at line 129 of file BugSuppression.cpp.
References clang::ento::BugReport::getDeclWithIssue(), clang::ento::BugReport::getLocation(), clang::ento::BugReport::getUniqueingLocation(), and isSuppressed().
Referenced by clang::ento::BugReporter::emitReport(), and isSuppressed().
bool BugSuppression::isSuppressed | ( | const PathDiagnosticLocation & | Location, |
const Decl * | DeclWithIssue, | ||
DiagnosticIdentifierList | DiagnosticIdentification | ||
) |
Return true if the bug reported at the given location was explicitly suppressed by the user.
Definition at line 138 of file BugSuppression.cpp.
References clang::ento::PathDiagnosticLocation::asRange(), clang::Decl::getLexicalDeclContext(), clang::ento::PathDiagnosticLocation::getManager(), clang::ASTContext::getTranslationUnitDecl(), clang::ento::PathDiagnosticLocation::isValid(), Parent, and SM.