LLVM 22.0.0git
llvm::yaml::SequenceTraits< ArrayRef< T > > Struct Template Reference

ArrayRef is not really compatible with the YAMLTraits. More...

Inheritance diagram for llvm::yaml::SequenceTraits< ArrayRef< T > >:
[legend]

Static Public Member Functions

static size_t size (IO &io, ArrayRef< T > &seq)
static Argumentelement (IO &io, ArrayRef< T > &seq, size_t index)

Detailed Description

template<typename T>
struct llvm::yaml::SequenceTraits< ArrayRef< T > >

ArrayRef is not really compatible with the YAMLTraits.

Everything should be immutable in an ArrayRef, while the SequenceTraits expect a mutable version for inputting, but we're only using the outputting capabilities here. This is a hack, but still nicer than having to manually call the YAMLIO internal methods. Keep this in this file so that it doesn't get misused from YAMLTraits.h.

Definition at line 105 of file YAMLRemarkSerializer.cpp.

Member Function Documentation

◆ element()

template<typename T>
Argument & llvm::yaml::SequenceTraits< ArrayRef< T > >::element ( IO & io,
ArrayRef< T > & seq,
size_t index )
inlinestatic

Definition at line 107 of file YAMLRemarkSerializer.cpp.

References assert(), llvm::yaml::IO::outputting(), llvm::seq(), and T.

◆ size()

template<typename T>
size_t llvm::yaml::SequenceTraits< ArrayRef< T > >::size ( IO & io,
ArrayRef< T > & seq )
inlinestatic

Definition at line 106 of file YAMLRemarkSerializer.cpp.

References llvm::seq().


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