diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2015-11-12 02:41:56 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2015-11-12 02:41:56 +0000 |
commit | 645af38957642cac0b31098e3bd5d72847e6f2ba (patch) | |
tree | a6119039da9dd15932adefcbe54231d93cc7071d | |
parent | d84493e52e4bb216b2da3920635569fbbb7ca637 (diff) | |
download | bcm5719-llvm-645af38957642cac0b31098e3bd5d72847e6f2ba.tar.gz bcm5719-llvm-645af38957642cac0b31098e3bd5d72847e6f2ba.zip |
[AttrDocs] Insert blank lines before and after code-block directives.
The code snippets were not being displayed. This commit fixes the bug.
llvm-svn: 252849
-rw-r--r-- | clang/include/clang/Basic/AttrDocs.td | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td index f9d962fbdec..b28ef6df0ed 100644 --- a/clang/include/clang/Basic/AttrDocs.td +++ b/clang/include/clang/Basic/AttrDocs.td @@ -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. |