summaryrefslogtreecommitdiffstats
path: root/tester/covoar/covoar.cc
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-07-27 17:41:23 -0400
committerJoel Sherrill <joel@rtems.org>2021-08-03 15:56:53 -0500
commit987d912435832aec118a02e6e2f2160f4319ca71 (patch)
tree81079b028db81ecc05ea2203a34f56c3324f78fb /tester/covoar/covoar.cc
parentRemove dynamicLibrary global variable (diff)
downloadrtems-tools-987d912435832aec118a02e6e2f2160f4319ca71.tar.bz2
Remove projectName global variable
- Replaced projectName in app_common with a local variable in covoar() - Changed datatype to string - Changed conditionals to reflect this - Created projectName_m member variable for ReportsBase - Added parameter to Reports* constructors to initialize projectName_m
Diffstat (limited to 'tester/covoar/covoar.cc')
-rw-r--r--tester/covoar/covoar.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/tester/covoar/covoar.cc b/tester/covoar/covoar.cc
index 3894867..5f8de5b 100644
--- a/tester/covoar/covoar.cc
+++ b/tester/covoar/covoar.cc
@@ -178,6 +178,7 @@ int covoar(
Coverage::ObjdumpProcessor objdumpProcessor;
bool verbose = false;
std::string dynamicLibrary;
+ std::string projectName;
//
// Process command line options.
@@ -223,7 +224,7 @@ int covoar(
/*
* Check for project name.
*/
- if ( !projectName )
+ if ( projectName.empty() )
throw option_error( "project name -p" );
//
@@ -474,7 +475,12 @@ int covoar(
std::cerr << "Generate Reports" << std::endl;
for (const auto& setName : SymbolsToAnalyze->getSetNames()) {
- Coverage::GenerateReports( setName, allExplanations, verbose );
+ Coverage::GenerateReports(
+ setName,
+ allExplanations,
+ verbose,
+ projectName
+ );
}
// Write explanations that were not found.