@@ -167,7 +167,7 @@ Error ArgumentCounter::getAllMatchingArgumentsInRemark(
167
167
168
168
std::optional<std::string> Counter::getGroupByKey (const Remark &Remark) {
169
169
170
- switch (GroupBy ) {
170
+ switch (_GroupBy ) {
171
171
case GroupBy::PER_FUNCTION:
172
172
return Remark.FunctionName .str ();
173
173
case GroupBy::TOTAL:
@@ -177,7 +177,7 @@ std::optional<std::string> Counter::getGroupByKey(const Remark &Remark) {
177
177
if (!Remark.Loc .has_value ())
178
178
return std::nullopt;
179
179
180
- if (GroupBy == GroupBy::PER_FUNCTION_WITH_DEBUG_LOC)
180
+ if (_GroupBy == GroupBy::PER_FUNCTION_WITH_DEBUG_LOC)
181
181
return Remark.Loc ->SourceFilePath .str () + " :" + Remark.FunctionName .str ();
182
182
return Remark.Loc ->SourceFilePath .str ();
183
183
}
@@ -213,7 +213,7 @@ Error ArgumentCounter::print(StringRef OutputFileName) {
213
213
return MaybeOF.takeError ();
214
214
215
215
auto OF = std::move (*MaybeOF);
216
- OF->os () << groupByToStr (GroupBy ) << " ," ;
216
+ OF->os () << groupByToStr (_GroupBy ) << " ," ;
217
217
unsigned Idx = 0 ;
218
218
for (auto [Key, _] : ArgumentSetIdxMap) {
219
219
OF->os () << Key;
@@ -243,7 +243,7 @@ Error RemarkCounter::print(StringRef OutputFileName) {
243
243
return MaybeOF.takeError ();
244
244
245
245
auto OF = std::move (*MaybeOF);
246
- OF->os () << groupByToStr (GroupBy ) << " ,"
246
+ OF->os () << groupByToStr (_GroupBy ) << " ,"
247
247
<< " Count\n " ;
248
248
for (auto [Key, Count] : CountedByRemarksMap)
249
249
OF->os () << Key << " ," << Count << " \n " ;
0 commit comments