clang
15.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 159 of file ExprMutationAnalyzer.cpp.
References findMutation().
Definition at line 147 of file ExprMutationAnalyzer.cpp.
Referenced by findMutation(), and isMutated().
Definition at line 167 of file ExprMutationAnalyzer.cpp.
References findPointeeMutation().
Definition at line 163 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 202 of file ExprMutationAnalyzer.cpp.
References clang::ast_matchers::anyOf, clang::ast_matchers::cxxNoexceptExpr, clang::ast_matchers::expr, clang::ast_matchers::findAll(), 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.