clang-tools 22.0.0git
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.

References Expression, Kind, Range, and UK_Default.

◆ Usage() [2/2]

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

Definition at line 240 of file LoopConvertUtils.h.

References Expression, Kind, and Range.

Member Data Documentation

◆ Expression

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

Definition at line 231 of file LoopConvertUtils.h.

Referenced by Usage(), and Usage().

◆ Kind

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

Definition at line 233 of file LoopConvertUtils.h.

Referenced by Usage(), and Usage().

◆ Range

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

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