clang-tools 19.0.0git
Public Member Functions | List of all members
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 1755 of file EasilySwappableParametersCheck.cpp.

Constructor & Destructor Documentation

◆ SimilarlyUsedParameterPairSuppressor()

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

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

References Enabled.


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