LLVM 22.0.0git
Classes | Namespaces | Typedefs | Functions
Mustache.cpp File Reference
#include "llvm/Support/Mustache.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/raw_ostream.h"
#include <sstream>

Go to the source code of this file.

Classes

class  llvm::mustache::Token
 
class  llvm::mustache::ASTNode
 
class  llvm::mustache::EscapeStringStream
 
class  llvm::mustache::AddIndentationStringStream
 
class  llvm::mustache::Parser
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::mustache
 

Typedefs

using llvm::mustache::EscapeMap = DenseMap< char, std::string >
 

Functions

AstPtr llvm::mustache::createRootNode (llvm::StringMap< AstPtr > &Partials, llvm::StringMap< Lambda > &Lambdas, llvm::StringMap< SectionLambda > &SectionLambdas, EscapeMap &Escapes)
 
AstPtr llvm::mustache::createNode (ASTNode::Type T, Accessor A, ASTNode *Parent, llvm::StringMap< AstPtr > &Partials, llvm::StringMap< Lambda > &Lambdas, llvm::StringMap< SectionLambda > &SectionLambdas, EscapeMap &Escapes)
 
AstPtr llvm::mustache::createTextNode (std::string Body, ASTNode *Parent, llvm::StringMap< AstPtr > &Partials, llvm::StringMap< Lambda > &Lambdas, llvm::StringMap< SectionLambda > &SectionLambdas, EscapeMap &Escapes)
 
bool llvm::mustache::hasTextBehind (size_t Idx, const ArrayRef< Token > &Tokens)
 
bool llvm::mustache::hasTextAhead (size_t Idx, const ArrayRef< Token > &Tokens)
 
bool llvm::mustache::requiresCleanUp (Token::Type T)
 
void llvm::mustache::stripTokenAhead (SmallVectorImpl< Token > &Tokens, size_t Idx)
 
void llvm::mustache::stripTokenBefore (SmallVectorImpl< Token > &Tokens, size_t Idx, Token &CurrentToken, Token::Type CurrentType)
 
SmallVector< Tokenllvm::mustache::tokenize (StringRef Template)
 
void llvm::mustache::toMustacheString (const json::Value &Data, raw_ostream &OS)