clang-tools  7.0.0
Public Member Functions | List of all members
clang::tidy::utils::ExprMutationAnalyzer Class Reference

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

#include <ExprMutationAnalyzer.h>

Public Member Functions

 ExprMutationAnalyzer (const Stmt *Stm, ASTContext *Context)
 
bool isMutated (const Decl *Dec)
 
bool isMutated (const Expr *Exp)
 
const Stmt * findMutation (const Expr *Exp)
 

Detailed Description

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

Definition at line 24 of file ExprMutationAnalyzer.h.

Constructor & Destructor Documentation

◆ ExprMutationAnalyzer()

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

Definition at line 26 of file ExprMutationAnalyzer.h.

Member Function Documentation

◆ findMutation()

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

Definition at line 56 of file ExprMutationAnalyzer.cpp.

References Results.

Referenced by isMutated().

◆ isMutated() [1/2]

bool clang::tidy::utils::ExprMutationAnalyzer::isMutated ( const Decl *  Dec)
inline

Definition at line 29 of file ExprMutationAnalyzer.h.

◆ isMutated() [2/2]

bool clang::tidy::utils::ExprMutationAnalyzer::isMutated ( const Expr *  Exp)
inline

Definition at line 30 of file ExprMutationAnalyzer.h.

References findMutation().


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