summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2017-09-08 18:40:39 +0000
committerAaron Ballman <aaron@aaronballman.com>2017-09-08 18:40:39 +0000
commit188473cc1145ab58498f9ce18c1081b8f922035e (patch)
tree2040bb6f24703cd8269c74911708cb5569f66a67
parent43092c0d00330020ca0178034546156088a2a137 (diff)
downloadbcm5719-llvm-188473cc1145ab58498f9ce18c1081b8f922035e.tar.gz
bcm5719-llvm-188473cc1145ab58498f9ce18c1081b8f922035e.zip
Add some documentation on how to generate the documentation.
llvm-svn: 312811
-rw-r--r--clang/include/clang/Basic/AttrDocs.td18
1 files changed, 18 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index 027c597c6e7..46d6b24bc2d 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -7,6 +7,24 @@
//
//===---------------------------------------------------------------------===//
+// To test that the documentation builds cleanly, you must run clang-tblgen to
+// convert the .td file into a .rst file, and then run sphinx to convert the
+// .rst file into an HTML file. After completing testing, you should revert the
+// generated .rst file so that the modified version does not get checked in to
+// version control.
+//
+// To run clang-tblgen to generate the .rst file:
+// clang-tblgen -gen-attr-docs -I <root>/llvm/tools/clang/include
+// <root>/llvm/tools/clang/include/clang/Basic/Attr.td -o
+// <root>/llvm/tools/clang/docs/AttributeReference.rst
+//
+// To run sphinx to generate the .html files (note that sphinx-build must be
+// available on the PATH):
+// Windows (from within the clang\docs directory):
+// make.bat html
+// Non-Windows (from within the clang\docs directory):
+// make -f Makefile.sphinx html
+
def GlobalDocumentation {
code Intro =[{..
-------------------------------------------------------------------
OpenPOWER on IntegriCloud