doc: add __subsystem attribute and c attributes
Add __subsystem to list of attributes for the parser, and make the c parser accept the same attributes than the cpp parser, after the change to use the c parser for ".c" files. Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
This commit is contained in:
parent
dcfe684440
commit
a56446051e
1 changed files with 7 additions and 3 deletions
10
doc/conf.py
10
doc/conf.py
|
@ -525,9 +525,13 @@ breathe_domain_by_extension = {
|
|||
# Error when parsing function declaration and more. This is a list
|
||||
# of strings that the parser additionally should accept as
|
||||
# attributes.
|
||||
cpp_id_attributes = ['__syscall', '__deprecated',
|
||||
'__may_alias', '__used', '__unused', '__weak',
|
||||
'__DEPRECATED_MACRO', 'FUNC_NORETURN']
|
||||
cpp_id_attributes = [
|
||||
'__syscall', '__deprecated', '__may_alias',
|
||||
'__used', '__unused', '__weak',
|
||||
'__DEPRECATED_MACRO', 'FUNC_NORETURN',
|
||||
'__subsystem',
|
||||
]
|
||||
c_id_attributes = cpp_id_attributes
|
||||
|
||||
# docs_title is used in the breadcrumb title in the zephyr docs theme
|
||||
html_context = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue