LLVM  10.0.0svn
Static Public Member Functions | List of all members
llvm::yaml::SequenceTraits< ArrayRef< T > > Struct Template Reference

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

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 123 of file YAMLRemarkSerializer.cpp.

Member Function Documentation

◆ element()

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

Definition at line 125 of file YAMLRemarkSerializer.cpp.

References assert().

◆ size()

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

Definition at line 124 of file YAMLRemarkSerializer.cpp.

References llvm::ArrayRef< T >::size().


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