Skip to content

Commit fe088f0

Browse files
Marcin Makadeb-intel
authored andcommitted
conf: switch breathe to import into cpp domain
Cpp domain provides much better formatting in Sphinx. Initialized enum items are correctly displayed, pointer to functions typedef-ed in place also works fine. Other projects also tend to use cpp domain for import from C headers. With this commit, breathe stops enforcing C and this seems to be enough for consistent import. Running breathe with different options I found that it imports everything into cpp domain w/o extra options, cpp seems to be the default one, and the output is correct (see also breathe-doc/breathe#282 (comment)). Note that doxygen always outputs <compounddef id="component_8h" kind="file" language="C++">. The doxygen is already configured with OPTIMIZE_OUTPUT_FOR_C = YES and adding EXTENSION_MAPPING = h=C does not make any difference too. Signed-off-by: Marcin Maka <marcin.maka@linux.intel.com>
1 parent 17a327b commit fe088f0

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎conf.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,3 @@ def setup(app):
191191
}
192192
breathe_default_project = "SOF Project"
193193
breathe_default_members = ('members', 'undoc-members', 'content-only')
194-
breathe_domain_by_extension = {
195-
"h" : "c",
196-
}

0 commit comments

Comments
 (0)