LLVM 22.0.0git
Mustache.cpp File Reference
#include "llvm/Support/Mustache.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <cctype>
#include <optional>
#include <sstream>

Go to the source code of this file.

Classes

class  llvm::mustache::MustacheOutputStream
class  llvm::mustache::RawMustacheOutputStream
class  llvm::mustache::Token
class  llvm::mustache::ASTNode
struct  llvm::mustache::Tag
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

Macros

#define DEBUG_TYPE   "mustache"

Functions

static AstPtr llvm::mustache::createRootNode (MustacheContext &Ctx)
static AstPtr llvm::mustache::createNode (MustacheContext &Ctx, ASTNode::Type T, Accessor A, ASTNode *Parent)
static AstPtr llvm::mustache::createTextNode (MustacheContext &Ctx, std::string Body, ASTNode *Parent)
static bool llvm::mustache::hasTextBehind (size_t Idx, const ArrayRef< Token > &Tokens)
static bool llvm::mustache::hasTextAhead (size_t Idx, const ArrayRef< Token > &Tokens)
static bool llvm::mustache::requiresCleanUp (Token::Type T)
static 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)
static const charllvm::mustache::tagKindToString (Tag::Kind K)
static const charllvm::mustache::jsonKindToString (json::Value::Kind K)
static Tag llvm::mustache::findNextTag (StringRef Template, size_t StartPos, StringRef Open, StringRef Close)
static std::optional< std::pair< StringRef, StringRef > > llvm::mustache::processTag (const Tag &T, SmallVectorImpl< Token > &Tokens)
static SmallVector< Tokenllvm::mustache::tokenize (StringRef Template)
static void llvm::mustache::toMustacheString (const json::Value &Data, raw_ostream &OS)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "mustache"

Definition at line 16 of file Mustache.cpp.