Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cmake cleanup: redo the documentation generation
[simgrid.git] / tools / doxygen / xbt_log_extract_hierarchy.pl
index 64d9a25..4de8b7f 100755 (executable)
@@ -5,6 +5,9 @@ use warnings;
 
 my $debug = 0;
 
+print "/* Generated file, do not edit */\n";
+print "/** \\addtogroup XBT_log_cats\n";
+print '        @{'"\n";
 
 # Search for calls to macros defining new channels, and prepare the tree representation
 my %ancestor;
@@ -87,7 +90,7 @@ sub parse_file {
         my ($name,$anc,$desc) = cleanup_ctn($1);
            
         # build the tree, checking for name conflict
-        die "ERROR: Category name conflict: $name used several times\n"
+        die "ERROR: Category name conflict: $name used several times (in $ancestor{$name} and $anc, last time in $filename)\n"
           if defined ($ancestor{$name}) && $ancestor{$name} ne $anc &&
               defined ($desc{$name}) && $desc{$name} ne $desc;
        $ancestor{$name}=$anc;
@@ -150,3 +153,6 @@ sub check_connection {
 }
 check_connection("XBT_LOG_ROOT_CAT");  
 map {warn "Category $_ does not seem to be connected to the root (anc=$ancestor{$_})\n";} grep {!defined $used{$_}} sort keys %ancestor;    
+
+       
+print "@}*/";
\ No newline at end of file