summaryrefslogtreecommitdiffstats
path: root/tester/covoar/ReportsHtml.cc
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-07-27 15:49:02 -0400
committerJoel Sherrill <joel@rtems.org>2021-08-03 15:56:53 -0500
commit0c6f57a25abdff1d75362cb28be2796a333c56aa (patch)
tree1c97e3c14b0a33a590af2c4eb7d8ae414f675fdd /tester/covoar/ReportsHtml.cc
parentReportsText.cc: Restore ostream format (diff)
downloadrtems-tools-0c6f57a25abdff1d75362cb28be2796a333c56aa.tar.bz2
Remove AllExplanations global variable
- Replaced AllExplanations in app_common with a local variable in covoar() - Added the allExplanations_m member variable to ReportsBase - Added a parameter to ReportsBase and its derived classes' constructors to initialize allExplanations_m - Added parameter to GenerateReports() to pass the variable from covoar() to the constructors for Reports*
Diffstat (limited to 'tester/covoar/ReportsHtml.cc')
-rw-r--r--tester/covoar/ReportsHtml.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/tester/covoar/ReportsHtml.cc b/tester/covoar/ReportsHtml.cc
index e276732..88ea25b 100644
--- a/tester/covoar/ReportsHtml.cc
+++ b/tester/covoar/ReportsHtml.cc
@@ -38,9 +38,10 @@ typedef rtems::utils::ostream_guard ostream_guard;
namespace Coverage {
ReportsHtml::ReportsHtml(
- time_t timestamp,
- const std::string& symbolSetName
- ): ReportsBase( timestamp, symbolSetName )
+ time_t timestamp,
+ const std::string& symbolSetName,
+ Coverage::Explanations& allExplanations
+ ): ReportsBase( timestamp, symbolSetName, allExplanations )
{
reportExtension_m = ".html";
}
@@ -506,7 +507,7 @@ namespace Coverage {
// See if an explanation is available and write the Classification and
// the Explination Columns.
- explanation = AllExplanations->lookupExplanation( range.lowSourceLine );
+ explanation = allExplanations_m.lookupExplanation( range.lowSourceLine );
if ( !explanation ) {
// Write Classificationditr->second.baseAddress
report << "<td class=\"covoar-td\" align=\"center\">NONE</td>"
@@ -654,7 +655,7 @@ namespace Coverage {
<< range.instructionCount << "</td>" << std::endl;
// See if an explanation is available
- explanation = AllExplanations->lookupExplanation( range.lowSourceLine );
+ explanation = allExplanations_m.lookupExplanation( range.lowSourceLine );
if ( !explanation ) {
report << "<td class=\"covoar-td\" align=\"center\">NONE</td>"
<< std::endl