diff --git a/docs/doxygen-mainpage b/docs/doxygen-mainpage index 877e82960..2d0c282a3 100644 --- a/docs/doxygen-mainpage +++ b/docs/doxygen-mainpage @@ -3,4 +3,4 @@ * \section intro_sec Introduction * * This is a full doxygen analysis of the Verilator source tree. - */ \ No newline at end of file + */ diff --git a/test_regress/t/t_array_unpacked_public.v b/test_regress/t/t_array_unpacked_public.v index 556b85a98..a54ea36e2 100644 --- a/test_regress/t/t_array_unpacked_public.v +++ b/test_regress/t/t_array_unpacked_public.v @@ -17,5 +17,4 @@ endmodule module array_test( input din [0:15] ); - -endmodule \ No newline at end of file +endmodule diff --git a/test_regress/t/t_dist_whitespace.pl b/test_regress/t/t_dist_whitespace.pl index 86d3c9a64..1168b44d9 100755 --- a/test_regress/t/t_dist_whitespace.pl +++ b/test_regress/t/t_dist_whitespace.pl @@ -20,10 +20,16 @@ foreach my $file (sort keys %files) { my $contents = file_contents($filename); if ($file =~ /\.out$/) { # Ignore golden files + next; } elsif ($contents =~ /[\001\002\003\004\005\006]/) { - # Ignore binrary files - } elsif ($contents =~ /[ \t]\n/ - || $contents =~ m/\n\n+$/) { # Regexp repeated below + # Ignore binary files + next; + } + if ($contents !~ /\n$/s && $contents ne "") { + $warns{$file} = "Missing trailing newline in $file"; + } + if ($contents =~ /[ \t]\n/ + || $contents =~ m/\n\n+$/) { # Regexp repeated below my $eol_ws_exempt = ($file =~ /(\.txt|\.html)$/ || $file =~ m!^README$! || $file =~ m!/gtkwave/!); diff --git a/test_regress/t/t_inside_wild.v b/test_regress/t/t_inside_wild.v index d0ed5f3c7..103721c31 100644 --- a/test_regress/t/t_inside_wild.v +++ b/test_regress/t/t_inside_wild.v @@ -80,4 +80,4 @@ module Test (/*AUTOARG*/ out <= in inside {5'b1_1?1?}; end -endmodule // t \ No newline at end of file +endmodule