dotter

graphiz helpers
git clone git://deadbeef.fr/dotter.git
Log | Files | Refs | README | LICENSE

commit 5ca44f4ee7d602ab2102f99423f076b98ab87abb
parent 02314bf67f8f408ec26a44b8db641d43312bbdb8
Author: Morel Bérenger <berengermorel76@gmail.com>
Date:   Mon,  4 Sep 2023 19:17:54 +0200

uml: do not show scopes for enums

Diffstat:
Muml | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/uml b/uml @@ -77,7 +77,6 @@ BEGIN { class = ""; prev_class = ""; class_type = ""; - scope = "[ ]"; inside = ""; } @@ -127,6 +126,7 @@ $1 == "enum" || $1 == "bitfield" || is_class( $1 ) { special = ""; # for templates, enums, bitfields, structs (why not)... if ( class_type != "class" ) { + scope = ""; special = "«" class_type; if ( fields_max != 0 ) { @@ -155,7 +155,7 @@ $1 == "var" { printf( "|" ); inside = "var"; } - printf( "%s %s : %s", scope, $3, $2 ); + printf( "%s%s : %s", scope, $3, $2 ); if( NF == 4 ) { printf( " = %s", $4 );