diff options
author | Fabio Utzig <fabio.utzig@nordicsemi.no> | 2020-08-28 15:39:06 -0300 |
---|---|---|
committer | Fabio Utzig <fabio.utzig@nordicsemi.no> | 2020-09-09 09:46:46 -0300 |
commit | 8c4193027b6ed62c7eaf8c127f3b1b6fa8ca28a2 (patch) | |
tree | 19d4a80f539c2481fb6e37f40c1db5d15d9ddaf8 | |
parent | fabe685638c7f8fa24b3b0a44ac264cff5f1d160 (diff) | |
download | sphinx-git-8c4193027b6ed62c7eaf8c127f3b1b6fa8ca28a2.tar.gz |
domains: c: add missing intersphinx object types
For intersphinx to be able to resolve references to C-Domain objects, it
needs to have them declared in the obj_types dict. This is currently
missing enum, enumerator, struct and union so those can't be referenced
by an external project. This commit fixes the issue by adding them.
Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
-rw-r--r-- | sphinx/domains/c.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/domains/c.py b/sphinx/domains/c.py index d8ccc2e3d..a7bebdcda 100644 --- a/sphinx/domains/c.py +++ b/sphinx/domains/c.py @@ -3607,6 +3607,10 @@ class CDomain(Domain): 'macro': ObjType(_('macro'), 'macro'), 'type': ObjType(_('type'), 'type'), 'var': ObjType(_('variable'), 'data'), + 'enum': ObjType(_('enum'), 'enum'), + 'enumerator': ObjType(_('enumerator'), 'enumerator'), + 'struct': ObjType(_('struct'), 'struct'), + 'union': ObjType(_('union'), 'union'), } directives = { |