@@ -167,7 +167,7 @@ Error ArgumentCounter::getAllMatchingArgumentsInRemark(
167167
168168std::optional<std::string> Counter::getGroupByKey (const Remark &Remark) {
169169
170- switch (GroupBy ) {
170+ switch (_GroupBy ) {
171171 case GroupBy::PER_FUNCTION:
172172 return Remark.FunctionName .str ();
173173 case GroupBy::TOTAL:
@@ -177,7 +177,7 @@ std::optional<std::string> Counter::getGroupByKey(const Remark &Remark) {
177177 if (!Remark.Loc .has_value ())
178178 return std::nullopt ;
179179
180- if (GroupBy == GroupBy::PER_FUNCTION_WITH_DEBUG_LOC)
180+ if (_GroupBy == GroupBy::PER_FUNCTION_WITH_DEBUG_LOC)
181181 return Remark.Loc ->SourceFilePath .str () + " :" + Remark.FunctionName .str ();
182182 return Remark.Loc ->SourceFilePath .str ();
183183 }
@@ -213,7 +213,7 @@ Error ArgumentCounter::print(StringRef OutputFileName) {
213213 return MaybeOF.takeError ();
214214
215215 auto OF = std::move (*MaybeOF);
216- OF->os () << groupByToStr (GroupBy ) << " ," ;
216+ OF->os () << groupByToStr (_GroupBy ) << " ," ;
217217 unsigned Idx = 0 ;
218218 for (auto [Key, _] : ArgumentSetIdxMap) {
219219 OF->os () << Key;
@@ -243,7 +243,7 @@ Error RemarkCounter::print(StringRef OutputFileName) {
243243 return MaybeOF.takeError ();
244244
245245 auto OF = std::move (*MaybeOF);
246- OF->os () << groupByToStr (GroupBy ) << " ,"
246+ OF->os () << groupByToStr (_GroupBy ) << " ,"
247247 << " Count\n " ;
248248 for (auto [Key, Count] : CountedByRemarksMap)
249249 OF->os () << Key << " ," << Count << " \n " ;
0 commit comments