clang-tools 19.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
clang::tidy::modernize::Usage Struct Reference

The information needed to describe a valid convertible usage of an array index or iterator. More...

#include <LoopConvertUtils.h>

Public Types

enum  UsageKind { UK_Default , UK_MemberThroughArrow , UK_CaptureByCopy , UK_CaptureByRef }
 

Public Member Functions

 Usage (const Expr *E)
 
 Usage (const Expr *E, UsageKind Kind, SourceRange Range)
 

Public Attributes

const Expr * Expression
 
UsageKind Kind
 
SourceRange Range
 

Detailed Description

The information needed to describe a valid convertible usage of an array index or iterator.

Definition at line 208 of file LoopConvertUtils.h.

Member Enumeration Documentation

◆ UsageKind

Enumerator
UK_Default 
UK_MemberThroughArrow 
UK_CaptureByCopy 
UK_CaptureByRef 

Definition at line 209 of file LoopConvertUtils.h.

Constructor & Destructor Documentation

◆ Usage() [1/2]

clang::tidy::modernize::Usage::Usage ( const Expr *  E)
inlineexplicit

Definition at line 238 of file LoopConvertUtils.h.

◆ Usage() [2/2]

clang::tidy::modernize::Usage::Usage ( const Expr *  E,
UsageKind  Kind,
SourceRange  Range 
)
inline

Definition at line 240 of file LoopConvertUtils.h.

Member Data Documentation

◆ Expression

const Expr* clang::tidy::modernize::Usage::Expression

Definition at line 231 of file LoopConvertUtils.h.

◆ Kind

UsageKind clang::tidy::modernize::Usage::Kind

Definition at line 233 of file LoopConvertUtils.h.

◆ Range

SourceRange clang::tidy::modernize::Usage::Range

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