LLVM API Documentation
Functions | |
bool | dumpTokens (StringRef Input, raw_ostream &) |
Dump all the tokens in this stream to OS. More... | |
bool | scanTokens (StringRef Input) |
Scans all tokens in input without outputting anything. This is used for benchmarking the tokenizer. More... | |
std::string | escape (StringRef Input) |
Escape Input for a double quoted scalar. More... | |
template<class CollectionType > | |
CollectionType::iterator | begin (CollectionType &C) |
template<class CollectionType > | |
void | skip (CollectionType &C) |
template<typename T > | |
llvm::enable_if_c < has_ScalarEnumerationTraits < T >::value, void >::type | yamlize (IO &io, T &Val, bool) |
template<typename T > | |
llvm::enable_if_c < has_ScalarBitSetTraits< T > ::value, void >::type | yamlize (IO &io, T &Val, bool) |
template<typename T > | |
llvm::enable_if_c < has_ScalarTraits< T >::value, void >::type | yamlize (IO &io, T &Val, bool) |
template<typename T > | |
llvm::enable_if_c < has_MappingTraits< T > ::value, void >::type | yamlize (IO &io, T &Val, bool) |
template<typename T > | |
llvm::enable_if_c < missingTraits< T >::value, void >::type | yamlize (IO &io, T &Val, bool) |
template<typename T > | |
llvm::enable_if_c < has_SequenceTraits< T > ::value, void >::type | yamlize (IO &io, T &Seq, bool) |
template<typename T > | |
llvm::enable_if_c < has_DocumentListTraits< T > ::value, Input & >::type | operator>> (Input &yin, T &docList) |
template<typename T > | |
llvm::enable_if_c < has_MappingTraits< T > ::value, Input & >::type | operator>> (Input &yin, T &docMap) |
template<typename T > | |
llvm::enable_if_c < has_SequenceTraits< T > ::value, Input & >::type | operator>> (Input &yin, T &docSeq) |
template<typename T > | |
llvm::enable_if_c < missingTraits< T >::value, Input & >::type | operator>> (Input &yin, T &docSeq) |
template<typename T > | |
llvm::enable_if_c < has_DocumentListTraits< T > ::value, Output & >::type | operator<< (Output &yout, T &docList) |
template<typename T > | |
llvm::enable_if_c < has_MappingTraits< T > ::value, Output & >::type | operator<< (Output &yout, T &map) |
template<typename T > | |
llvm::enable_if_c < has_SequenceTraits< T > ::value, Output & >::type | operator<< (Output &yout, T &seq) |
template<typename T > | |
llvm::enable_if_c < missingTraits< T >::value, Output & >::type | operator<< (Output &yout, T &seq) |
CollectionType::iterator llvm::yaml::begin | ( | CollectionType & | C | ) |
Definition at line 323 of file YAMLParser.h.
Referenced by llvm::yaml::MappingNode::begin(), llvm::yaml::SequenceNode::begin(), and skip().
bool llvm::yaml::dumpTokens | ( | StringRef | Input, |
raw_ostream & | OS | ||
) |
Dump all the tokens in this stream to OS.
Definition at line 548 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 642 of file YAMLParser.cpp.
References llvm::StringRef::begin(), llvm::SmallVectorTemplateCommon< T >::begin(), decodeUTF8(), encodeUTF8(), llvm::StringRef::end(), llvm::SmallVectorTemplateCommon< T >::end(), and llvm::utohexstr().
|
inline |
Definition at line 993 of file YAMLTraits.h.
References llvm::yaml::Output::beginDocuments(), llvm::yaml::Output::endDocuments(), llvm::yaml::Output::postflightDocument(), llvm::yaml::Output::preflightDocument(), and yamlize().
|
inline |
Definition at line 1010 of file YAMLTraits.h.
References llvm::yaml::Output::beginDocuments(), llvm::yaml::Output::endDocuments(), llvm::yaml::Output::postflightDocument(), llvm::yaml::Output::preflightDocument(), and yamlize().
|
inline |
Definition at line 1024 of file YAMLTraits.h.
References llvm::yaml::Output::beginDocuments(), llvm::yaml::Output::endDocuments(), llvm::yaml::Output::postflightDocument(), llvm::yaml::Output::preflightDocument(), and yamlize().
|
inline |
Definition at line 1038 of file YAMLTraits.h.
|
inline |
Definition at line 946 of file YAMLTraits.h.
References llvm::yaml::Input::error(), llvm::yaml::Input::nextDocument(), llvm::yaml::Input::setCurrentDocument(), and yamlize().
|
inline |
Definition at line 962 of file YAMLTraits.h.
References llvm::yaml::Input::setCurrentDocument(), and yamlize().
|
inline |
Definition at line 973 of file YAMLTraits.h.
References llvm::yaml::Input::setCurrentDocument(), and yamlize().
|
inline |
Definition at line 983 of file YAMLTraits.h.
Scans all tokens in input without outputting anything. This is used for benchmarking the tokenizer.
Definition at line 629 of file YAMLParser.cpp.
References llvm::yaml::Scanner::getNext(), llvm::yaml::Token::Kind, llvm::yaml::Token::TK_Error, and llvm::yaml::Token::TK_StreamEnd.
void llvm::yaml::skip | ( | CollectionType & | C | ) |
Definition at line 332 of file YAMLParser.h.
References begin().
Referenced by llvm::yaml::MappingNode::skip(), and llvm::yaml::SequenceNode::skip().
llvm::enable_if_c<has_ScalarEnumerationTraits<T>::value,void>::type llvm::yaml::yamlize | ( | IO & | io, |
T & | Val, | ||
bool | |||
) |
Definition at line 446 of file YAMLTraits.h.
References llvm::yaml::IO::beginEnumScalar(), and llvm::yaml::IO::endEnumScalar().
Referenced by operator<<(), operator>>(), and yamlize().
llvm::enable_if_c<has_ScalarBitSetTraits<T>::value,void>::type llvm::yaml::yamlize | ( | IO & | io, |
T & | Val, | ||
bool | |||
) |
Definition at line 454 of file YAMLTraits.h.
References llvm::yaml::IO::beginBitSetScalar(), and llvm::yaml::IO::endBitSetScalar().
llvm::enable_if_c<has_ScalarTraits<T>::value,void>::type llvm::yaml::yamlize | ( | IO & | io, |
T & | Val, | ||
bool | |||
) |
Definition at line 467 of file YAMLTraits.h.
References llvm::StringRef::empty(), llvm::yaml::IO::getContext(), llvm::yaml::IO::outputting(), llvm::yaml::IO::scalarString(), llvm::yaml::IO::setError(), and llvm::raw_string_ostream::str().
llvm::enable_if_c<has_MappingTraits<T>::value, void>::type llvm::yaml::yamlize | ( | IO & | io, |
T & | Val, | ||
bool | |||
) |
Definition at line 488 of file YAMLTraits.h.
References llvm::yaml::IO::beginMapping(), and llvm::yaml::IO::endMapping().
llvm::enable_if_c<missingTraits<T>::value, void>::type llvm::yaml::yamlize | ( | IO & | io, |
T & | Val, | ||
bool | |||
) |
Definition at line 496 of file YAMLTraits.h.
llvm::enable_if_c<has_SequenceTraits<T>::value,void>::type llvm::yaml::yamlize | ( | IO & | io, |
T & | Seq, | ||
bool | |||
) |
Definition at line 502 of file YAMLTraits.h.
References llvm::yaml::IO::beginFlowSequence(), llvm::yaml::IO::beginSequence(), llvm::yaml::IO::endFlowSequence(), llvm::yaml::IO::endSequence(), llvm::yaml::IO::outputting(), llvm::yaml::IO::postflightElement(), llvm::yaml::IO::postflightFlowElement(), llvm::yaml::IO::preflightElement(), llvm::yaml::IO::preflightFlowElement(), and yamlize().