clang-tools 22.0.0git
clang::tidy::bugprone::filter::SimilarlyUsedParameterPairSuppressor Class Reference

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.

Detailed Description

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 1775 of file EasilySwappableParametersCheck.cpp.

Constructor & Destructor Documentation

◆ SimilarlyUsedParameterPairSuppressor()

clang::tidy::bugprone::filter::SimilarlyUsedParameterPairSuppressor::SimilarlyUsedParameterPairSuppressor ( const FunctionDecl * FD,
bool Enable )
inline

Definition at line 1783 of file EasilySwappableParametersCheck.cpp.

Member Function Documentation

◆ operator()()

bool clang::tidy::bugprone::filter::SimilarlyUsedParameterPairSuppressor::operator() ( const ParmVarDecl * Param1,
const ParmVarDecl * Param2 ) const
inline

Returns whether the specified two parameters are deemed similarly used or related by the heuristics.

Definition at line 1796 of file EasilySwappableParametersCheck.cpp.


The documentation for this class was generated from the following file: