[PATCH v1 09/10] CoverageReaderSkyeye.cc: Fix formatting
Ryan Long
ryan.long at oarcorp.com
Thu Sep 2 19:24:38 UTC 2021
---
tester/covoar/CoverageReaderSkyeye.cc | 21 ++++++++++++---------
1 file changed, 12 insertions(+), 9 deletions(-)
diff --git a/tester/covoar/CoverageReaderSkyeye.cc b/tester/covoar/CoverageReaderSkyeye.cc
index de0d4ad..abb3878 100644
--- a/tester/covoar/CoverageReaderSkyeye.cc
+++ b/tester/covoar/CoverageReaderSkyeye.cc
@@ -64,13 +64,13 @@ namespace Coverage {
//
// Read and process each line of the coverage file.
//
- for (i = 0; i < length; i += 8) {
+ for ( i = 0; i < length; i += 8 ) {
coverageFile.read( (char *) &cover, sizeof( uint8_t ) );
if ( coverageFile.gcount() != sizeof( uint8_t ) ) {
std::cerr << "CoverageReaderSkyeye::ProcessFile - breaking after 0x"
- << std::hex << std::setfill('0')
- << std::setw(8) << i
- << std::setfill(' ') << std::dec
+ << std::hex << std::setfill( '0' )
+ << std::setw( 8 ) << i
+ << std::setfill( ' ' ) << std::dec
<< " in " << file
<< std::endl;
break;
@@ -82,9 +82,12 @@ namespace Coverage {
//
// NOTE: This method ONLY works for Skyeye in 32-bit mode.
//
- if (cover & 0x01) {
- aCoverageMap = executableInformation->getCoverageMap( baseAddress + i );
- if (aCoverageMap) {
+ if ( cover & 0x01 ) {
+ aCoverageMap = executableInformation->getCoverageMap(
+ baseAddress + i
+ );
+
+ if ( aCoverageMap ) {
aCoverageMap->setWasExecuted( baseAddress + i );
aCoverageMap->setWasExecuted( baseAddress + i + 1 );
aCoverageMap->setWasExecuted( baseAddress + i + 2 );
@@ -92,11 +95,11 @@ namespace Coverage {
}
}
- if (cover & 0x10) {
+ if ( cover & 0x10 ) {
aCoverageMap = executableInformation->getCoverageMap(
baseAddress + i + 4
);
- if (aCoverageMap) {
+ if ( aCoverageMap ) {
aCoverageMap->setWasExecuted( baseAddress + i + 4 );
aCoverageMap->setWasExecuted( baseAddress + i + 5 );
aCoverageMap->setWasExecuted( baseAddress + i + 6 );
--
1.8.3.1
More information about the devel
mailing list