Sphinx does not have a lexer for OpenCL, so falling back to C for the language on...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 27 Nov 2014 15:45:59 +0000 (15:45 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 27 Nov 2014 15:45:59 +0000 (15:45 +0000)
llvm-svn: 222894

clang/include/clang/Basic/AttrDocs.td

index 253869a..a336ff1 100644 (file)
@@ -1272,16 +1272,16 @@ used to allocate the object. OpenCL supports the following address spaces:
 __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.
   }];