summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-doc/tool
diff options
context:
space:
mode:
authorDiego Astiazaran <diegoaat97@gmail.com>2019-08-16 18:38:11 +0000
committerDiego Astiazaran <diegoaat97@gmail.com>2019-08-16 18:38:11 +0000
commit3550da79ecdbc2b2a41aa305c659a5f90eb0b3c5 (patch)
tree62f6c435a573fea46f251793691bb4e6248ac6ae /clang-tools-extra/clang-doc/tool
parent187c63f14539ee6e79d71fc212475f1ad469af22 (diff)
downloadbcm5719-llvm-3550da79ecdbc2b2a41aa305c659a5f90eb0b3c5.tar.gz
bcm5719-llvm-3550da79ecdbc2b2a41aa305c659a5f90eb0b3c5.zip
[clang-doc] Redesign of generated HTML files
The new design includes a header (contains the project name), a main section, and a footer. The main section is divided into three subsections. Left, middle, right. The left section contains the general index, the middle contains the info's data, and the right contains the index for the info's content. The CSS has been updated. A flag --project-name is added. The Attributes attribute of the TagNode struct is now a vector of pairs because these attributes should be rendered in the insertion order. The functions (cpp and js) that converts an Index tree structure into HTML were slightly modified; the first ul tag created is now a ol tag. The inner lists are still ul. Differential Revision: https://reviews.llvm.org/D66353 llvm-svn: 369139
Diffstat (limited to 'clang-tools-extra/clang-doc/tool')
-rw-r--r--clang-tools-extra/clang-doc/tool/ClangDocMain.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp b/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
index 5cb6e9e672d..b0c21134439 100644
--- a/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
+++ b/clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
@@ -52,6 +52,10 @@ using namespace clang;
static llvm::cl::extrahelp CommonHelp(CommonOptionsParser::HelpMessage);
static llvm::cl::OptionCategory ClangDocCategory("clang-doc options");
+static llvm::cl::opt<std::string>
+ ProjectName("project-name", llvm::cl::desc("Name of project."),
+ llvm::cl::cat(ClangDocCategory));
+
static llvm::cl::opt<bool> IgnoreMappingFailures(
"ignore-map-errors",
llvm::cl::desc("Continue if files are not mapped correctly."),
@@ -205,6 +209,7 @@ int main(int argc, const char **argv) {
clang::doc::ClangDocContext CDCtx = {
Exec->get()->getExecutionContext(),
+ ProjectName,
PublicOnly,
OutDirectory,
SourceRoot,
OpenPOWER on IntegriCloud