clang-tools 20.0.0git
|
Helper class that is used to detect if two parameters of the same function are used in a similar fashion, to suppress the result. More...
Public Member Functions | |
SimilarlyUsedParameterPairSuppressor (const FunctionDecl *FD, bool Enable) | |
bool | operator() (const ParmVarDecl *Param1, const ParmVarDecl *Param2) const |
Returns whether the specified two parameters are deemed similarly used or related by the heuristics. | |
Helper class that is used to detect if two parameters of the same function are used in a similar fashion, to suppress the result.
Definition at line 1756 of file EasilySwappableParametersCheck.cpp.
|
inline |
Definition at line 1764 of file EasilySwappableParametersCheck.cpp.
References Enabled, clang::tidy::bugprone::filter::relatedness_heuristic::AppearsInSameExpr::setup(), clang::tidy::bugprone::filter::relatedness_heuristic::PassedToSameFunction::setup(), clang::tidy::bugprone::filter::relatedness_heuristic::AccessedSameMemberOf::setup(), and clang::tidy::bugprone::filter::relatedness_heuristic::Returned::setup().
|
inline |
Returns whether the specified two parameters are deemed similarly used or related by the heuristics.
Definition at line 1777 of file EasilySwappableParametersCheck.cpp.
References Enabled.