clang-tools 17.0.0git
|
Implements the heuristic that marks two parameters related if there are two separate calls to the same function (overload) and the parameters are passed to the same index in both calls, i.e f(a, b) and f(a, c) passes b and c to the same index (2) of f(), marking them related. More...
Public Member Functions | |
void | setup (const FunctionDecl *FD) |
bool | operator() (const ParmVarDecl *Param1, const ParmVarDecl *Param2) const |
Implements the heuristic that marks two parameters related if there are two separate calls to the same function (overload) and the parameters are passed to the same index in both calls, i.e f(a, b) and f(a, c) passes b and c to the same index (2) of f(), marking them related.
Definition at line 1656 of file EasilySwappableParametersCheck.cpp.
|
inline |
Definition at line 1689 of file EasilySwappableParametersCheck.cpp.
References clang::tidy::bugprone::filter::relatedness_heuristic::lazyMapOfSetsIntersectionExists().
|
inline |
Definition at line 1660 of file EasilySwappableParametersCheck.cpp.
References CE.
Referenced by clang::tidy::bugprone::filter::SimilarlyUsedParameterPairSuppressor::SimilarlyUsedParameterPairSuppressor().