clang 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::ExprMutationAnalyzer Class Reference

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 StmtfindMutation (const Expr *Exp)
 
const StmtfindMutation (const Decl *Dec)
 
bool isPointeeMutated (const Expr *Exp)
 
bool isPointeeMutated (const Decl *Dec)
 
const StmtfindPointeeMutation (const Expr *Exp)
 
const StmtfindPointeeMutation (const Decl *Dec)
 

Static Public Member Functions

static bool isUnevaluated (const Stmt *Smt, const Stmt &Stm, ASTContext &Context)
 

Detailed Description

Analyzes whether any mutative operations are applied to an expression within a given statement.

Definition at line 23 of file ExprMutationAnalyzer.h.

Constructor & Destructor Documentation

◆ ExprMutationAnalyzer()

clang::ExprMutationAnalyzer::ExprMutationAnalyzer ( const Stmt Stm,
ASTContext Context 
)
inline

Definition at line 25 of file ExprMutationAnalyzer.h.

Member Function Documentation

◆ findMutation() [1/2]

const Stmt * clang::ExprMutationAnalyzer::findMutation ( const Decl Dec)

Definition at line 214 of file ExprMutationAnalyzer.cpp.

References findMutation().

◆ findMutation() [2/2]

const Stmt * clang::ExprMutationAnalyzer::findMutation ( const Expr Exp)

◆ findPointeeMutation() [1/2]

const Stmt * clang::ExprMutationAnalyzer::findPointeeMutation ( const Decl Dec)

Definition at line 222 of file ExprMutationAnalyzer.cpp.

References findPointeeMutation().

◆ findPointeeMutation() [2/2]

const Stmt * clang::ExprMutationAnalyzer::findPointeeMutation ( const Expr Exp)

Definition at line 218 of file ExprMutationAnalyzer.cpp.

Referenced by findPointeeMutation(), and isPointeeMutated().

◆ isMutated() [1/2]

bool clang::ExprMutationAnalyzer::isMutated ( const Decl Dec)
inline

Definition at line 29 of file ExprMutationAnalyzer.h.

References findMutation().

◆ isMutated() [2/2]

bool clang::ExprMutationAnalyzer::isMutated ( const Expr Exp)
inline

Definition at line 28 of file ExprMutationAnalyzer.h.

References findMutation().

◆ isPointeeMutated() [1/2]

bool clang::ExprMutationAnalyzer::isPointeeMutated ( const Decl Dec)
inline

Definition at line 36 of file ExprMutationAnalyzer.h.

References findPointeeMutation().

◆ isPointeeMutated() [2/2]

bool clang::ExprMutationAnalyzer::isPointeeMutated ( const Expr Exp)
inline

Definition at line 33 of file ExprMutationAnalyzer.h.

References findPointeeMutation().

◆ isUnevaluated()

bool clang::ExprMutationAnalyzer::isUnevaluated ( const Stmt Smt,
const Stmt Stm,
ASTContext Context 
)
static

The documentation for this class was generated from the following files: