Coverage of each parametarized module is counted separately.

This commit is contained in:
Wilson Snyder
2009-01-05 14:16:09 -05:00
parent 3d06720628
commit 41555e5aa3
3 changed files with 8 additions and 3 deletions
+3 -2
View File
@@ -90,9 +90,10 @@ private:
// We could use the basename of the filename to the page, but seems better for code
// from an include file to be listed under the module using it rather than the include file.
// Note the module name could have parameters appended, thus we use origName.
// Note the module name could have parameters appended, we'll consider this
// a feature as it allows for each parameterized block to be counted separately.
// Someday the user might be allowed to specify a different page suffix
string page = page_prefix + "/" + m_modp->origName();
string page = page_prefix + "/" + m_modp->prettyName();
AstCoverDecl* declp = new AstCoverDecl(fl, column, page, comment);
declp->hier(hier);