|
clang-tools 23.0.0git
|
Public Member Functions | |
| Error | generateDocumentation (StringRef RootDir, StringMap< doc::OwnedPtr< doc::Info > > Infos, const ClangDocContext &CDCtx, std::string DirName) override |
| Error | setupTemplateFiles (const ClangDocContext &CDCtx) override |
| Initializes the template files from disk and calls setupTemplate to register partials. | |
| Error | generateDocForJSON (json::Value &JSON, raw_fd_ostream &OS, const ClangDocContext &CDCtx, StringRef ObjectTypeStr, StringRef RelativeRootPath) override |
| Error | generateDocForInfo (Info *I, llvm::raw_ostream &OS, const ClangDocContext &CDCtx) override |
| Public Member Functions inherited from clang::doc::MustacheGenerator | |
| Expected< std::string > | getInfoTypeStr (llvm::json::Object *Info, StringRef Filename) |
| SmallString< 128 > | getRelativePathToRoot (StringRef PathToFile, StringRef DocsRootPath) |
| Used to find the relative path from the file to the format's docs root. | |
| virtual | ~MustacheGenerator ()=default |
| virtual llvm::Error | generateDocForJSON (llvm::json::Value &JSON, llvm::raw_fd_ostream &OS, const ClangDocContext &CDCtx, StringRef ObjectTypeStr, StringRef RelativeRootPath)=0 |
| Populates templates with data from JSON and calls any specifics for the format. | |
| llvm::Error | setupTemplate (OwnedPtr< MustacheTemplateFile > &Template, StringRef TemplatePath, std::vector< std::pair< StringRef, StringRef > > Partials) |
| Registers partials to templates. | |
| llvm::Error | generateDocumentation (StringRef RootDir, llvm::StringMap< doc::OwnedPtr< doc::Info > > Infos, const clang::doc::ClangDocContext &CDCtx, std::string DirName) override |
| The main orchestrator for Mustache-based documentation. | |
| Public Member Functions inherited from clang::doc::Generator | |
| virtual | ~Generator ()=default |
| virtual llvm::Error | createResources (ClangDocContext &CDCtx) |
Static Public Attributes | |
| static const char * | Format = "md_mustache" |
Additional Inherited Members | |
| Static Public Member Functions inherited from clang::doc::Generator | |
| static void | addInfoToIndex (Index &Idx, const doc::Info *Info) |
Definition at line 27 of file MDMustacheGenerator.cpp.
|
overridevirtual |
Implements clang::doc::Generator.
Definition at line 102 of file MDMustacheGenerator.cpp.
|
override |
Definition at line 81 of file MDMustacheGenerator.cpp.
References clang::doc::AllFilesTemplate, clang::doc::IndexTemplate, clang::doc::JSON(), clang::doc::NamespaceTemplate, and clang::doc::RecordTemplate.
|
override |
Definition at line 74 of file MDMustacheGenerator.cpp.
References clang::doc::MustacheGenerator::generateDocumentation().
|
overridevirtual |
Initializes the template files from disk and calls setupTemplate to register partials.
Implements clang::doc::MustacheGenerator.
Definition at line 44 of file MDMustacheGenerator.cpp.
References clang::doc::AllFilesTemplate, clang::doc::IndexTemplate, clang::doc::ClangDocContext::MustacheTemplates, clang::doc::NamespaceTemplate, clang::doc::RecordTemplate, and clang::doc::MustacheGenerator::setupTemplate().
|
static |
Definition at line 28 of file MDMustacheGenerator.cpp.
Referenced by clang::doc::MDMustache().