|
LLVM 24.0.0git
|
The Output class is used to generate a yaml document from in-memory structs and vectors. More...
#include "llvm/Support/YAMLTraits.h"
Public Member Functions | |
| Output (raw_ostream &, void *Ctxt=nullptr, int WrapColumn=70) | |
| ~Output () override | |
| void | setWriteDefaultValues (bool Write) |
| 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. | |
| bool | outputting () const override |
| bool | mapTag (StringRef, bool) override |
| void | beginMapping () override |
| void | endMapping () override |
| bool | preflightKey (StringRef Key, bool, bool, bool &, void *&) override |
| void | postflightKey (void *) override |
| std::vector< StringRef > | keys () override |
| void | beginFlowMapping () override |
| void | endFlowMapping () override |
| unsigned | beginSequence () override |
| void | endSequence () override |
| bool | preflightElement (unsigned, void *&) override |
| void | postflightElement (void *) override |
| unsigned | beginFlowSequence () override |
| bool | preflightFlowElement (unsigned, void *&) override |
| void | postflightFlowElement (void *) override |
| void | endFlowSequence () override |
| void | beginEnumScalar () override |
| bool | matchEnumScalar (StringRef, bool) override |
| bool | matchEnumFallback () override |
| void | endEnumScalar () override |
| bool | beginBitSetScalar (bool &) override |
| bool | bitSetMatch (StringRef, bool) override |
| void | endBitSetScalar () override |
| void | scalarString (StringRef &, QuotingType) override |
| void | blockScalarString (StringRef &) override |
| void | scalarTag (std::string &) override |
| NodeKind | getNodeKind () override |
| void | setError (const Twine &message) override |
| std::error_code | error () override |
| bool | canElideEmptySequence () override |
| void | beginDocuments () |
| bool | preflightDocument (unsigned) |
| void | postflightDocument () |
| void | endDocuments () |
| Public Member Functions inherited from llvm::yaml::IO | |
| IO (void *Ctxt=nullptr) | |
| virtual | ~IO () |
| virtual void | setAllowUnknownKeys (bool Allow) |
| template<typename T> | |
| void | enumCase (T &Val, StringRef Str, const T ConstVal) |
| template<typename T> | |
| void | enumCase (T &Val, StringRef Str, const uint32_t ConstVal) |
| template<typename FBT, typename T> | |
| void | enumFallback (T &Val) |
| template<typename T> | |
| void | bitSetCase (T &Val, StringRef Str, const T ConstVal) |
| template<typename T> | |
| void | bitSetCase (T &Val, StringRef Str, const uint32_t ConstVal) |
| template<typename T> | |
| void | maskedBitSetCase (T &Val, StringRef Str, T ConstVal, T Mask) |
| template<typename T> | |
| void | maskedBitSetCase (T &Val, StringRef Str, uint32_t ConstVal, uint32_t Mask) |
| void * | getContext () const |
| void | setContext (void *) |
| template<typename T> | |
| void | mapRequired (StringRef Key, T &Val) |
| template<typename T, typename Context> | |
| void | mapRequired (StringRef Key, T &Val, Context &Ctx) |
| template<typename T> | |
| void | mapOptional (StringRef Key, T &Val) |
| template<typename T, typename DefaultT> | |
| void | mapOptional (StringRef Key, T &Val, const DefaultT &Default) |
| template<typename T, typename Context> | |
| void | mapOptionalWithContext (StringRef Key, T &Val, Context &Ctx) |
| template<typename T, typename Context> | |
| void | mapOptionalWithContext (StringRef Key, std::optional< T > &Val, Context &Ctx) |
| template<typename T, typename Context, typename DefaultT> | |
| void | mapOptionalWithContext (StringRef Key, T &Val, const DefaultT &Default, Context &Ctx) |
The Output class is used to generate a yaml document from in-memory structs and vectors.
Definition at line 1472 of file YAMLTraits.h.
| Output::Output | ( | raw_ostream & | yout, |
| void * | Ctxt = nullptr, | ||
| int | WrapColumn = 70 ) |
Definition at line 516 of file YAMLTraits.cpp.
References llvm::yaml::IO::IO().
|
overridedefault |
Implements llvm::yaml::IO.
Definition at line 723 of file YAMLTraits.cpp.
| void Output::beginDocuments | ( | ) |
Definition at line 616 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 698 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 604 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 666 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 525 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 633 of file YAMLTraits.cpp.
Implements llvm::yaml::IO.
Definition at line 731 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 786 of file YAMLTraits.cpp.
References canUseBlockScalar(), llvm::yaml::Double, llvm::StringRef::empty(), llvm::MemoryBuffer::getMemBuffer(), I, llvm::StringRef::rtrim(), scalarString(), and llvm::StringRef::size().
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 832 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 741 of file YAMLTraits.cpp.
| void Output::endDocuments | ( | ) |
Definition at line 629 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 718 of file YAMLTraits.cpp.
References llvm_unreachable.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 611 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 675 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 562 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 640 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 830 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 979 of file YAMLTraits.cpp.
References llvm::report_fatal_error().
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 573 of file YAMLTraits.cpp.
References llvm::report_fatal_error().
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 711 of file YAMLTraits.cpp.
Implements llvm::yaml::IO.
Definition at line 702 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 521 of file YAMLTraits.cpp.
| void Output::postflightDocument | ( | ) |
Definition at line 626 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 656 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 694 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 594 of file YAMLTraits.cpp.
Definition at line 620 of file YAMLTraits.cpp.
Implements llvm::yaml::IO.
Definition at line 651 of file YAMLTraits.cpp.
Implements llvm::yaml::IO.
Definition at line 680 of file YAMLTraits.cpp.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 577 of file YAMLTraits.cpp.
References llvm::InnerAnalysisManagerProxy< AnalysisManagerT, IRUnitT, ExtraArgTs... >::Key.
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 745 of file YAMLTraits.cpp.
References llvm::StringRef::empty().
Referenced by blockScalarString().
|
overridevirtual |
Implements llvm::yaml::IO.
Definition at line 827 of file YAMLTraits.cpp.
|
inline |
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.
Definition at line 1482 of file YAMLTraits.h.
References llvm::Write.