Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lldb/tools/lldb-dap/OutputRedirector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Expected<int> OutputRedirector::GetWriteFileDescriptor() {
return m_fd;
}

Error OutputRedirector::RedirectTo(std::FILE *file_override,
Error OutputRedirector::RedirectTo(std::FILE *fileOverride,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But now this doesn't conform to lldb's coding style :( Why not change line 59-60 to file_override?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the churn, I saw I broke the CI job so I was trying to fix it to unblock that.

Created #130202 to conform to lldb's coding style.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah no worries. Thanks for the quick turnaround!

std::function<void(StringRef)> callback) {
assert(m_fd == kInvalidDescriptor && "Output readirector already started.");
int new_fd[2];
Expand All @@ -56,8 +56,8 @@ Error OutputRedirector::RedirectTo(std::FILE *file_override,
int read_fd = new_fd[0];
m_fd = new_fd[1];

if (override) {
int override_fd = fileno(override);
if (fileOverride) {
int override_fd = fileno(fileOverride);

// Backup the FD to restore once redirection is complete.
m_original_fd = override_fd;
Expand Down
Loading