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

Implements the heuristic that marks two parameters related if different ReturnStmts return them from the function. 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 different ReturnStmts return them from the function.

Definition at line 1722 of file EasilySwappableParametersCheck.cpp.

Member Function Documentation

◆ operator()()

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

Definition at line 1745 of file EasilySwappableParametersCheck.cpp.

◆ setup()

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

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