clang-tools 20.0.0git
Public Member Functions | List of all members
clang::tidy::bugprone::filter::relatedness_heuristic::AccessedSameMemberOf Class Reference

Implements the heuristic that marks two parameters related if the same member is accessed (referred to) inside the current function's body. More...

Public Member Functions

void setup (const FunctionDecl *FD)
 
bool operator() (const ParmVarDecl *Param1, const ParmVarDecl *Param2) const
 

Detailed Description

Implements the heuristic that marks two parameters related if the same member is accessed (referred to) inside the current function's body.

Definition at line 1697 of file EasilySwappableParametersCheck.cpp.

Member Function Documentation

◆ operator()()

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

◆ setup()

void clang::tidy::bugprone::filter::relatedness_heuristic::AccessedSameMemberOf::setup ( const FunctionDecl *  FD)
inline

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