mirror of
https://github.com/intel/llvm.git
synced 2026-02-03 19:18:13 +08:00
Fixing broken attribute documentation for __attribute__((noescape)); a code block was missing and the existing code block was missing a mandatory newline.
llvm-svn: 316267
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user