Jakob Lykke Andersen
66f98957b1
C++, ensure merging case is as assumed
2022-07-29 18:14:45 +02:00
Jeremy Maitin-Shepard
5b97ec522a
[C++] Ensure consistent non-specialization template argument representation
...
Previously, in certain cases the template arguments of
non-specializations were retained, leading to incorrect merging of symbols.
2022-07-29 18:14:41 +02:00
Jeremy Maitin-Shepard
3bd80e7c54
[C++] Allow template prefix on union declarations
2022-07-24 21:37:56 +02:00
Jeremy Maitin-Shepard
33f5474951
[C++] Allow trailing requires-clause on constructors
2022-07-24 21:37:56 +02:00
Jeremy Maitin-Shepard
9694aa5a26
[C++] Allow trailing-requires-clause on functions without a template prefix
2022-07-24 21:37:56 +02:00
Jeremy Maitin-Shepard
ac1b0d490c
[C++] Support requires-clause in more places
...
Previously a C++20 requires-clause was only supported on `function`
declarations. However, the C++ standard allows a require-clause on
class/union templates, alias templates, and variable templates, and
also allows a requires clause after each template parameter list, not
just the final one.
This moves the requiresClause to be a property of `ASTTemplateParams`
rather than `ASTDeclaration` to better match the C++ grammar and
allows requires clauses in many places that are supported by C++20 but
were not previously allowed by Sphinx, namely:
- On class templates, alias templates, and variable templates
- After each template parameter list, not just the last one.
- After the template parameter list in template template parameters.
When encoding the id, the requires clause of the last template
parameter list is treated specially in order to preserve compatibility
with existing v4 ids.
2022-07-24 21:37:56 +02:00
danieleades
25d379fb53
Lint with flake8-bugbear
( #10602 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2022-07-12 22:55:57 +01:00
danieleades
12e86ff0e1
Use the flake8-comprehensions
lint plugin ( #10601 )
2022-06-26 14:43:05 +01:00
Daniel Eades
55a0143df7
remove unnecessary list calls around 'sorted' (C413)
2022-06-03 13:15:42 +01:00
Adam Turner
971040b4b7
Merge branch '5.x' into fix-warnings
...
# Conflicts:
# tests/test_search.py
2022-05-02 17:05:42 +01:00
Adam Turner
24e3b7c8c8
.read_text()
-> .read_text(encoding='utf8')
2022-04-27 03:04:19 +01:00
Jakob Lykke Andersen
2ec069ba9c
C and C++, support attribtues on enumerators
...
Fixes sphinx-doc/sphinx#10341
2022-04-17 17:27:30 +02:00
Jakob Lykke Andersen
991fe26fa5
C and C++, refactor attribute lists
2022-04-17 17:17:19 +02:00
Jakob Lykke Andersen
7dd1e5bbcf
C++, simplify assginemnt-expression parsing
2022-04-17 14:22:24 +02:00
Jakob Lykke Andersen
a36c09a97f
C++, use Itanium mangling for conditional expr
2022-04-17 14:22:24 +02:00
Jeremy Maitin-Shepard
2d2e0ac01a
[C++] Support conditional operator "?"
2022-04-17 14:22:24 +02:00
Takeshi KOMIYA
b12b39db05
Merge pull request #10212 from AA-Turner/remove-module-docstring-titles
...
Remove module docstring titles
2022-03-14 02:14:17 +09:00
Jakob Lykke Andersen
9362df53be
C++, minor formatting
2022-03-12 20:05:26 +01:00
Jeremy Maitin-Shepard
a9a5cec681
Update tests/test_domain_cpp.py
...
Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
2022-03-11 05:03:05 -08:00
Jeremy Maitin-Shepard
2c1e4c437e
Update tests/test_domain_cpp.py
...
Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
2022-03-11 05:02:59 -08:00
Jeremy Maitin-Shepard
ce82f9ee9c
Update tests/test_domain_cpp.py
...
Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
2022-03-11 05:02:54 -08:00
Jeremy Maitin-Shepard
670e8b149f
[C++] Support attributes on class and union and improve formatting
2022-03-10 22:03:42 -08:00
Adam Turner
5775912455
Collapse single line docstrings
2022-02-20 03:13:45 +00:00
Adam Turner
6bb7b891a1
Remove copyright and licence fields
2022-02-20 03:06:23 +00:00
Adam Turner
5694e0ce60
Fix module docstring indentation
2022-02-20 00:35:13 +00:00
Adam Turner
4f5a3269a6
Fix module docstring first line
2022-02-20 00:11:08 +00:00
Adam Turner
6b8bccec59
Remove module titles in docstrings
2022-02-19 23:17:29 +00:00
Takeshi KOMIYA
b84771dcd2
A happy new year!
2022-01-01 18:45:03 +09:00
Jakob Lykke Andersen
c09643c21f
C, fix parsing of fundamental types
...
When multiple simple type specifiers are part of the type,
then they may appear in any order.
2021-11-30 22:00:54 +01:00
Jakob Lykke Andersen
67d673406f
C++, fix parsing of fundamental types
...
When multiple simple type specifiers are part of the type,
then they may appear in any order.
2021-11-30 22:00:20 +01:00
Jakob Lykke Andersen
73c1520923
C++, fix parsing of defaulted fp function params
2021-08-20 18:17:42 +02:00
Jakob Lykke Andersen
a4371ea94c
C++, update fundamental type handling a la in C
2021-08-20 17:15:34 +02:00
Jakob Lykke Andersen
358efdd8f3
C++, fix name mangling of literals with digit seps
2021-06-28 19:30:59 +02:00
Jakob Lykke Andersen
450d5caa37
C++, support constrains in placeholders
2021-06-24 22:32:23 +02:00
Jakob Lykke Andersen
7bc2e052c5
C++, C, support digit separators in literals
2021-06-24 21:12:26 +02:00
Jakob Lykke Andersen
799c53aa11
C++, support explicit(<expr>) specifier
2021-06-24 20:26:22 +02:00
Jakob Lykke Andersen
d5da6fdf50
C++, support char8_t
2021-06-24 19:45:44 +02:00
Jakob Lykke Andersen
b94a60dc89
C++, support consteval and constinit
2021-06-24 19:39:15 +02:00
Jakob Lykke Andersen
57237dbb07
C++, support inline variables
2021-06-24 19:15:54 +02:00
Jakob Lykke Andersen
98f827ceee
Refactor C++ tests
2021-06-03 20:01:21 +02:00
Jakob Lykke Andersen
783314d54d
Field roles, add C++ test
2021-06-03 16:52:38 +02:00
Jakob Lykke Andersen
87414faa92
Decl styling, fix cpp tests
2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
14f7d243bd
Decl styling, more nodes and C++ conversion
2021-04-12 19:05:58 +02:00
Jakob Lykke Andersen
72e231d0e6
C and C++, fix nested paramter lists
2021-03-04 21:28:18 +01:00
Jakob Lykke Andersen
4052cbc9b1
C++, support spaceship operator
...
Fixes sphinx-doc/sphinx#8942
2021-03-02 20:22:22 +01:00
Takeshi KOMIYA
30f8640bab
Merge branch '3.x'
2021-01-16 21:51:46 +09:00
Jakob Lykke Andersen
f7a1d66359
C++, fix object types for xrefs
...
Make them all work with intersphinx.
Strengthen templateParam a bit.
2021-01-11 20:51:36 +01:00
Takeshi KOMIYA
4b452338f9
Merge branch '3.x'
2021-01-01 13:57:19 +09:00
Takeshi KOMIYA
f996859420
A happy new year!
...
.. note::
$ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \;
$ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
2021-01-01 13:40:48 +09:00
Takeshi KOMIYA
3a4ae2092a
Merge branch '3.x'
2020-11-21 01:01:36 +09:00