History

scripts: kernel-doc: support private / public marking for enums

Enums benefit from private markings, too. For netlink attribute name enums always end with a pair of __$n_MAX and $n_MAX members. Documenting them feels a bit tedious.

Jakub Kicinski committed 3 years ago

Commit e27cb891 parent 1e6115f1 file · +3 −0Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kernel-doc+3−0
@@ -1301,6 +1301,9 @@ sub dump_enum($$) { · 1300 unmodified lines
1301 my $file = shift;1301 my $file = shift;
1302 my $members;1302 my $members;
1303 1303
1304 # ignore members marked private:
1305 $x =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gosi;
1306 $x =~ s/\/\*\s*private:.*}/}/gosi;
1304 1307
1305 $x =~ s@/\*.*?\*/@@gos; # strip comments.1308 $x =~ s@/\*.*?\*/@@gos; # strip comments.
1306 # strip #define macros inside enums1309 # strip #define macros inside enums