summaryrefslogtreecommitdiff
path: root/sphinx/domains/cpp.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow multi-line object description signatures (#11011)TLouf2023-05-111-1/+21
| | | | | Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com> Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com> Co-authored-by: TLouf <loufthomas@gmail.com>
* Resolve lint errors from Ruff 0.0.260Adam Turner2023-03-311-1/+1
|
* Resolve lint errors from Ruff 0.0.257Adam Turner2023-03-181-5/+5
|
* Resolve ``flake8-return`` errorsAdam Turner2023-02-181-34/+20
|
* Fix COM812Adam Turner2023-02-181-29/+29
|
* Resolve Ruff SIM114 violationsAdam Turner2023-02-151-3/+1
|
* Adopt ``profile = "black"`` for ``isort``Adam Turner2023-01-071-7/+21
| | | | This allows using Ruff's import sorting fixers
* Use ``re`` flagsAdam Turner2023-01-021-8/+8
|
* Run pyupgrade (#11070)Adam Turner2023-01-021-184/+181
|
* Use PEP 604 typesAdam Turner2023-01-011-65/+61
|
* Use PEP 595 typesAdam Turner2023-01-011-78/+77
|
* Insert ``from __future__ import annotations``Adam Turner2023-01-011-0/+2
|
* remove blanket 'noqas'Daniel Eades2022-12-161-9/+18
|
* Run the ``pyupgrade`` toolAdam Turner2022-10-171-17/+17
|
* Finer grained control over domain ToC entries (#10886)Adam Turner2022-09-301-1/+1
| | | | | - Implement `:nocontentsentry:` flag - Use `:nocontentsentry:` in docs - Add domain object table of contents configuration option
* Add contents entries for domain objects (#10807)Adam Turner2022-09-131-0/+1
| | | | | | | | | - Add entries in the table of contents for domain objects (e.g. `py:function`, `rst:role`, etc). Supported domains are Javascript, Python, and reStructuredText. - Support content in `py:module` and `js:module` directives. - Add the `noindexentry` and `noindex` flags to more domains. - Add `toc_object_entries_show_parents` configuration setting - Update documentation and tests
* Fix more strict static typing errors (#10681)danieleades2022-08-281-7/+10
|
* C++, bump env version due to AST and Symbol changesJakob Lykke Andersen2022-07-291-1/+1
|
* C++, fix parsing of certain non-type template parametersJakob Lykke Andersen2022-07-291-7/+19
| | | | Specifically 'template<int (X::*)(bool)...>'
* C++, ensure merging case is as assumedJakob Lykke Andersen2022-07-291-5/+6
|
* [C++] Ensure consistent non-specialization template argument representationJeremy Maitin-Shepard2022-07-291-31/+78
| | | | | Previously, in certain cases the template arguments of non-specializations were retained, leading to incorrect merging of symbols.
* C++, bump env version because of PRJakob Lykke Andersen2022-07-251-1/+1
|
* C++, refactor requires clause ID handlingJakob Lykke Andersen2022-07-241-19/+28
|
* C++, PR revisionJakob Lykke Andersen2022-07-241-25/+18
|
* [C++] Allow template prefix on union declarationsJeremy Maitin-Shepard2022-07-241-1/+1
|
* [C++] Allow trailing requires-clause on constructorsJeremy Maitin-Shepard2022-07-241-1/+8
|
* [C++] Allow trailing-requires-clause on functions without a template prefixJeremy Maitin-Shepard2022-07-241-2/+1
|
* [C++] Support requires-clause in more placesJeremy Maitin-Shepard2022-07-241-33/+66
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Lint with `flake8-bugbear` (#10602)danieleades2022-07-121-20/+18
| | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Remove redundant static typing casts (#10612)danieleades2022-07-021-2/+1
|
* simplify dict key checks (SIM118)Daniel Eades2022-06-031-1/+1
|
* C and C++, support attribtues on enumeratorsJakob Lykke Andersen2022-04-171-2/+11
| | | | Fixes sphinx-doc/sphinx#10341
* C and C++, refactor attribute listsJakob Lykke Andersen2022-04-171-78/+49
|
* C++, bump env version for cond exprJakob Lykke Andersen2022-04-171-1/+1
|
* C++, simplify assginemnt-expression parsingJakob Lykke Andersen2022-04-171-68/+59
|
* C++, var naming style in cond exprJakob Lykke Andersen2022-04-171-14/+14
|
* C++, use Itanium mangling for conditional exprJakob Lykke Andersen2022-04-171-1/+1
|
* [C++] Support conditional operator "?"Jeremy Maitin-Shepard2022-04-171-6/+61
|
* Merge pull request #10212 from AA-Turner/remove-module-docstring-titlesTakeshi KOMIYA2022-03-141-9/+1
|\ | | | | Remove module docstring titles
| * Collapse single line docstringsAdam Turner2022-02-201-2/+1
| |
| * Remove copyright and licence fieldsAdam Turner2022-02-201-3/+0
| |
| * Fix module docstring indentationAdam Turner2022-02-201-2/+2
| |
| * Fix module docstring first lineAdam Turner2022-02-201-2/+1
| |
| * Remove module titles in docstringsAdam Turner2022-02-191-3/+0
| |
* | C++, bump env version due to updated ASTJakob Lykke Andersen2022-03-121-1/+1
| |
* | C++, minor formattingJakob Lykke Andersen2022-03-121-4/+2
| |
* | Update sphinx/domains/cpp.pyJeremy Maitin-Shepard2022-03-111-1/+1
| | | | | | Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
* | Update sphinx/domains/cpp.pyJeremy Maitin-Shepard2022-03-111-1/+1
| | | | | | Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
* | Update sphinx/domains/cpp.pyJeremy Maitin-Shepard2022-03-111-1/+1
| | | | | | Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
* | Update sphinx/domains/cpp.pyJeremy Maitin-Shepard2022-03-111-1/+1
| | | | | | Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>