class Output

Declaration

class Output : public IO { /* full declaration omitted */ };

Description

The Output class is used to generate a yaml document from in-memory structs and vectors.

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1579

Inherits from: IO

Member Variables

private llvm::raw_ostream& Out
private int WrapColumn
private SmallVector<llvm::yaml::Output::InState, 8> StateStack
private int Column = 0
private int ColumnAtFlowStart = 0
private int ColumnAtMapFlowStart = 0
private bool NeedBitValueComma = false
private bool NeedFlowSequenceComma = false
private bool EnumerationMatchFound = false
private bool WriteDefaultValues = false
private llvm::StringRef Padding
private llvm::StringRef PaddingBeforeContainer

Method Overview

Inherited from IO:

Methods

Output(llvm::raw_ostream&,
       void* Ctxt = nullptr,
       int WrapColumn = 70)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1581

Parameters

llvm::raw_ostream&
void* Ctxt = nullptr
int WrapColumn = 70

bool beginBitSetScalar(bool&)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1612

Parameters

bool&

void beginDocuments()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1624

void beginEnumScalar()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1608

void beginFlowMapping()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1598

unsigned int beginFlowSequence()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1604

void beginMapping()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1593

unsigned int beginSequence()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1600

bool bitSetMatch(const char*, bool)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1613

Parameters

const char*
bool

void blockScalarString(llvm::StringRef&)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1616

Parameters

llvm::StringRef&

bool canElideEmptySequence()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1620

void endBitSetScalar()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1614

void endDocuments()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1627

void endEnumScalar()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1611

void endFlowMapping()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1599

void endFlowSequence()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1607

void endMapping()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1594

void endSequence()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1601

void flowKey(llvm::StringRef Key)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1635

Parameters

llvm::StringRef Key

llvm::yaml::NodeKind getNodeKind()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1618

static bool inFlowMapAnyKey(
    llvm::yaml::Output::InState State)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1651

Parameters

llvm::yaml::Output::InState State

static bool inFlowSeqAnyElement(
    llvm::yaml::Output::InState State)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1649

Parameters

llvm::yaml::Output::InState State

static bool inMapAnyKey(
    llvm::yaml::Output::InState State)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1650

Parameters

llvm::yaml::Output::InState State

static bool inSeqAnyElement(
    llvm::yaml::Output::InState State)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1648

Parameters

llvm::yaml::Output::InState State

std::vector<StringRef> keys()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1597

bool mapTag(llvm::StringRef, bool)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1592

Parameters

llvm::StringRef
bool

bool matchEnumFallback()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1610

bool matchEnumScalar(const char*, bool)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1609

Parameters

const char*
bool

void newLineCheck(bool EmptySequence = false)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1632

Parameters

bool EmptySequence = false

void output(llvm::StringRef s)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1630

Parameters

llvm::StringRef s

void outputNewLine()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1633

void outputUpToEndOfLine(llvm::StringRef s)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1631

Parameters

llvm::StringRef s

bool outputting() const

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1591

void paddedKey(llvm::StringRef key)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1634

Parameters

llvm::StringRef key

void postflightDocument()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1626

void postflightElement(void*)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1603

Parameters

void*

void postflightFlowElement(void*)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1606

Parameters

void*

void postflightKey(void*)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1596

Parameters

void*

bool preflightDocument(unsigned int)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1625

Parameters

unsigned int

bool preflightElement(unsigned int, void*&)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1602

Parameters

unsigned int
void*&

bool preflightFlowElement(unsigned int, void*&)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1605

Parameters

unsigned int
void*&

bool preflightKey(const char* key,
                  bool,
                  bool,
                  bool&,
                  void*&)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1595

Parameters

const char* key
bool
bool
bool&
void*&

void scalarString(llvm::StringRef&,
                  llvm::yaml::QuotingType)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1615

Parameters

llvm::StringRef&
llvm::yaml::QuotingType

void scalarTag(std::string&)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1617

Parameters

std::string&

void setError(const llvm::Twine& message)

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1619

Parameters

const llvm::Twine& message

void setWriteDefaultValues(bool Write)

Description

Set whether or not to output optional values which are equal to the default value. By default, when outputting if you attempt to write a value that is equal to the default, the value gets ignored. Sometimes, it is useful to be able to see these in the resulting YAML anyway.

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1589

Parameters

bool Write

~Output()

Declared at: llvm/include/llvm/Support/YAMLTraits.h:1582