Files
sphinx/tests
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
..
2022-03-19 23:16:27 +00:00
2020-11-20 19:43:02 +01:00
2022-05-02 17:51:26 +01:00
2022-03-07 15:17:45 +00:00
2022-02-20 03:13:45 +00:00
2022-02-20 03:13:45 +00:00
2022-06-15 10:15:53 +01:00
2022-02-20 03:13:45 +00:00
2022-02-20 03:13:45 +00:00
2022-02-20 03:13:45 +00:00