C, keyword changes

- Add new keywords from C23.
- Add c_extra_keywords as confval.
- Move macro names from keywords to c_extra_keywords.

Fixes sphinx-doc/sphinx#9354
This commit is contained in:
Jakob Lykke Andersen
2021-06-16 22:08:30 +02:00
parent 8939a75efa
commit 50f5280603
4 changed files with 54 additions and 11 deletions

View File

@@ -2670,6 +2670,14 @@ Options for the C domain
.. versionadded:: 3.0
.. confval:: c_extra_keywords
A list of identifiers to be recognized as keywords by the C parser.
It defaults to ``['alignas', 'alignof', 'bool', 'complex', 'imaginary',
'noreturn', 'static_assert', 'thread_local']``.
.. versionadded:: 4.0.3
.. confval:: c_allow_pre_v3
A boolean (default ``False``) controlling whether to parse and try to