[PATCH rtems-tools v3 1/7] CoverageRanges.cc: Fix formatting

Ryan Long ryan.long at oarcorp.com
Mon Sep 27 12:49:42 UTC 2021


---
 tester/covoar/CoverageRanges.cc | 13 +++++--------
 tester/covoar/CoverageRanges.h  | 13 +++++++------
 2 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/tester/covoar/CoverageRanges.cc b/tester/covoar/CoverageRanges.cc
index 159c556..cfd58df 100644
--- a/tester/covoar/CoverageRanges.cc
+++ b/tester/covoar/CoverageRanges.cc
@@ -13,7 +13,7 @@ namespace Coverage {
   /*!
    *  This member variable tracks a unique index for the ranges_t block.
    */
-  uint32_t  id_m = 0;
+  uint32_t id_m = 0;
 
   CoverageRanges::CoverageRanges()
   {
@@ -41,14 +41,12 @@ namespace Coverage {
     set.push_back(c);
   }
 
-  uint32_t  CoverageRanges::getId( uint32_t lowAddress )
+  uint32_t CoverageRanges::getId( uint32_t lowAddress )
   {
-    Coverage::CoverageRanges::ranges_t::iterator    ritr;
-    uint32_t                                        result = 0;
+    Coverage::CoverageRanges::ranges_t::iterator ritr;
+    uint32_t                                     result = 0;
 
-    for (ritr =  set.begin() ;
-         ritr != set.end() ;
-         ritr++ ) {
+    for ( ritr =  set.begin() ; ritr != set.end() ; ritr++ ) {
       if ( ritr->lowAddress == lowAddress ) {
         result = ritr->id;
         break;
@@ -57,5 +55,4 @@ namespace Coverage {
 
     return result;
   }
-
 }
diff --git a/tester/covoar/CoverageRanges.h b/tester/covoar/CoverageRanges.h
index e3b651d..3d77df2 100644
--- a/tester/covoar/CoverageRanges.h
+++ b/tester/covoar/CoverageRanges.h
@@ -42,35 +42,35 @@ namespace Coverage {
        *  This member contains an identification number for this
        *  coverage range.
        */
-      uint32_t          id;
+      uint32_t id;
 
       /*!
        *  This member contains the low address of this coverage
        *  range.
        */
-      uint32_t          lowAddress;
+      uint32_t lowAddress;
 
       /*!
        *  This member contains the source line associated with the
        *  low address for this coverage range.
        */
-      std::string       lowSourceLine;
+      std::string lowSourceLine;
 
       /*!
        * This member contains the high address for this coverage range.
        */
-      uint32_t          highAddress;
+      uint32_t highAddress;
 
       /*!
        *  This member contains the high source line for this coverage range.
        */
-      std::string       highSourceLine;
+      std::string highSourceLine;
 
       /*!
        * This member contains an instruction count for this coverage
        * address range.
        */
-      uint32_t          instructionCount;
+      uint32_t instructionCount;
 
       /*!
        *  This member contains the reason that this area was uncovered.
@@ -104,6 +104,7 @@ namespace Coverage {
      *  @param[in] lowAddressArg specifies the lowest address of the range
      *  @param[in] highAddressArg specifies the highest address of the range
      *  @param[in] why specifies the reason that the range was added
+     *  @param[in] numInstructions specifies the number of instructions
      *
      */
     void add(
-- 
1.8.3.1



More information about the devel mailing list