[rtems-tools commit] CoverageRanges.cc: Fix formatting

Joel Sherrill joel at rtems.org
Tue Sep 28 14:07:47 UTC 2021


Module:    rtems-tools
Branch:    master
Commit:    c75f883c2c69e9ab0c41e2c62c72f83080b42780
Changeset: http://git.rtems.org/rtems-tools/commit/?id=c75f883c2c69e9ab0c41e2c62c72f83080b42780

Author:    Ryan Long <ryan.long at oarcorp.com>
Date:      Tue Jul 13 11:25:53 2021 -0400

CoverageRanges.cc: Fix formatting

---

 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(



More information about the vc mailing list