diff options
author | Ryan Long <ryan.long@oarcorp.com> | 2021-07-13 11:25:53 -0400 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-09-28 09:01:55 -0500 |
commit | c75f883c2c69e9ab0c41e2c62c72f83080b42780 (patch) | |
tree | d2c2a29160c6567bfc7fec8a7aef30689c28faf5 /tester/covoar | |
parent | record-filter-zlib.cc: Initialize stream_'s fields (diff) | |
download | rtems-tools-c75f883c2c69e9ab0c41e2c62c72f83080b42780.tar.bz2 |
CoverageRanges.cc: Fix formatting
Diffstat (limited to 'tester/covoar')
-rw-r--r-- | tester/covoar/CoverageRanges.cc | 13 | ||||
-rw-r--r-- | 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( |