clang-tools 20.0.0git
Public Member Functions | Public Attributes | List of all members
clang::tidy::bugprone::model::Mix Struct Reference

A named tuple that contains the information for a mix between two concrete parameters. More...

Public Member Functions

 Mix (const ParmVarDecl *F, const ParmVarDecl *S, MixData Data)
 
void sanitize ()
 
MixFlags flags () const
 
bool flagsValid () const
 
bool mixable () const
 
QualType commonUnderlyingType () const
 
const ConversionSequenceleftToRightConversionSequence () const
 
const ConversionSequencerightToLeftConversionSequence () const
 

Public Attributes

const ParmVarDecl * First
 
const ParmVarDecl * Second
 
MixData Data
 

Detailed Description

A named tuple that contains the information for a mix between two concrete parameters.

Definition at line 500 of file EasilySwappableParametersCheck.cpp.

Constructor & Destructor Documentation

◆ Mix()

clang::tidy::bugprone::model::Mix::Mix ( const ParmVarDecl *  F,
const ParmVarDecl *  S,
MixData  Data 
)
inline

Definition at line 504 of file EasilySwappableParametersCheck.cpp.

Member Function Documentation

◆ commonUnderlyingType()

QualType clang::tidy::bugprone::model::Mix::commonUnderlyingType ( ) const
inline

◆ flags()

MixFlags clang::tidy::bugprone::model::Mix::flags ( ) const
inline

◆ flagsValid()

bool clang::tidy::bugprone::model::Mix::flagsValid ( ) const
inline

◆ leftToRightConversionSequence()

const ConversionSequence & clang::tidy::bugprone::model::Mix::leftToRightConversionSequence ( ) const
inline

◆ mixable()

bool clang::tidy::bugprone::model::Mix::mixable ( ) const
inline

◆ rightToLeftConversionSequence()

const ConversionSequence & clang::tidy::bugprone::model::Mix::rightToLeftConversionSequence ( ) const
inline

◆ sanitize()

void clang::tidy::bugprone::model::Mix::sanitize ( )
inline

Member Data Documentation

◆ Data

MixData clang::tidy::bugprone::model::Mix::Data

◆ First

const ParmVarDecl* clang::tidy::bugprone::model::Mix::First

Definition at line 501 of file EasilySwappableParametersCheck.cpp.

◆ Second

const ParmVarDecl * clang::tidy::bugprone::model::Mix::Second

Definition at line 501 of file EasilySwappableParametersCheck.cpp.


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