C++11: Remove pre-c11 VL_OVERRIDE etc. No functional change.

This commit is contained in:
Wilson Snyder
2020-08-16 11:44:05 -04:00
parent 2118038cb9
commit 7c54a451a9
104 changed files with 1608 additions and 2125 deletions
+2 -2
View File
@@ -709,7 +709,7 @@ sub tree_base {
# saves one comparison.
if ($out_for_type_sc[0]) { # Short-circuited types
$self->print(" // Generated by astgen with short-circuiting\n",
" virtual void visit(Ast${type}* nodep) VL_OVERRIDE {\n",
" virtual void visit(Ast${type}* nodep) override {\n",
" iterateAndNextNull(nodep->lhsp());\n",
@out_for_type_sc);
$self->print(" iterateAndNextNull(nodep->rhsp());\n",
@@ -720,7 +720,7 @@ sub tree_base {
} elsif ($out_for_type[0]) { # Other types with something to print
my $skip = $self->{tree_skip_visit}{$type};
my $gen = $skip ? "Gen" : "";
my $override = $skip ? "" : " VL_OVERRIDE";
my $override = $skip ? "" : " override";
$self->print(" // Generated by astgen\n",
" virtual void visit$gen(Ast${type}* nodep)${override} {\n",
($skip?"":