]> granicus.if.org Git - clang/commitdiff
Fixing broken attribute documentation for __attribute__((noescape)); a code block...
authorAaron Ballman <aaron@aaronballman.com>
Sat, 21 Oct 2017 16:43:01 +0000 (16:43 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sat, 21 Oct 2017 16:43:01 +0000 (16:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316267 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/AttrDocs.td

index 78a40c46937dc9ad5b093ef4adbb0c36065f5dc1..ecff329c4ccba835bab9f8b4f4f2a99e32bfcde0 100644 (file)
@@ -142,6 +142,7 @@ annotated with ``noescape`` do not actuallly escape.
 For example:
 
 .. code-block:: c
+
   int *gp;
 
   void nonescapingFunc(__attribute__((noescape)) int *p) {
@@ -156,6 +157,8 @@ Additionally, when the parameter is a `block pointer
 <https://clang.llvm.org/docs/BlockLanguageSpec.html>`, the same restriction
 applies to copies of the block. For example:
 
+.. code-block:: c
+
   typedef void (^BlockTy)();
   BlockTy g0, g1;