Skip to content

Commit c0f5434

Browse files
authored
Output function name in clang-tv quiet mode error message (#1172)
1 parent fe94db7 commit c0f5434

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/transform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ static bool error(Errors &errs, State &src_state, State &tgt_state,
167167
}
168168
}
169169

170-
// Return early if instance reporting is not requested.
171170
if (config::quiet) {
172-
errs.add(msg, true);
171+
s << msg << " in " << src_state.getFn().getName() << '\n';
172+
errs.add(std::move(s).str(), true);
173173
return false;
174174
}
175175

0 commit comments

Comments
 (0)