LLVM API Documentation
CollectionType::iterator llvm::yaml::begin | ( | CollectionType & | C | ) |
Definition at line 319 of file YAMLParser.h.
Referenced by skip().
static void llvm::yaml::commonSectionMapping | ( | IO & | IO, |
ELFYAML::Section & | Section | ||
) | [static] |
Definition at line 688 of file ELFYAML.cpp.
References llvm::ELFYAML::Section::Address, llvm::ELFYAML::Section::AddressAlign, llvm::ELFYAML::Section::Flags, llvm::ELFYAML::Section::Link, llvm::yaml::IO::mapOptional(), llvm::yaml::IO::mapRequired(), llvm::ELFYAML::Section::Name, and llvm::ELFYAML::Section::Type.
Referenced by sectionMapping().
bool llvm::yaml::dumpTokens | ( | StringRef | Input, |
raw_ostream & | OS | ||
) |
Dump all the tokens in this stream to OS.
Definition at line 547 of file YAMLParser.cpp.
References llvm::yaml::Scanner::getNext(), llvm::yaml::Token::Kind, llvm::yaml::Token::Range, llvm::yaml::Token::TK_Alias, llvm::yaml::Token::TK_Anchor, llvm::yaml::Token::TK_BlockEnd, llvm::yaml::Token::TK_BlockEntry, llvm::yaml::Token::TK_BlockMappingStart, llvm::yaml::Token::TK_BlockSequenceStart, llvm::yaml::Token::TK_DocumentEnd, llvm::yaml::Token::TK_DocumentStart, llvm::yaml::Token::TK_Error, llvm::yaml::Token::TK_FlowEntry, llvm::yaml::Token::TK_FlowMappingEnd, llvm::yaml::Token::TK_FlowMappingStart, llvm::yaml::Token::TK_FlowSequenceEnd, llvm::yaml::Token::TK_FlowSequenceStart, llvm::yaml::Token::TK_Key, llvm::yaml::Token::TK_Scalar, llvm::yaml::Token::TK_StreamEnd, llvm::yaml::Token::TK_StreamStart, llvm::yaml::Token::TK_Tag, llvm::yaml::Token::TK_TagDirective, llvm::yaml::Token::TK_Value, and llvm::yaml::Token::TK_VersionDirective.
std::string llvm::yaml::escape | ( | StringRef | Input | ) |
Escape Input for a double quoted scalar.
Definition at line 641 of file YAMLParser.cpp.
References llvm::StringRef::begin(), llvm::SmallVectorTemplateCommon< char >::begin(), decodeUTF8(), encodeUTF8(), llvm::StringRef::end(), llvm::SmallVectorTemplateCommon< char >::end(), and llvm::utohexstr().
bool llvm::yaml::isBool | ( | StringRef | S | ) | [inline] |
Definition at line 374 of file YAMLTraits.h.
References llvm::StringRef::equals().
Referenced by needsQuotes().
bool llvm::yaml::isNull | ( | StringRef | S | ) | [inline] |
Definition at line 369 of file YAMLTraits.h.
References llvm::StringRef::equals().
Referenced by ConstantFoldGetElementPtrImpl(), and needsQuotes().
bool llvm::yaml::isNumber | ( | StringRef | S | ) | [inline] |
Definition at line 327 of file YAMLTraits.h.
References llvm::StringRef::drop_front(), llvm::StringRef::equals(), llvm::StringRef::find_first_not_of(), llvm::Regex::match(), llvm::StringRef::npos, and llvm::StringRef::startswith().
Referenced by isNumeric().
bool llvm::yaml::isNumeric | ( | StringRef | S | ) | [inline] |
Definition at line 356 of file YAMLTraits.h.
References llvm::StringRef::drop_front(), llvm::StringRef::equals(), llvm::StringRef::front(), and isNumber().
Referenced by needsQuotes().
bool llvm::yaml::needsQuotes | ( | StringRef | S | ) | [inline] |
Definition at line 379 of file YAMLTraits.h.
References llvm::StringRef::back(), llvm::StringRef::empty(), llvm::StringRef::find_first_not_of(), llvm::StringRef::front(), isBool(), isNull(), isNumeric(), and llvm::StringRef::npos.
Referenced by llvm::yaml::ScalarTraits< BinaryRef >::mustQuote(), llvm::yaml::ScalarTraits< StringRef >::mustQuote(), and llvm::yaml::ScalarTraits< std::string >::mustQuote().
std::enable_if< missingTraits< T >::value, Output & >::type llvm::yaml::operator<< | ( | Output & | yout, |
T & | docList | ||
) | [inline] |
Definition at line 1180 of file YAMLTraits.h.
References llvm::yaml::Output::beginDocuments(), llvm::yaml::Output::endDocuments(), llvm::yaml::Output::postflightDocument(), llvm::yaml::Output::preflightDocument(), and yamlize().
Definition at line 79 of file YAML.h.
References llvm::ArrayRef< T >::empty().
std::enable_if< missingTraits< T >::value, Input & >::type llvm::yaml::operator>> | ( | Input & | yin, |
T & | docList | ||
) | [inline] |
Definition at line 1133 of file YAMLTraits.h.
References llvm::yaml::Input::error(), llvm::yaml::Input::nextDocument(), llvm::yaml::Input::setCurrentDocument(), and yamlize().
bool llvm::yaml::scanTokens | ( | StringRef | Input | ) |
Scans all tokens in input without outputting anything. This is used for benchmarking the tokenizer.
Definition at line 628 of file YAMLParser.cpp.
References llvm::yaml::Scanner::getNext(), llvm::yaml::Token::Kind, llvm::yaml::Token::TK_Error, and llvm::yaml::Token::TK_StreamEnd.
static void llvm::yaml::sectionMapping | ( | IO & | IO, |
ELFYAML::RawContentSection & | Section | ||
) | [static] |
Definition at line 697 of file ELFYAML.cpp.
References llvm::yaml::BinaryRef::binary_size(), commonSectionMapping(), llvm::ELFYAML::RawContentSection::Content, llvm::yaml::IO::mapOptional(), and llvm::ELFYAML::RawContentSection::Size.
Referenced by llvm::yaml::MappingTraits< std::unique_ptr< ELFYAML::Section > >::mapping().
static void llvm::yaml::sectionMapping | ( | IO & | IO, |
ELFYAML::RelocationSection & | Section | ||
) | [static] |
Definition at line 703 of file ELFYAML.cpp.
References commonSectionMapping(), llvm::ELFYAML::RelocationSection::Info, llvm::yaml::IO::mapOptional(), and llvm::ELFYAML::RelocationSection::Relocations.
void llvm::yaml::skip | ( | CollectionType & | C | ) |
Definition at line 327 of file YAMLParser.h.
References begin().
std::enable_if< has_SequenceTraits< T >::value, void >::type llvm::yaml::yamlize | ( | IO & | io, |
T & | Val, | ||
bool | |||
) |
Definition at line 592 of file YAMLTraits.h.
References llvm::yaml::IO::beginEnumScalar(), and llvm::yaml::IO::endEnumScalar().
Referenced by operator<<(), and operator>>().