projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e8b6ef
)
Fixing broken attribute documentation for __attribute__((noescape)); a code block...
author
Aaron Ballman
<aaron@aaronballman.com>
Sat, 21 Oct 2017 16:43:01 +0000
(16:43 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Sat, 21 Oct 2017 16:43:01 +0000
(16:43 +0000)
llvm-svn: 316267
clang/include/clang/Basic/AttrDocs.td
patch
|
blob
|
history
diff --git
a/clang/include/clang/Basic/AttrDocs.td
b/clang/include/clang/Basic/AttrDocs.td
index
78a40c4
..
ecff329
100644
(file)
--- a/
clang/include/clang/Basic/AttrDocs.td
+++ b/
clang/include/clang/Basic/AttrDocs.td
@@
-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;