forked from github/verilator
Internals: Cleanup .txt file whitespace (#3842)
This commit is contained in:
parent
4370490a71
commit
2ab70ba452
@ -191,7 +191,7 @@ void VerilatedFst::declare(uint32_t code, const char* name, int dtypenum, fstVar
|
||||
if ((new_it->back() & 0x80)) {
|
||||
tmpModName = *new_it;
|
||||
tmpModName.pop_back();
|
||||
// If the scope ends with a non-ascii character, it will be 0x80 + fstScopeType
|
||||
// If the scope ends with a non-ASCII character, it will be 0x80 + fstScopeType
|
||||
fstWriterSetScope(m_fst, static_cast<fstScopeType>(new_it->back() & 0x7f),
|
||||
tmpModName.c_str(), nullptr);
|
||||
} else {
|
||||
|
@ -33,7 +33,7 @@ foreach my $file (sort keys %files) {
|
||||
}
|
||||
if ($contents =~ /[ \t]\n/
|
||||
|| $contents =~ m/\n\n+$/) { # Regexp repeated below
|
||||
my $eol_ws_exempt = ($file =~ /(\.txt|\.html)$/
|
||||
my $eol_ws_exempt = ($file =~ /spelling.txt$/
|
||||
|| $file =~ m!/gtkwave/!);
|
||||
next if $eol_ws_exempt;
|
||||
if ($ENV{HARNESS_UPDATE_GOLDEN}) {
|
||||
@ -49,7 +49,7 @@ foreach my $file (sort keys %files) {
|
||||
my $line_no = 0;
|
||||
foreach my $line (@lines) {
|
||||
$line_no++;
|
||||
# Trim trailing carriage-return (ascii 0xd) and form feed (0xc),
|
||||
# Trim trailing carriage-return (ASCII 0x0d) and form feed (0x0c),
|
||||
# as we expect a few of those
|
||||
$line =~ s/[\x{d}\x{c}]//g;
|
||||
if ($line =~ /\s$/) {
|
||||
|
@ -24,4 +24,3 @@ set(VERILATOR_OPTIONS "${VERILATOR_OPTIONS}" --hierarchical --stats --CFLAGS "-p
|
||||
|
||||
verilate(t_hier_block_cmake VERILATOR_ARGS ${VERILATOR_OPTIONS} SOURCES
|
||||
../t_hier_block.v )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user