When a class contains a variable whose name contains the word "class" this apparently confuses the autocomment procedure.
e.g.:
class trial_good; // this works because the variable class_name has been renamed clazz_name
string clazz_name="trial_good";
function void f();
endfunction // f
endclass // trial_good
class trial_bad; // this fools the autocommenter, that ends reporting "function" as class name
string class_name="trial_bad";
function void f();
endfunction // f
endclass // function
Author Name: Andrea Fedeli Original Redmine Issue: 1259 from https://www.veripool.org
Original Assignee: Wilson Snyder (@wsnyder)
When a class contains a variable whose name contains the word "class" this apparently confuses the autocomment procedure.
e.g.:
class trial_good; // this works because the variable class_name has been renamed clazz_name string clazz_name="trial_good"; function void f(); endfunction // f endclass // trial_good
class trial_bad; // this fools the autocommenter, that ends reporting "function" as class name string class_name="trial_bad"; function void f(); endfunction // f endclass // function