Author: ahatanak Date: Wed Nov 11 20:41:56 2015 New Revision: 252849 URL: http://llvm.org/viewvc/llvm-project?rev=252849&view=rev Log: [AttrDocs] Insert blank lines before and after code-block directives.
The code snippets were not being displayed. This commit fixes the bug. Modified: cfe/trunk/include/clang/Basic/AttrDocs.td Modified: cfe/trunk/include/clang/Basic/AttrDocs.td URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/AttrDocs.td?rev=252849&r1=252848&r2=252849&view=diff ============================================================================== --- cfe/trunk/include/clang/Basic/AttrDocs.td (original) +++ cfe/trunk/include/clang/Basic/AttrDocs.td Wed Nov 11 20:41:56 2015 @@ -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 optim } 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 op } 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. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits