Commit Graph

112 Commits

Author SHA1 Message Date
Takeshi KOMIYA
ae60ed5b0b Merge branch '1.8' 2019-01-13 11:44:08 +09:00
Jakob Lykke Andersen
e9df857531 C++, parse all fold expressions 2019-01-06 12:03:17 +01:00
Jakob Lykke Andersen
8eb4ab0681 C++ fixes
- Hyperlinks for declarations involving east cv-qualifiers.
- Duplicate declaration error on function templates with constraints
  in the return type.
  Fixes sphinx-doc/sphinx#5755
2019-01-06 12:03:17 +01:00
Takeshi KOMIYA
76e9f57c2e Merge branch '1.8' 2019-01-02 16:16:25 +09:00
Takeshi KOMIYA
1b1ebd2c75 A happy new year! 2019-01-02 16:00:30 +09:00
Jon Dufresne
6978918ffc Replace use of six.text_type with str
This removes the last use of the six package allowing Sphinx to remove
it as a dependency.
2018-12-18 16:23:10 -08:00
Takeshi KOMIYA
d8b69c7f98
Merge pull request #5819 from jdufresne/coding-comment
Remove unnecessary encoding cookie from Python source files
2018-12-17 19:15:00 +09:00
Takeshi KOMIYA
c7ed4f3ddd
Merge pull request #5814 from jdufresne/str-format-coerce
Remove redundant coerce to str in string formatting
2018-12-17 19:08:28 +09:00
Jon Dufresne
bade33c7e4 Remove unnecessary encoding cookie from Python source files
In Python 3, the default encoding of source files is utf-8. The encoding
cookie is now unnecessary and redundant so remove it. For more details,
see the docs:

https://docs.python.org/3/howto/unicode.html#the-string-type

> The default encoding for Python source code is UTF-8, so you can
> simply include a Unicode character in a string literal ...

Includes a fix for the flake8 header checks to stop expecting an
encoding cookie.
2018-12-16 12:22:12 -08:00
Jon Dufresne
2b0096fba9 Remove redundant coerce to str in string formatting
When an object is passed to a string format placeholder '%s', Python
will implicitly call str() on the object. This applies to print() and
logging as well.
2018-12-16 10:03:45 -08:00
jfbu
30ec4b6bba Merge branch '1.8' 2018-12-16 18:34:05 +01:00
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