LLVM 22.0.0git
|
Classes | |
class | AddIndentationStringStream |
class | ASTNode |
class | EscapeStringStream |
struct | MustacheContext |
class | MustacheOutputStream |
class | Parser |
class | RawMustacheOutputStream |
struct | Tag |
class | Template |
class | Token |
Typedefs | |
using | Lambda = std::function<llvm::json::Value()> |
using | SectionLambda = std::function<llvm::json::Value(std::string)> |
using | AstPtr = std::unique_ptr<ASTNode> |
using | EscapeMap = DenseMap<char, std::string> |
using llvm::mustache::AstPtr = std::unique_ptr<ASTNode> |
Definition at line 87 of file Mustache.h.
typedef DenseMap< char, std::string > llvm::mustache::EscapeMap = DenseMap<char, std::string> |
Definition at line 88 of file Mustache.h.
using llvm::mustache::Lambda = std::function<llvm::json::Value()> |
Definition at line 83 of file Mustache.h.
using llvm::mustache::SectionLambda = std::function<llvm::json::Value(std::string)> |
Definition at line 84 of file Mustache.h.
|
static |
Definition at line 229 of file Mustache.cpp.
|
static |
Definition at line 225 of file Mustache.cpp.
Referenced by llvm::mustache::Parser::parse().
|
static |
Definition at line 234 of file Mustache.cpp.
|
static |
Definition at line 362 of file Mustache.cpp.
References llvm::mustache::Tag::Normal, llvm::StringRef::npos, llvm::StringRef::size(), and llvm::mustache::Tag::Triple.
Referenced by tokenize().
Definition at line 267 of file Mustache.cpp.
References getType(), llvm::StringRef::ltrim(), llvm::mustache::Token::RawBody, llvm::ArrayRef< T >::size(), llvm::StringRef::starts_with(), and llvm::mustache::Token::Text.
Referenced by tokenize().
Definition at line 251 of file Mustache.cpp.
References llvm::StringRef::empty(), llvm::StringRef::ends_with(), getType(), llvm::mustache::Token::RawBody, llvm::StringRef::rtrim(), and llvm::mustache::Token::Text.
Referenced by tokenize().
|
static |
Definition at line 344 of file Mustache.cpp.
References llvm::json::Value::Array, llvm::json::Value::Boolean, llvm_unreachable, llvm::json::Value::Null, llvm::json::Value::Number, llvm::json::Value::Object, and llvm::json::Value::String.
Referenced by toMustacheString().
|
static |
Definition at line 405 of file Mustache.cpp.
References llvm::CallingConv::C, llvm::dbgs(), llvm::StringRef::drop_front(), llvm::SmallVectorImpl< T >::emplace_back(), llvm::StringRef::empty(), llvm::StringRef::front(), LLVM_DEBUG, llvm::StringRef::split(), llvm::StringRef::starts_with(), llvm::StringRef::str(), T, tagKindToString(), llvm::StringRef::take_until(), llvm::StringRef::trim(), and llvm::mustache::Tag::Triple.
Referenced by tokenize().
|
static |
Definition at line 280 of file Mustache.cpp.
References llvm::mustache::Token::Comment, llvm::mustache::Token::InvertSectionOpen, llvm::mustache::Token::Partial, llvm::mustache::Token::SectionClose, llvm::mustache::Token::SectionOpen, llvm::mustache::Token::SetDelimiter, and T.
Referenced by tokenize().
|
static |
Definition at line 293 of file Mustache.cpp.
References llvm::StringRef::starts_with(), llvm::StringRef::str(), llvm::StringRef::substr(), and llvm::mustache::Token::TokenBody.
Referenced by tokenize().
void llvm::mustache::stripTokenBefore | ( | SmallVectorImpl< Token > & | Tokens, |
size_t | Idx, | ||
Token & | CurrentToken, | ||
Token::Type | CurrentType ) |
Definition at line 309 of file Mustache.cpp.
References llvm::StringRef::rtrim(), llvm::mustache::Token::setIndentation(), llvm::StringRef::size(), llvm::StringRef::str(), and llvm::mustache::Token::TokenBody.
Referenced by tokenize().
Definition at line 332 of file Mustache.cpp.
References llvm_unreachable, llvm::mustache::Tag::None, llvm::mustache::Tag::Normal, and llvm::mustache::Tag::Triple.
Referenced by processTag().
|
static |
Definition at line 435 of file Mustache.cpp.
References llvm::dbgs(), llvm::SmallVectorImpl< T >::emplace_back(), findNextTag(), llvm::mustache::Token::getType(), hasTextAhead(), hasTextBehind(), LLVM_DEBUG, llvm::mustache::Tag::None, processTag(), requiresCleanUp(), llvm::SmallVectorTemplateCommon< T, typename >::size(), stripTokenAhead(), stripTokenBefore(), and T.
Referenced by llvm::mustache::Parser::parse().
|
static |
Definition at line 682 of file Mustache.cpp.
References llvm::json::Value::Array, llvm::json::Value::Boolean, llvm::Data, llvm::dbgs(), jsonKindToString(), LLVM_DEBUG, llvm::json::Value::Null, llvm::json::Value::Number, llvm::json::Value::Object, llvm::json::Value::String, and llvm::json::OStream::value().