|
clang-tools 22.0.0git
|
Public Member Functions | |
| Error | createResources (ClangDocContext &CDCtx) override |
| Error | generateDocForInfo (Info *I, raw_ostream &OS, const ClangDocContext &CDCtx) 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 ObjTypeStr, StringRef RelativeRootPath) override |
| Error | setupTemplateResources (const ClangDocContext &CDCtx, json::Value &V, SmallString< 128 > RelativeRootPath) |
| llvm::Error | generateDocumentation (StringRef RootDir, llvm::StringMap< std::unique_ptr< doc::Info > > Infos, const ClangDocContext &CDCtx, std::string DirName) override |
| The main orchestrator for Mustache-based documentation. | |
| 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 (std::unique_ptr< MustacheTemplateFile > &Template, StringRef TemplatePath, std::vector< std::pair< StringRef, StringRef > > Partials) |
| Registers partials to templates. | |
| Public Member Functions inherited from clang::doc::Generator | |
| virtual | ~Generator ()=default |
| virtual llvm::Error | generateDocForInfo (Info *I, llvm::raw_ostream &OS, const ClangDocContext &CDCtx)=0 |
Static Public Attributes | |
| static const char * | Format = "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 32 of file HTMLMustacheGenerator.cpp.
|
overridevirtual |
Reimplemented from clang::doc::Generator.
Definition at line 150 of file HTMLMustacheGenerator.cpp.
References clang::doc::copyFile(), clang::doc::ClangDocContext::JsScripts, clang::doc::ClangDocContext::OutDirectory, and clang::doc::ClangDocContext::UserStylesheets.
|
override |
Definition at line 132 of file HTMLMustacheGenerator.cpp.
References clang::doc::Info::IT, clang::doc::IT_concept, clang::doc::IT_default, clang::doc::IT_enum, clang::doc::IT_friend, clang::doc::IT_function, clang::doc::IT_namespace, clang::doc::IT_record, clang::doc::IT_typedef, and clang::doc::IT_variable.
|
override |
Definition at line 113 of file HTMLMustacheGenerator.cpp.
References clang::doc::JSON(), clang::doc::NamespaceTemplate, clang::doc::RecordTemplate, and setupTemplateResources().
|
overridevirtual |
The main orchestrator for Mustache-based documentation.
Reimplemented from clang::doc::MustacheGenerator.
Definition at line 161 of file HTMLMustacheGenerator.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 50 of file HTMLMustacheGenerator.cpp.
References clang::doc::ClangDocContext::MustacheTemplates, clang::doc::NamespaceTemplate, clang::doc::RecordTemplate, and clang::doc::MustacheGenerator::setupTemplate().
| Error clang::doc::MustacheHTMLGenerator::setupTemplateResources | ( | const ClangDocContext & | CDCtx, |
| json::Value & | V, | ||
| SmallString< 128 > | RelativeRootPath ) |
Definition at line 83 of file HTMLMustacheGenerator.cpp.
References clang::doc::ClangDocContext::JsScripts, clang::doc::ClangDocContext::ProjectName, and clang::doc::ClangDocContext::UserStylesheets.
Referenced by generateDocForJSON().
|
static |
Definition at line 34 of file HTMLMustacheGenerator.cpp.
Referenced by clang::doc::MHTML().