How to display only class name in doxigen class diagrams?

Using doxygen and graphviz with my C # project, I can generate class diagrams on the documentation pages. These diagrams contain the full class names and namespaces in them, for example

Acme.MyProduct.MyClasses.MyClass

Is it possible to configure doxygen to shorten this a bit to the class name?

MyClass

Full-fledged paths make even simple diagrams quite wide and bulky. I would like to minimize the need for horizontal scrolling.

+3
source share
2 answers

, , , , ( ). "HIDE_SCOPE_NAMES". YES ( GUI doxywizard) . doxygen:

# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen 
# will show members with their full class and namespace scopes in the 
# documentation. If set to YES the scope will be hidden.

HIDE_SCOPE_NAMES       = YES
+9

HIDE_SCOPE_NAMES , , / .

, . , .

, "COMPANY_NAMESPACE" "sf", :

# The INPUT_FILTER tag can be used to specify a program that doxygen should 
# invoke to filter for each input file. Doxygen will invoke the filter program 
# by executing (via popen()) the command <filter> <input-file>, where <filter> 
# is the value of the INPUT_FILTER tag, and <input-file> is the name of an 
# input file. Doxygen will then use the output that the filter program writes 
# to standard output.  If FILTER_PATTERNS is specified, this tag will be 
# ignored.

INPUT_FILTER           = "sed 's,COMPANY_NAMESPACE,sf,'"
+2

Source: https://habr.com/ru/post/1740156/


All Articles