[PATCH v1 10/10] CoverageReaderTSIM.cc: Fix formatting

Ryan Long ryan.long at oarcorp.com
Thu Sep 2 19:24:39 UTC 2021


---
 tester/covoar/CoverageReaderTSIM.cc | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tester/covoar/CoverageReaderTSIM.cc b/tester/covoar/CoverageReaderTSIM.cc
index 9c6ff7d..11f0be6 100644
--- a/tester/covoar/CoverageReaderTSIM.cc
+++ b/tester/covoar/CoverageReaderTSIM.cc
@@ -61,7 +61,7 @@ namespace Coverage {
         break;
       }
 
-      for (i = 0; i < 0x80; i += 4) {
+      for ( i = 0; i < 0x80; i += 4 ) {
         unsigned int a;
 
         coverageFile >> std::hex >> cover >> std::dec;
@@ -69,9 +69,9 @@ namespace Coverage {
           std::cerr << "CoverageReaderTSIM: WARNING! Short line in "
                     << file
                     << " at address 0x"
-                    << std::hex << std::setfill('0')
+                    << std::hex << std::setfill( '0' )
                     << baseAddress
-                    << std::setfill(' ') << std::dec
+                    << std::setfill( ' ' ) << std::dec
                     << std::endl;
           break;
         }
@@ -82,8 +82,10 @@ namespace Coverage {
         //
         a = baseAddress + i;
         aCoverageMap = executableInformation->getCoverageMap( a );
-        if ( !aCoverageMap )
+        if ( !aCoverageMap ) {
           continue;
+        }
+
         if ( cover & 0x01 ) {
           aCoverageMap->setWasExecuted( a );
           aCoverageMap->setWasExecuted( a + 1 );
-- 
1.8.3.1



More information about the devel mailing list