]> granicus.if.org Git - clang/commitdiff
[AttrDocs] Insert blank lines before and after code-block directives.
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 12 Nov 2015 02:41:56 +0000 (02:41 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 12 Nov 2015 02:41:56 +0000 (02:41 +0000)
The code snippets were not being displayed. This commit fixes the bug.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@252849 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/AttrDocs.td

index f9d962fbdec941a90155dcd506223c20b5cfb52a..b28ef6df0ed88ed4f91570e340f3793434e3ad5a 100644 (file)
@@ -1627,7 +1627,9 @@ def NotTailCalledDocs : Documentation {
 The ``not_tail_called`` attribute prevents tail-call optimization on statically bound calls. It has no effect on indirect calls. Virtual functions, objective-c methods, and functions marked as ``always_inline`` cannot be marked as ``not_tail_called``.
 
 For example, it prevents tail-call optimization in the following case:
+
   .. code-block: c
+
     int __attribute__((not_tail_called)) foo1(int);
 
     int foo2(int a) {
@@ -1635,7 +1637,9 @@ For example, it prevents tail-call optimization in the following case:
     }
 
 However, it doesn't prevent tail-call optimization in this case:
+
   .. code-block: c
+
     int __attribute__((not_tail_called)) foo1(int);
 
     int foo2(int a) {
@@ -1647,7 +1651,9 @@ However, it doesn't prevent tail-call optimization in this case:
     }
 
 Marking virtual functions as ``not_tail_called`` is an error:
+
   .. code-block: c++
+
     class Base {
     public:
       // not_tail_called on a virtual function is an error.