Commit Graph

151 Commits

Author SHA1 Message Date
Jakob Lykke Andersen
b3de33deef C++, fix parsing of floating point literals
Fixes sphinx-doc/sphinx#5636
2018-12-16 16:56:55 +01:00
Jon Dufresne
dd383ec472 Prefer https:// links where available 2018-09-23 11:50:42 -07:00
Jon Dufresne
490e4aed41 Remove unnecessary object from class definitions
In Python 3, all classes are new-style classes. The object in the
definition is redundant and unnecessary.
2018-09-11 07:07:01 -07:00
Jakob Lykke Andersen
2a544b4ec3 C++, conditionally disable test on sys.maxunicode 2018-08-26 13:17:53 +02:00
Jakob Lykke Andersen
73ae1ac834 C++, add parsing of basic new expressions. 2018-08-17 13:49:44 +02:00
Jakob Lykke Andersen
6433e08069 C++, add parsing of delete expressions. 2018-08-15 10:08:31 +02:00
Jakob Lykke Andersen
349890266c C++, parse attributes on declerators as well.
Fixes sphinx-doc/sphinx#5187
2018-08-11 16:39:27 +02:00
Jakob Lykke Andersen
44127fd13b C++, add support for (most) character literals.
Fixes sphinx-doc/sphinx#5147
2018-08-10 22:13:18 +02:00
Takeshi KOMIYA
f969edfaa8 Fix flake8 violations on tests 2018-07-28 20:19:30 +09:00
Jakob Lykke Andersen
cc026946f7 C++, add support for anon entities.
Anonymous entities are specified with names starting with "@",
but are rendered as "[anonymous]".

Fixes sphinx-doc/sphinx#3593 and sphinx-doc/sphinx#2683.
2018-06-09 12:24:34 +02:00
Takeshi KOMIYA
98f10216c7 Merge branch '1.7' 2018-05-29 02:13:54 +09:00
Jakob Lykke Andersen
6d52b63eee C++, support for unions. 2018-05-26 20:03:25 +02:00
Jakob Lykke Andersen
f592483156 Add cpp:texpr role (style alternative to cpp:expr)
Simplified version of sphinx-doc/sphinx#4836,
thanks to mickk-on-cpp.
2018-05-26 17:25:41 +02:00
lucdanton
b839a7cf0e C++: parse pack expansions in function calls. 2018-05-26 13:28:21 +02:00
Jakob Lykke Andersen
bde93246c6 C++, parse 'this' in expressions. 2018-02-19 20:58:55 +01:00
Jakob Lykke Andersen
7d49a5311f C++, parse explicit casts and typeid in expression 2018-02-19 20:58:10 +01:00
Takeshi KOMIYA
f7027049b1 Fix flake8 violations 2018-02-19 23:20:56 +09:00
Takeshi KOMIYA
f1f6ca8cc9 Merge branch 'happy_new_year' into master 2018-01-01 01:09:17 +09:00
Takeshi KOMIYA
2426cedb8b A happy new year! 2018-01-01 01:06:58 +09:00
Jakob Lykke Andersen
f3c05adebc C++, fix handling of (templated) operators 2017-12-28 16:50:32 +01:00
Jakob Lykke Andersen
9766c2f339 C++, support the template disambiguator for dependent names. 2017-12-24 16:31:10 +01:00
Takeshi KOMIYA
a9efb2517a Fix flake8 violations 2017-12-23 21:21:21 +09:00
Jakob Lykke Andersen
c7a145cc18 C++, handle defaulted constrained template type parameters 2017-12-20 09:05:34 +01:00
Jakob Lykke Andersen
f3b440777b C++, support explicit member instantiations
See michaeljones/breathe#325
2017-12-04 22:38:37 +01:00
Jakob Lykke Andersen
0ff217e1b2 C++, fix hyperlinking of nested names 2017-12-01 20:07:35 +01:00
Jakob Lykke Andersen
d6ec677c61 C++, parse decltype(<expr>)
Fixes sphinx-doc/sphinx#4094
2017-11-26 21:41:15 +01:00
Jakob Lykke Andersen
6e721e98fe C++, parse more unary expressions
Last part, fixes sphinx-doc/sphinx#4114
2017-11-26 20:32:24 +01:00
Jakob Lykke Andersen
0aa9d4c87e C++, parse more types of integer literals
Fixes case 0 of sphinx-doc/sphinx#4114
2017-11-26 12:45:27 +01:00
lucdanton
9aac2420d3 C++: remove function concepts. 2017-10-26 08:15:09 +02:00
Takeshi KOMIYA
c57cd9cb06 Merge branch 'stable' 2017-10-05 00:48:50 +09:00
Jakob Lykke Andersen
6d61098058 C++, add test case for sphinx-doc/sphinx#4096 2017-10-03 14:35:10 +02:00
Jakob Lykke Andersen
b85ea529b8 C++, allow empty template argument lists
See sphinx-doc/sphinx#4094
2017-09-28 20:46:34 +02:00
jfbu
e277cb7285 Merge branch '1.6-release'
Fixed conflicts:
	tests/test_build_html5.py

Also updated tests/test_build_latex.py
2017-05-11 11:45:14 +02:00
Takeshi KOMIYA
56d3458584 Fix flake8 violations 2017-05-09 21:57:36 +09:00
Jakob Lykke Andersen
32788c4e81 C++, turn on version 3 mangling 2017-05-04 14:04:33 +09:00
Jakob Lykke Andersen
4bcaf13766 C++, expressions 2017-05-04 14:04:33 +09:00
Jakob Lykke Andersen
85a94b79ca C++, internal changes to id generation 2017-05-04 14:02:10 +09:00
Jakob Lykke Andersen
5cd0f235a8 C++, handle decltype(auto) 2017-05-02 19:51:04 +09:00
Takeshi KOMIYA
8f9dd64992 Merge branch 'stable' 2017-03-26 11:52:15 +09:00
Takeshi KOMIYA
c57e47e042 Year++ 2017-03-26 11:49:34 +09:00
jfbu
bc0682af0e Merge branch 'stable'
Conflicts resolved:
	sphinx/domains/cpp.py
	sphinx/domains/python.py
	sphinx/texinputs/sphinx.sty
	sphinx/util/docfields.py
	sphinx/writers/latex.py
	tests/test_build_latex.py

Also updated:
    sphinx/domains/__init__.py
2017-03-12 13:01:47 +01:00
Jakob Lykke Andersen
acf5f94940 C++, fix parsing error of non-type template arg
Fixes sphinx-doc/sphinx#3542
2017-03-12 15:03:20 +09:00
Takeshi KOMIYA
e1da72b59c Reduce DeprecationWarnings for regexp 2017-02-17 02:01:04 +09:00
Takeshi KOMIYA
d33cf04979 Merge branch 'stable' 2017-01-29 18:05:17 +09:00
Takeshi KOMIYA
cf2061dfad Fix flake8 violations 2017-01-26 01:13:17 +09:00
Takeshi KOMIYA
e6cd347f6c Merge branch 'stable' 2017-01-16 01:31:57 +09:00
Jakob Lykke Andersen
ccd6bf4a0c C++, fix refs to operator() functions.
Fixes sphinx-doc/sphinx#2952.
2017-01-15 14:36:29 +09:00
Jakob Lykke Andersen
e3cb2bbcf1 C++, at option tparam-line-spec for templates.
Make it possible to render template parameters on separate lines.
2017-01-15 00:52:08 +09:00
shimizukawa
baaef9146d pytest: remove deprecated with_app decorator functions 2017-01-06 01:14:47 +09:00
shimizukawa
f962ad67d2 pytest: remove deprecated raises and raises_msg assert functions 2017-01-06 00:46:42 +09:00
Jakob Lykke Andersen
54dd5c5fd1 C++, add proper template introduction mangling 2016-08-07 21:55:58 +02:00
Jakob Lykke Andersen
1b251797bb Merge branch 'master' into cpp-concepts 2016-08-07 18:37:31 +02:00
Jakob Lykke Andersen
c85e60a5ac C++, increase support for attributes.
User-defined attributes and simple C++11 style attributes.
Closes sphinx-doc/sphinx#2682.
2016-08-06 00:08:02 +02:00
Jakob Lykke Andersen
f64ec1349a C++, initial support for attributes.
Only simple GNU style supported, and only in the decl-specifier-list.
See sphinx-doc/sphinx#2682.
2016-06-26 10:02:15 +02:00
Jakob Lykke Andersen
65dddfcd69 C++, fix parsing of function types in other types.
Let all kinds of function parameters be allowed to have a name.
Fixes michaeljones/breathe#267.
2016-06-16 10:54:16 +09:00
Jakob Lykke Andersen
5728e5e837 C++, add test for initialized variable concepts 2016-06-14 16:23:57 +09:00
Takeshi KOMIYA
80921b2ab8 Fix flake8 violation under tests/ 2016-06-12 00:02:11 +09:00
Jakob Lykke Andersen
8a64cfdd91 C++, add support for template introductions.
Thanks to mickk-on-cpp.
2016-05-30 23:18:10 +09:00
Jakob Lykke Andersen
74191207db C++, add support for concept declarations.
Concept placeholders are automatically linked.
Thanks to mickk-on-cpp.
2016-05-30 19:45:17 +09:00
Jakob Lykke Andersen
42395a177a C++, also support 'extern' for functions.
Thanks to Victor Zverovich.
2016-03-31 13:40:02 +09:00
Jakob Lykke Andersen
dca9e59ea5 C++, add support for 'extern' and 'thread_local'.
Thanks to michaeljones/breathe#243 for noticing the lack of 'extern' support.
2016-03-30 16:19:03 +09:00
Jakob Lykke Andersen
5c363a683e Fix :cpp:any: fix_paren with explicit title. 2016-01-28 13:19:23 +09:00
Georg Brandl
4f72bdb722 Merge branch 'stable' 2016-01-14 22:54:08 +01:00
Georg Brandl
46d7e8558e Obligatory copyright update. 2016-01-14 22:54:04 +01:00
Takeshi KOMIYA
e4b9eb51f6 Merge branch 'stable' 2016-01-11 00:27:26 +09:00
Takeshi KOMIYA
07cc02a512 Fix #2178: Unparseable C++ cross-reference when referencing a function with :cpp:any: 2015-12-27 16:29:07 +09:00
Jakob Lykke Andersen
0e28d366bc C++, add support for pointers to member (function)
See sphinx-doc/sphinx#2146
2015-12-02 20:00:28 +01:00
Jakob Lykke Andersen
346df54358 C++, properly render multi-line declarations.
Fixes template rendering, e.g., when generating Latex.
Thanks to michaeljones/breathe#127 for pointing in the right direction.
2015-10-13 22:05:42 +09:00
Jakob Lykke Andersen
4d2c17e043 Merge pull request #2081 from dean0x7d/cpp11literals
C++, add support for user-defined literals
2015-10-12 21:49:20 +09:00
Jakob Lykke Andersen
4e8f630176 C++, fix templated operator bug
Fixes sphinx-doc/sphinx#2058
Fixes sphinx-doc/sphinx#2080
2015-10-12 21:06:45 +09:00
Dean Moldovan
1021f4cdd7 C++, add support for user-defined literals 2015-10-12 13:41:39 +02:00
Jakob Lykke Andersen
c823ffbcf1 C++, remove symbol hax for template params 2015-10-12 15:22:46 +09:00
Jakob Lykke Andersen
758abb926e C++, fix bug in type alias parsing.
Fixes sphinx-doc/sphinx#2061
2015-10-02 17:19:59 +09:00
Jakob Lykke Andersen
df3d6476a4 C++, fix parsing of types prefixed with 'enum'.
Fixes michaeljones/breathe#223.
2015-10-01 22:28:54 +09:00
Jakob Lykke Andersen
3fb3fdbd53 C++, add parameter pack expansion as base classes. 2015-10-01 17:42:04 +09:00
Jakob Lykke Andersen
8e864076a9 C++, add support for final classes. 2015-10-01 17:25:07 +09:00
Rapptz
7d836e16ab C++, add support for virtual base classes 2015-10-01 03:08:14 -04:00
Jakob Lykke Andersen
add4c2467d C++, add missing support for 'friend' functions. 2015-09-14 14:31:15 +02:00
Jakob Lykke Andersen
2b3c249a4a C++, fix parsing of signed/unsigned char. 2015-09-13 12:33:57 +02:00
Jakob Lykke Andersen
c9470fac65 C++, fix for template argument parsing.
Non-type template arguments where not parsed correctly. It is a bit
better now. The example in michaeljones/breathe#218 should work now.
2015-09-06 20:34:01 +02:00
Jakob Lykke Andersen
38db131ee9 C++, yet more code cleanup 2015-09-06 16:08:37 +02:00
Jakob Lykke Andersen
89c3dd81c3 C++, support for templates.
Fixes sphinx-doc/sphinx#1729.
2015-09-06 15:36:58 +02:00
Jakob Lykke Andersen
ed29c298a6 C++ initial refactoring to support templates.
Create symbol tables to represent all declarations, including templated
declarations (sphinx-doc/sphinx#1729).
Fixes sphinx-doc/sphinx#1314.
2015-09-02 22:09:57 +02:00
Jakob Lykke Andersen
3cf67aa5cf C++, more name lookup fixes.
Not all names knew of the scope they were in, resulting in not links.
See sphinx-doc/sphinx#1746.
2015-03-08 14:58:34 +01:00
Jakob Lykke Andersen
bbf97fe8fd Last details. Closes sphinx-doc/sphinx#1753. 2015-03-05 23:34:44 +01:00
Jakob Lykke Andersen
8ca12f5307 Main revamp for sphinx-doc/sphinx#1753.
Support `( ptr-declarator )`, e.g., `int (*f)(double)`, or
`int (&a)[42]`.
Still missing check for compatibility with old id generation scheme.
2015-03-05 10:51:28 +01:00
Jakob Lykke Andersen
4f0e246109 C++, add tests for ids. 2015-03-01 15:04:15 +01:00
Jakob Lykke Andersen
b8e324fb2f Fixes sphinx-doc/sphinx#1738. 2015-02-24 09:49:43 +01:00
Jakob Lykke Andersen
46cd97873c Fix C++ tests. 2015-02-08 23:22:31 +01:00
Jakob Lykke Andersen
d09bcfa717 C++, minor code formatting fixes. 2015-02-07 01:26:35 +01:00
Jakob Lykke Andersen
d8a109976b Merge from master 2015-02-07 00:55:19 +01:00
Jakob Lykke Andersen
fb3a524a90 C++, fixes to id generation.
New ids are prefixed with "_CPPv1". Replacing the prefix with "_Z"
should yield a valid mangled name following the Itanium C++ ABI,
except for expressions, which are currently not handled.
2015-02-06 08:35:12 +01:00
Jakob Lykke Andersen
f4cf30b95e C++, old-style linkes, const/volatile and templates, sphinx-doc/sphinx#1704 2015-02-05 10:00:50 +01:00
Jakob Lykke Andersen
89c919911f Merge from master 2015-02-04 23:23:28 +01:00
Jakob Lykke Andersen
aaa71b0606 Towards a solution for sphinx-doc/sphinx#1704.
Elements now get multiple ids to keep permalinks permanent. The default
id is the newest style, which is used as the shown permalink and in the
index. The old style ids have been (partially) replicated and are
temporarily used as the default id for testing purposes.
2015-02-04 10:11:58 +01:00
Georg Brandl
3068f6c7f1 Merge pull request #1705 from jakobandersen/cpp-declspecs-on-right
C++, fix #1689
2015-02-04 06:37:13 +01:00
Jakob Lykke Andersen
5f0977ca30 C++, add support for 'const', 'volatile', etc. on the right-hand side of the type. 2015-02-03 09:18:18 +01:00
Georg Brandl
a23903d8d5 Merge branch 'stable' 2015-01-03 21:41:14 +01:00
Jakob Lykke Andersen
c010b47589 C++, initial enum support (see #772) 2015-01-03 16:59:08 +01:00
Takayuki Shimizukawa
da651089e7 fix trailing space and long line 2014-10-09 23:53:33 +09:00