[llvm-branch-commits] [cfe-branch] r326197 - Regenerate docs/AttributeReference.rst

Hans Wennborg via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Feb 27 05:54:39 PST 2018


Author: hans
Date: Tue Feb 27 05:54:38 2018
New Revision: 326197

URL: http://llvm.org/viewvc/llvm-project?rev=326197&view=rev
Log:
Regenerate docs/AttributeReference.rst

Modified:
    cfe/branches/release_60/docs/AttributeReference.rst

Modified: cfe/branches/release_60/docs/AttributeReference.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/branches/release_60/docs/AttributeReference.rst?rev=326197&r1=326196&r2=326197&view=diff
==============================================================================
--- cfe/branches/release_60/docs/AttributeReference.rst (original)
+++ cfe/branches/release_60/docs/AttributeReference.rst Tue Feb 27 05:54:38 2018
@@ -36,23 +36,23 @@ used to process multiple arguments from
 concurrently.
 The syntax of the `declare simd` construct is as follows:
 
-  .. code-block:: c
+  .. code-block:: none
 
-  #pragma omp declare simd [clause[[,] clause] ...] new-line
-  [#pragma omp declare simd [clause[[,] clause] ...] new-line]
-  [...]
-  function definition or declaration
+    #pragma omp declare simd [clause[[,] clause] ...] new-line
+    [#pragma omp declare simd [clause[[,] clause] ...] new-line]
+    [...]
+    function definition or declaration
 
 where clause is one of the following:
 
-  .. code-block:: c
+  .. code-block:: none
 
-  simdlen(length)
-  linear(argument-list[:constant-linear-step])
-  aligned(argument-list[:alignment])
-  uniform(argument-list)
-  inbranch
-  notinbranch
+    simdlen(length)
+    linear(argument-list[:constant-linear-step])
+    aligned(argument-list[:alignment])
+    uniform(argument-list)
+    inbranch
+    notinbranch
 
 
 #pragma omp declare target
@@ -69,9 +69,9 @@ The syntax of the declare target directi
 
   .. code-block:: c
 
-  #pragma omp declare target new-line
-  declarations-definition-seq
-  #pragma omp end declare target new-line
+    #pragma omp declare target new-line
+    declarations-definition-seq
+    #pragma omp end declare target new-line
 
 
 _Noreturn
@@ -557,7 +557,7 @@ available in C.
 
   int isdigit(int c);
   int isdigit(int c) __attribute__((enable_if(c <= -1 || c > 255, "chosen when 'c' is out of range"))) __attribute__((unavailable("'c' must have the value of an unsigned char or EOF")));
-  
+
   void foo(char c) {
     isdigit(c);
     isdigit(10);
@@ -610,7 +610,7 @@ overload out of a number of viable overl
 
   void f() __attribute__((enable_if(true, "")));  // #1
   void f() __attribute__((enable_if(true, ""))) __attribute__((enable_if(true, "")));  // #2
-  
+
   void g(int i, int j) __attribute__((enable_if(i, "")));  // #1
   void g(int i, int j) __attribute__((enable_if(j, ""))) __attribute__((enable_if(true)));  // #2
 
@@ -1170,7 +1170,7 @@ potentially-evaluated discarded-value ex
 .. code-block: c++
   struct [[nodiscard]] error_info { /*...*/ };
   error_info enable_missile_safety_mode();
-  
+
   void launch_missiles();
   void test_missiles() {
     enable_missile_safety_mode(); // diagnoses
@@ -1451,7 +1451,7 @@ default name.
 can only be placed before an @protocol or @interface declaration:
         
 .. code-block:: objc
-        
+
   __attribute__((objc_runtime_name("MyLocalName")))
   @interface Message
   @end




More information about the llvm-branch-commits mailing list