diff options
| author | Jakob Lykke Andersen <Jakob@caput.dk> | 2017-01-15 14:36:29 +0900 |
|---|---|---|
| committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2017-01-15 14:36:29 +0900 |
| commit | ccd6bf4a0c2ba9f268a56210cd9fd2c844a80caf (patch) | |
| tree | bac0221f4b19e47009291078bea86f845b0461e6 /tests/roots/test-domain-cpp | |
| parent | 00fcbfb35d225efe2bc8dc43c91176096dfbe902 (diff) | |
| download | sphinx-git-ccd6bf4a0c2ba9f268a56210cd9fd2c844a80caf.tar.gz | |
C++, fix refs to operator() functions.
Fixes sphinx-doc/sphinx#2952.
Diffstat (limited to 'tests/roots/test-domain-cpp')
| -rw-r--r-- | tests/roots/test-domain-cpp/any-role.rst | 4 | ||||
| -rw-r--r-- | tests/roots/test-domain-cpp/index.rst | 7 | ||||
| -rw-r--r-- | tests/roots/test-domain-cpp/roles.rst | 4 |
3 files changed, 12 insertions, 3 deletions
diff --git a/tests/roots/test-domain-cpp/any-role.rst b/tests/roots/test-domain-cpp/any-role.rst index 4ca7e34f2..24b415e52 100644 --- a/tests/roots/test-domain-cpp/any-role.rst +++ b/tests/roots/test-domain-cpp/any-role.rst @@ -11,3 +11,7 @@ any role * ref function with parens :cpp:any:`paren_2()` * ref function without parens, explicit title :cpp:any:`paren_3_title <paren_3>` * ref function with parens, explicit title :cpp:any:`paren_4_title <paren_4()>` +* ref op call without parens :cpp:any:`paren_5::operator()` +* ref op call with parens :cpp:any:`paren_6::operator()()` +* ref op call without parens, explicit title :cpp:any:`paren_7_title <paren_7::operator()>` +* ref op call with parens, explicit title :cpp:any:`paren_8_title <paren_8::operator()()>` diff --git a/tests/roots/test-domain-cpp/index.rst b/tests/roots/test-domain-cpp/index.rst index e46545b06..618e51037 100644 --- a/tests/roots/test-domain-cpp/index.rst +++ b/tests/roots/test-domain-cpp/index.rst @@ -38,9 +38,10 @@ directives .. cpp:function:: void paren_1(int, float) - .. cpp:function:: void paren_2(int, float) - .. cpp:function:: void paren_3(int, float) - .. cpp:function:: void paren_4(int, float) +.. cpp:function:: void paren_5::operator()(int) +.. cpp:function:: void paren_6::operator()(int) +.. cpp:function:: void paren_7::operator()(int) +.. cpp:function:: void paren_8::operator()(int) diff --git a/tests/roots/test-domain-cpp/roles.rst b/tests/roots/test-domain-cpp/roles.rst index 5609ee451..afd2ede33 100644 --- a/tests/roots/test-domain-cpp/roles.rst +++ b/tests/roots/test-domain-cpp/roles.rst @@ -11,3 +11,7 @@ roles * ref function with parens :cpp:func:`paren_2()` * ref function without parens, explicit title :cpp:func:`paren_3_title <paren_3>` * ref function with parens, explicit title :cpp:func:`paren_4_title <paren_4()>` +* ref op call without parens :cpp:func:`paren_5::operator()` +* ref op call with parens :cpp:func:`paren_6::operator()()` +* ref op call without parens, explicit title :cpp:func:`paren_7_title <paren_7::operator()>` +* ref op call with parens, explicit title :cpp:func:`paren_8_title <paren_8::operator()()>` |
