Home
last modified time | relevance | path

Searched refs:ExprMutationAnalyzer (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp136 ExprMutationAnalyzer *Analyzer, F Finder) { in tryEachMatch()
147 const Stmt *ExprMutationAnalyzer::findMutation(const Expr *Exp) { in findMutation()
152 &ExprMutationAnalyzer::findCastMutation, in findMutation()
159 const Stmt *ExprMutationAnalyzer::findMutation(const Decl *Dec) { in findMutation()
160 return tryEachDeclRef(Dec, &ExprMutationAnalyzer::findMutation); in findMutation()
171 const Stmt *ExprMutationAnalyzer::findMutationMemoized( in findMutationMemoized()
189 const Stmt *ExprMutationAnalyzer::tryEachDeclRef(const Decl *Dec, in tryEachDeclRef()
234 bool ExprMutationAnalyzer::isUnevaluated(const Expr *Exp) { in isUnevaluated()
248 const Stmt *ExprMutationAnalyzer::findExprPointeeMutation( in findExprPointeeMutation()
254 const Stmt *ExprMutationAnalyzer::findDeclPointeeMutation( in findDeclPointeeMutation()
[all …]
H A DCMakeLists.txt20 ExprMutationAnalyzer.cpp
/llvm-project-15.0.7/clang/include/clang/Analysis/Analyses/
H A DExprMutationAnalyzer.h23 class ExprMutationAnalyzer {
25 ExprMutationAnalyzer(const Stmt &Stm, ASTContext &Context) in ExprMutationAnalyzer() function
45 using MutationFinder = const Stmt *(ExprMutationAnalyzer::*)(const Expr *);
91 ExprMutationAnalyzer BodyAnalyzer;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DInfiniteLoopCheck.cpp35 ExprMutationAnalyzer(*ForLoop->getInc(), *Context) in isChanged()
38 ExprMutationAnalyzer(*ForLoop->getBody(), *Context) in isChanged()
41 ExprMutationAnalyzer(*ForLoop->getCond(), *Context).isMutated(Var)); in isChanged()
43 return ExprMutationAnalyzer(*LoopStmt, *Context).isMutated(Var); in isChanged()
180 if (ExprMutationAnalyzer::isUnevaluated(LoopStmt, *LoopStmt, *Result.Context)) in check()
H A DRedundantBranchConditionCheck.cpp35 ExprMutationAnalyzer MutAn(*S, *Context); in isChangedBefore()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DConstCorrectnessCheck.h40 using MutationAnalyzer = std::unique_ptr<ExprMutationAnalyzer>;
H A DConstCorrectnessCheck.cpp207 Analyzer = std::make_unique<ExprMutationAnalyzer>(*LocalScope, *Context); in registerScope()
/llvm-project-15.0.7/llvm/utils/gn/secondary/clang/lib/Analysis/
H A DBUILD.gn26 "ExprMutationAnalyzer.cpp",
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DUseAnyOfAllOfCheck.cpp76 ExprMutationAnalyzer Mutations(*S.getBody(), Context); in isViableLoop()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DForRangeCopyCheck.cpp116 if (!ExprMutationAnalyzer(*ForRange.getBody(), Context).isMutated(&LoopVar) && in handleCopyIsOnlyConstReferenced()
/llvm-project-15.0.7/clang/include/clang/
H A Dmodule.modulemap13 exclude header "Analysis/Analyses/ExprMutationAnalyzer.h"
/llvm-project-15.0.7/clang/unittests/Analysis/
H A DExprMutationAnalyzerTest.cpp57 return ExprMutationAnalyzer(*S, AST->getASTContext()).isMutated(E); in isMutated()
64 ExprMutationAnalyzer Analyzer(*S, AST->getASTContext()); in mutatedBy()
/llvm-project-15.0.7/clang/docs/tools/
H A Dclang-formatted-files.txt125 clang/include/clang/Analysis/Analyses/ExprMutationAnalyzer.h