r222894 - Sphinx does not have a lexer for OpenCL, so falling back to C for the language on the code block. Also fixing an indentation warning. NFC to the content of the documentation itself.

Aaron Ballman aaron at aaronballman.com
Thu Nov 27 07:46:00 PST 2014


Author: aaronballman
Date: Thu Nov 27 09:45:59 2014
New Revision: 222894

URL: http://llvm.org/viewvc/llvm-project?rev=222894&view=rev
Log:
Sphinx does not have a lexer for OpenCL, so falling back to C for the language on the code block. Also fixing an indentation warning. NFC to the content of the documentation itself.

Modified:
    cfe/trunk/include/clang/Basic/AttrDocs.td

Modified: cfe/trunk/include/clang/Basic/AttrDocs.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/AttrDocs.td?rev=222894&r1=222893&r2=222894&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/AttrDocs.td (original)
+++ cfe/trunk/include/clang/Basic/AttrDocs.td Thu Nov 27 09:45:59 2014
@@ -1272,16 +1272,16 @@ used to allocate the object. OpenCL supp
 __generic(generic), __global(global), __local(local), __private(private),
 __constant(constant).
 
-   .. code-block:: opencl
+  .. code-block:: c
 
-  __constant int c = ...;
+    __constant int c = ...;
 
-  __generic int* foo(global int* g) {
-     __local int* l;
-     private int p;
-     ...
-     return l;
-  }
+    __generic int* foo(global int* g) {
+      __local int* l;
+      private int p;
+      ...
+      return l;
+    }
 
 More details can be found in the OpenCL C language Spec v2.0, Section 6.5.
   }];





More information about the cfe-commits mailing list