clang-tools 20.0.0git
|
Implements the heuristic that marks two parameters related if there is a usage for both in the same strict expression subtree. More...
Public Member Functions | |
void | setup (const FunctionDecl *FD) |
bool | operator() (const ParmVarDecl *Param1, const ParmVarDecl *Param2) const |
bool | TraverseDecl (Decl *D) |
bool | TraverseStmt (Stmt *S, DataRecursionQueue *Queue=nullptr) |
bool | VisitDeclRefExpr (DeclRefExpr *DRE) |
Implements the heuristic that marks two parameters related if there is a usage for both in the same strict expression subtree.
A strict expression subtree is a tree which only includes Expr nodes, i.e. no Stmts and no Decls.
Definition at line 1595 of file EasilySwappableParametersCheck.cpp.
|
inline |
Definition at line 1610 of file EasilySwappableParametersCheck.cpp.
References clang::tidy::bugprone::filter::relatedness_heuristic::lazyMapOfSetsIntersectionExists().
|
inline |
Definition at line 1605 of file EasilySwappableParametersCheck.cpp.
Referenced by clang::tidy::bugprone::filter::SimilarlyUsedParameterPairSuppressor::SimilarlyUsedParameterPairSuppressor().
|
inline |
Definition at line 1615 of file EasilySwappableParametersCheck.cpp.
|
inline |
Definition at line 1620 of file EasilySwappableParametersCheck.cpp.
References E.
|
inline |
Definition at line 1641 of file EasilySwappableParametersCheck.cpp.