Lines Matching defs:CDCtx
298 genStylesheetsHTML(StringRef InfoPath, const ClangDocContext &CDCtx) {
300 for (const auto &FilePath : CDCtx.UserStylesheets) {
315 genJsScriptsHTML(StringRef InfoPath, const ClangDocContext &CDCtx) {
326 for (const auto &FilePath : CDCtx.JsScripts) {
375 genHTML(const EnumInfo &I, const ClangDocContext &CDCtx);
377 genHTML(const FunctionInfo &I, const ClangDocContext &CDCtx,
383 const ClangDocContext &CDCtx) {
393 std::vector<std::unique_ptr<TagNode>> Nodes = genHTML(E, CDCtx);
430 const ClangDocContext &CDCtx, StringRef ParentInfoDir) {
441 genHTML(F, CDCtx, ParentInfoDir);
528 const ClangDocContext &CDCtx) {
535 genStylesheetsHTML(InfoPath, CDCtx);
538 genJsScriptsHTML(InfoPath, CDCtx);
603 const Index &InfoIndex, const ClangDocContext &CDCtx) {
607 genFileHeadNodes(Title, InfoPath, CDCtx);
608 std::unique_ptr<TagNode> HeaderNode = genFileHeaderNode(CDCtx.ProjectName);
712 genHTML(const EnumInfo &I, const ClangDocContext &CDCtx) {
740 if (!CDCtx.RepositoryUrl)
744 writeFileDefinition(*I.DefLoc, StringRef{*CDCtx.RepositoryUrl}));
755 genHTML(const FunctionInfo &I, const ClangDocContext &CDCtx,
789 if (!CDCtx.RepositoryUrl)
793 *I.DefLoc, StringRef{*CDCtx.RepositoryUrl}));
804 genHTML(const NamespaceInfo &I, Index &InfoIndex, const ClangDocContext &CDCtx,
828 genFunctionsBlock(I.Children.Functions, CDCtx, BasePath);
831 genEnumsBlock(I.Children.Enums, CDCtx);
849 genHTML(const RecordInfo &I, Index &InfoIndex, const ClangDocContext &CDCtx,
856 if (!CDCtx.RepositoryUrl)
860 *I.DefLoc, StringRef{*CDCtx.RepositoryUrl}));
894 genFunctionsBlock(I.Children.Functions, CDCtx, I.Path);
897 genEnumsBlock(I.Children.Enums, CDCtx);
915 genHTML(const TypedefInfo &I, const ClangDocContext &CDCtx,
928 const ClangDocContext &CDCtx) override;
929 llvm::Error createResources(ClangDocContext &CDCtx) override;
931 const ClangDocContext &CDCtx) override;
939 const ClangDocContext &CDCtx) {
980 if (llvm::Error Err = generateDocForInfo(Info, InfoOS, CDCtx)) {
990 const ClangDocContext &CDCtx) {
997 InfoIndex, CDCtx, InfoTitle);
1001 InfoIndex, CDCtx, InfoTitle);
1004 MainContentNodes = genHTML(*static_cast<clang::doc::EnumInfo *>(I), CDCtx);
1008 genHTML(*static_cast<clang::doc::FunctionInfo *>(I), CDCtx, "");
1012 genHTML(*static_cast<clang::doc::TypedefInfo *>(I), CDCtx, InfoTitle);
1020 MainContentNodes, InfoIndex, CDCtx);
1044 static llvm::Error serializeIndex(ClangDocContext &CDCtx) {
1048 llvm::sys::path::native(CDCtx.OutDirectory, FilePath);
1056 llvm::SmallString<128> RootPath(CDCtx.OutDirectory);
1068 CDCtx.Idx.sort();
1083 IndexToJSON(CDCtx.Idx);
1106 static llvm::Error genIndex(const ClangDocContext &CDCtx) {
1109 llvm::sys::path::native(CDCtx.OutDirectory, IndexPath);
1121 genFileHeadNodes("Index", "", CDCtx);
1122 std::unique_ptr<TagNode> HeaderNode = genFileHeaderNode(CDCtx.ProjectName);
1153 llvm::Error HTMLGenerator::createResources(ClangDocContext &CDCtx) {
1154 auto Err = serializeIndex(CDCtx);
1157 Err = genIndex(CDCtx);
1161 for (const auto &FilePath : CDCtx.UserStylesheets) {
1162 Err = copyFile(FilePath, CDCtx.OutDirectory);
1166 for (const auto &FilePath : CDCtx.JsScripts) {
1167 Err = copyFile(FilePath, CDCtx.OutDirectory);