Merge tag 'docs-6.5-2' of git://git.lwn.net/linux
[platform/kernel/linux-starfive.git] / scripts / kernel-doc
index 8c392fb..d0116c6 100755 (executable)
@@ -1319,6 +1319,9 @@ sub dump_enum($$) {
     my $file = shift;
     my $members;
 
+    # ignore members marked private:
+    $x =~ s/\/\*\s*private:.*?\/\*\s*public:.*?\*\///gosi;
+    $x =~ s/\/\*\s*private:.*}/}/gosi;
 
     $x =~ s@/\*.*?\*/@@gos;    # strip comments.
     # strip #define macros inside enums