clang 19.0.0git
|
Analyzes whether any mutative operations are applied to an expression within a given statement. More...
#include "clang/Analysis/Analyses/ExprMutationAnalyzer.h"
Public Member Functions | |
ExprMutationAnalyzer (const Stmt &Stm, ASTContext &Context) | |
bool | isMutated (const Expr *Exp) |
bool | isMutated (const Decl *Dec) |
const Stmt * | findMutation (const Expr *Exp) |
const Stmt * | findMutation (const Decl *Dec) |
bool | isPointeeMutated (const Expr *Exp) |
bool | isPointeeMutated (const Decl *Dec) |
const Stmt * | findPointeeMutation (const Expr *Exp) |
const Stmt * | findPointeeMutation (const Decl *Dec) |
Static Public Member Functions | |
static bool | isUnevaluated (const Stmt *Smt, const Stmt &Stm, ASTContext &Context) |
Analyzes whether any mutative operations are applied to an expression within a given statement.
Definition at line 23 of file ExprMutationAnalyzer.h.
|
inline |
Definition at line 25 of file ExprMutationAnalyzer.h.
Definition at line 214 of file ExprMutationAnalyzer.cpp.
References findMutation().
Definition at line 202 of file ExprMutationAnalyzer.cpp.
Referenced by findMutation(), clang::FunctionParmMutationAnalyzer::findMutation(), clang::FunctionParmMutationAnalyzer::FunctionParmMutationAnalyzer(), and isMutated().
Definition at line 222 of file ExprMutationAnalyzer.cpp.
References findPointeeMutation().
Definition at line 218 of file ExprMutationAnalyzer.cpp.
Referenced by findPointeeMutation(), and isPointeeMutated().
Definition at line 29 of file ExprMutationAnalyzer.h.
References findMutation().
Definition at line 28 of file ExprMutationAnalyzer.h.
References findMutation().
Definition at line 36 of file ExprMutationAnalyzer.h.
References findPointeeMutation().
Definition at line 33 of file ExprMutationAnalyzer.h.
References findPointeeMutation().
|
static |
Definition at line 264 of file ExprMutationAnalyzer.cpp.
References clang::ast_matchers::anyOf, clang::ast_matchers::cxxNoexceptExpr, clang::ast_matchers::expr, clang::ast_matchers::genericSelectionExpr, clang::ast_matchers::hasAncestor, clang::ast_matchers::hasDescendant, clang::ast_matchers::match(), clang::ast_matchers::sizeOfExpr(), clang::ast_matchers::stmt, clang::ast_matchers::typeLoc, clang::ast_matchers::unaryExprOrTypeTraitExpr, clang::ast_matchers::unless, and clang::ast_matchers::variableArrayType.