clang-tools 19.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
clang::tidy::bugprone::model::MixableParameterRange Struct Reference

Public Types

using MixVector = SmallVector< Mix, 8 >
 A container for Mixes.
 

Public Member Functions

const ParmVarDecl * getFirstParam () const
 Gets the leftmost parameter of the range.
 
const ParmVarDecl * getLastParam () const
 Gets the rightmost parameter of the range.
 

Public Attributes

std::size_t NumParamsChecked = 0
 The number of parameters iterated to build the instance.
 
MixVector Mixes
 The individual flags and supporting information for the mixes.
 

Detailed Description

Definition at line 526 of file EasilySwappableParametersCheck.cpp.

Member Typedef Documentation

◆ MixVector

A container for Mixes.

Definition at line 528 of file EasilySwappableParametersCheck.cpp.

Member Function Documentation

◆ getFirstParam()

const ParmVarDecl * clang::tidy::bugprone::model::MixableParameterRange::getFirstParam ( ) const
inline

Gets the leftmost parameter of the range.

Definition at line 537 of file EasilySwappableParametersCheck.cpp.

References Mixes.

◆ getLastParam()

const ParmVarDecl * clang::tidy::bugprone::model::MixableParameterRange::getLastParam ( ) const
inline

Gets the rightmost parameter of the range.

Definition at line 544 of file EasilySwappableParametersCheck.cpp.

References Mixes.

Member Data Documentation

◆ Mixes

MixVector clang::tidy::bugprone::model::MixableParameterRange::Mixes

The individual flags and supporting information for the mixes.

Definition at line 534 of file EasilySwappableParametersCheck.cpp.

Referenced by getFirstParam(), getLastParam(), and clang::tidy::bugprone::model::modelMixingRange().

◆ NumParamsChecked

std::size_t clang::tidy::bugprone::model::MixableParameterRange::NumParamsChecked = 0

The number of parameters iterated to build the instance.

Definition at line 531 of file EasilySwappableParametersCheck.cpp.

Referenced by clang::tidy::bugprone::model::modelMixingRange().


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