diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2016-02-26 13:30:58 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2016-02-26 13:30:58 +0000 |
commit | c521a1a46739d35a33fcb7bc1254c4f4990be7dc (patch) | |
tree | c9691a25a21df682ac77c0110315a6e14529b060 | |
parent | ba04ed4128e9f45cca46d32326ef1c384154e4a3 (diff) | |
download | bcm5719-llvm-c521a1a46739d35a33fcb7bc1254c4f4990be7dc.tar.gz bcm5719-llvm-c521a1a46739d35a33fcb7bc1254c4f4990be7dc.zip |
Giving this attribute documentation group a heading; fixes a documentation generation error.
llvm-svn: 262012
-rw-r--r-- | clang/include/clang/Basic/AttrDocs.td | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td index f1a6ae2b1cc..080f555a74a 100644 --- a/clang/include/clang/Basic/AttrDocs.td +++ b/clang/include/clang/Basic/AttrDocs.td @@ -1583,7 +1583,10 @@ s6.11.5 for details. def OpenCLAccessDocs : Documentation { let Category = DocCatStmt; - let Content = [{ + let Heading = "__read_only, __write_only, __read_write (read_only, " + "write_only, read_write)"; + let Content = [ + { The access qualifiers must be used with image object arguments or pipe arguments to declare if they are being read or written by a kernel or function. @@ -1596,7 +1599,7 @@ names are reserved for use as access qualifiers and shall not be used otherwise. write_only image2d_t imageB) { ... - } +} In the above example imageA is a read-only 2D image object, and imageB is a write-only 2D image object. @@ -1604,7 +1607,8 @@ write-only 2D image object. The read_write (or __read_write) qualifier can not be used with pipe. More details can be found in the OpenCL C language Spec v2.0, Section 6.6. - }]; + } + ]; } def DocOpenCLAddressSpaces : DocumentationCategory<"OpenCL Address Spaces"> { |