summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2015-11-09 15:24:09 +0000
committerAaron Ballman <aaron@aaronballman.com>2015-11-09 15:24:09 +0000
commit570100b306c863685287f742f7cd15e314eed5ee (patch)
tree33c3cf95739ef8e0472f32e84885b6dd077f5ae4
parent45f67d52d0e7b7aced3e125dca2f128021c8a073 (diff)
downloadbcm5719-llvm-570100b306c863685287f742f7cd15e314eed5ee.tar.gz
bcm5719-llvm-570100b306c863685287f742f7cd15e314eed5ee.zip
Fixing SPHINX warnings with incorrect indentations.
llvm-svn: 252470
-rw-r--r--clang/include/clang/Basic/AttrDocs.td50
1 files changed, 25 insertions, 25 deletions
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index 8fda86590a6..61a39caae48 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -1628,44 +1628,44 @@ The ``not_tail_called`` attribute prevents tail-call optimization on statically
For example, it prevents tail-call optimization in the following case:
.. code-block: c
- int __attribute__((not_tail_called)) foo1(int);
+ int __attribute__((not_tail_called)) foo1(int);
- int foo2(int a) {
- return foo1(a); // No tail-call optimization on direct calls.
- }
+ int foo2(int a) {
+ return foo1(a); // No tail-call optimization on direct calls.
+ }
However, it doesn't prevent tail-call optimization in this case:
.. code-block: c
- int __attribute__((not_tail_called)) foo1(int);
+ int __attribute__((not_tail_called)) foo1(int);
- int foo2(int a) {
- int (*fn)(int) = &foo1;
+ int foo2(int a) {
+ int (*fn)(int) = &foo1;
- // not_tail_called has no effect on an indirect call even if the call can be
- // resolved at compile time.
- return (*fn)(a);
- }
+ // not_tail_called has no effect on an indirect call even if the call can be
+ // resolved at compile time.
+ return (*fn)(a);
+ }
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.
- [[clang::not_tail_called]] virtual int foo1();
+ class Base {
+ public:
+ // not_tail_called on a virtual function is an error.
+ [[clang::not_tail_called]] virtual int foo1();
- virtual int foo2();
+ virtual int foo2();
- // Non-virtual functions can be marked ``not_tail_called``.
- [[clang::not_tail_called]] int foo3();
- };
+ // Non-virtual functions can be marked ``not_tail_called``.
+ [[clang::not_tail_called]] int foo3();
+ };
- class Derived1 : public Base {
- public:
- int foo1() override;
+ class Derived1 : public Base {
+ public:
+ int foo1() override;
- // not_tail_called on a virtual function is an error.
- [[clang::not_tail_called]] int foo2() override;
- };
+ // not_tail_called on a virtual function is an error.
+ [[clang::not_tail_called]] int foo2() override;
+ };
}];
}
OpenPOWER on IntegriCloud