clang 19.0.0git
|
Public Member Functions | |
DerefSimplePtrArithFixableGadget (const MatchFinder::MatchResult &Result) | |
virtual std::optional< FixItList > | getFixits (const FixitStrategy &s) const final |
virtual const Stmt * | getBaseStmt () const final |
virtual DeclUseList | getClaimedVarUseSites () const final |
Static Public Member Functions | |
static Matcher | matcher () |
Definition at line 1277 of file UnsafeBufferUsage.cpp.
|
inline |
Definition at line 1289 of file UnsafeBufferUsage.cpp.
|
inlinefinalvirtual |
Definition at line 1320 of file UnsafeBufferUsage.cpp.
|
inlinefinalvirtual |
Definition at line 1322 of file UnsafeBufferUsage.cpp.
|
finalvirtual |
Definition at line 1897 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.
|
inlinestatic |
Definition at line 1297 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.