From c75f883c2c69e9ab0c41e2c62c72f83080b42780 Mon Sep 17 00:00:00 2001 From: Ryan Long Date: Tue, 13 Jul 2021 11:25:53 -0400 Subject: CoverageRanges.cc: Fix formatting --- tester/covoar/CoverageRanges.cc | 13 +++++-------- tester/covoar/CoverageRanges.h | 13 +++++++------ 2 files changed, 12 insertions(+), 14 deletions(-) (limited to 'tester/covoar') 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( -- cgit v1.2.3