clang-tools 22.0.0git
HTMLMustacheGenerator.cpp File Reference

===-------------------------------------------------------------------—===// More...

#include "Generators.h"
#include "Representation.h"
#include "support/File.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/Mustache.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/TimeProfiler.h"

Go to the source code of this file.

Classes

class  clang::doc::MustacheHTMLGenerator
class  clang::doc::MustacheTemplateFile

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
namespace  clang::doc

Functions

static Error clang::doc::generateDocForJSON (json::Value &JSON, StringRef Filename, StringRef Path, raw_fd_ostream &OS, const ClangDocContext &CDCtx)
static Error clang::doc::createFileOpenError (StringRef FileName, std::error_code EC)
static Error clang::doc::setupTemplate (std::unique_ptr< MustacheTemplateFile > &Template, StringRef TemplatePath, std::vector< std::pair< StringRef, StringRef > > Partials)
static Error clang::doc::setupTemplateFiles (const clang::doc::ClangDocContext &CDCtx)
static Error clang::doc::setupTemplateValue (const ClangDocContext &CDCtx, json::Value &V)
static GeneratorRegistry::Add< MustacheHTMLGeneratorclang::doc::MHTML (MustacheHTMLGenerator::Format, "Generator for mustache HTML output.")

Variables

static std::unique_ptr< MustacheTemplateFileclang::doc::NamespaceTemplate = nullptr
static std::unique_ptr< MustacheTemplateFileclang::doc::RecordTemplate = nullptr

Detailed Description

===-------------------------------------------------------------------—===//

This file contains the implementation of the MustacheHTMLGenerator class, which is Clang-Doc generator for HTML using Mustache templates.

Definition in file HTMLMustacheGenerator.cpp.