clang 20.0.0git
|
Public Member Functions | |
DerefSimplePtrArithFixableGadget (const MatchFinder::MatchResult &Result) | |
virtual std::optional< FixItList > | getFixits (const FixitStrategy &s) const final |
SourceLocation | getSourceLoc () const override |
virtual DeclUseList | getClaimedVarUseSites () const final |
Static Public Member Functions | |
static Matcher | matcher () |
Definition at line 1343 of file UnsafeBufferUsage.cpp.
|
inline |
Definition at line 1355 of file UnsafeBufferUsage.cpp.
|
inlinefinalvirtual |
Definition at line 1388 of file UnsafeBufferUsage.cpp.
|
finalvirtual |
Definition at line 1963 of file UnsafeBufferUsage.cpp.
References clang::FixItHint::CreateRemoval(), clang::FixItHint::CreateReplacement(), clang::Decl::getASTContext(), clang::Stmt::getBeginLoc(), clang::CharSourceRange::getCharRange(), clang::DeclRefExpr::getDecl(), clang::Expr::getIntegerConstantExpr(), clang::ASTContext::getLangOpts(), clang::BinaryOperator::getLHS(), clang::UnaryOperator::getOperatorLoc(), getPastLoc(), clang::BinaryOperator::getRHS(), clang::ASTContext::getSourceManager(), s, and SM.
|
inlineoverride |
Definition at line 1384 of file UnsafeBufferUsage.cpp.
References clang::UnaryOperator::getBeginLoc().
|
inlinestatic |
Definition at line 1363 of file UnsafeBufferUsage.cpp.
References clang::ast_matchers::anyOf, clang::ast_matchers::binaryOperator, clang::ast_matchers::declRefExpr, clang::ast_matchers::expr, clang::ast_matchers::hasPointerType(), clang::ast_matchers::integerLiteral, clang::ast_matchers::isInUnspecifiedLvalueContext(), and clang::ast_matchers::unaryOperator.