25class UndefinedArraySubscriptChecker
26 :
public Checker< check::PreStmt<ArraySubscriptExpr> > {
27 const BugType BT{
this,
"Array subscript is undefined"};
38 if (!
C.getSVal(Index).isUndef())
43 const Decl *
D =
C.getLocationContext()->getDecl();
45 if (Ctor->isDefaulted())
52 auto R = std::make_unique<PathSensitiveBugReport>(BT, BT.getDescription(), N);
55 C.emitReport(std::move(R));
58void ento::registerUndefinedArraySubscriptChecker(
CheckerManager &mgr) {
62bool ento::shouldRegisterUndefinedArraySubscriptChecker(
const CheckerManager &mgr) {
Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate....
ArraySubscriptExpr - [C99 6.5.2.1] Array Subscripting.
Represents a C++ constructor within a class.
Decl - This represents one declaration (or definition), e.g.
This represents one expression.
SourceRange getSourceRange() const LLVM_READONLY
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpre...
CHECKER * registerChecker(AT &&... Args)
Used to register checkers.
bool trackExpressionValue(const ExplodedNode *N, const Expr *E, PathSensitiveBugReport &R, TrackingOptions Opts={})
Attempts to add visitors to track expression value back to its point of origin.
The JSON file list parser is used to communicate input to InstallAPI.