Skip to content

Commit

Permalink
Extern examples and hax removal
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobandersen committed May 10, 2020
1 parent e1d3806 commit 439fc74
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
10 changes: 0 additions & 10 deletions breathe/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,16 +495,6 @@ class DoxygenVariableDirective(DoxygenBaseItemDirective):

kind = "variable"

def render(self, node_stack, project_info, options, filter_, target_handler, mask_factory):
# Remove 'extern' keyword as Sphinx doesn't support it.
definition = node_stack[0].definition
extern = 'extern '
if definition.startswith(extern):
definition = definition[len(extern):]
self.directive_args[1] = [definition]
return DoxygenBaseItemDirective.render(self, node_stack, project_info, options, filter_,
target_handler, mask_factory)


class DoxygenDefineDirective(DoxygenBaseItemDirective):

Expand Down
12 changes: 12 additions & 0 deletions documentation/source/specific.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ Namespaced Function Examples
.. doxygenfunction:: ClassTest::anotherFunction
:path: ../../examples/specific/class/xml

Extern Examples
---------------

.. cpp:namespace:: @ex_specific_extern_examples

.. doxygenfunction:: cache_tree_matches_traversal
:project: c_file

.. doxygenvariable:: global_cache_tree
:project: c_file


Alias Example
-------------

Expand Down

0 comments on commit 439fc74

Please sign in to comment.