[rtems-tools commit] CoverageWriterTSIM.cc: Fix formatting
Joel Sherrill
joel at rtems.org
Mon Sep 13 14:47:04 UTC 2021
Module: rtems-tools
Branch: master
Commit: f5efee581b91a6ab8203f73a9258eaaa47194824
Changeset: http://git.rtems.org/rtems-tools/commit/?id=f5efee581b91a6ab8203f73a9258eaaa47194824
Author: Ryan Long <ryan.long at oarcorp.com>
Date: Fri Jul 9 16:02:45 2021 -0400
CoverageWriterTSIM.cc: Fix formatting
---
tester/covoar/CoverageWriterTSIM.cc | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/tester/covoar/CoverageWriterTSIM.cc b/tester/covoar/CoverageWriterTSIM.cc
index 9ec12e4..ed9da96 100644
--- a/tester/covoar/CoverageWriterTSIM.cc
+++ b/tester/covoar/CoverageWriterTSIM.cc
@@ -29,15 +29,15 @@ namespace Coverage {
void CoverageWriterTSIM::writeFile(
const std::string& file,
- CoverageMapBase* coverage,
- uint32_t lowAddress,
- uint32_t highAddress
+ CoverageMapBase* coverage,
+ uint32_t lowAddress,
+ uint32_t highAddress
)
{
- uint32_t a;
- int cover;
+ uint32_t a;
+ int cover;
std::ofstream coverageFile;
- int i;
+ int i;
/*
* read the file and update the coverage map passed in
@@ -54,23 +54,23 @@ namespace Coverage {
if ( coverageFile.fail() ) {
break;
}
+
for ( i = 0; i < 0x80; i += 4 ) {
- cover = ((coverage->wasExecuted( a + i )) ? 1 : 0);
+ cover = ( ( coverage->wasExecuted( a + i ) ) ? 1 : 0 );
coverageFile << cover << " ";
if ( coverageFile.fail() ) {
std::ostringstream what;
what << "write to " << file
<< " at address 0x"
- << std::hex << std::setfill('0')
- << std::setw(8) << a
- << std::setfill(' ') << std::dec
+ << std::hex << std::setfill( '0' )
+ << std::setw( 8 ) << a
+ << std::setfill( ' ' ) << std::dec
<< "failed";
throw rld::error( what, "CoverageWriterTSIM::writeFile" );
}
}
coverageFile << std::endl;
}
-
}
}
More information about the vc
mailing list