clang-tools 18.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 1594 of file EasilySwappableParametersCheck.cpp.
|
inline |
Definition at line 1609 of file EasilySwappableParametersCheck.cpp.
References clang::tidy::bugprone::filter::relatedness_heuristic::lazyMapOfSetsIntersectionExists().
|
inline |
Definition at line 1604 of file EasilySwappableParametersCheck.cpp.
Referenced by clang::tidy::bugprone::filter::SimilarlyUsedParameterPairSuppressor::SimilarlyUsedParameterPairSuppressor().
|
inline |
Definition at line 1614 of file EasilySwappableParametersCheck.cpp.
|
inline |
Definition at line 1619 of file EasilySwappableParametersCheck.cpp.
References E.
|
inline |
Definition at line 1640 of file EasilySwappableParametersCheck.cpp.