Skip to content

Commit ed3a07a

Browse files
committed
Apply clang-format.
1 parent ba35656 commit ed3a07a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lldb/source/Host/windows/MainLoopWindows.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ namespace {
3939
class PipeEvent : public MainLoopWindows::IOEvent {
4040
public:
4141
explicit PipeEvent(HANDLE handle)
42-
: IOEvent((IOObject::WaitableHandle)CreateEventW(NULL, /*bManualReset=*/FALSE,
43-
/*bInitialState=*/FALSE, NULL)),
42+
: IOEvent((IOObject::WaitableHandle)CreateEventW(
43+
NULL, /*bManualReset=*/FALSE,
44+
/*bInitialState=*/FALSE, NULL)),
4445
m_handle(handle), m_ready(CreateEventW(NULL, /*bManualReset=*/FALSE,
4546
/*bInitialState=*/FALSE, NULL)) {
4647
assert(event && ready);
@@ -130,8 +131,8 @@ class SocketEvent : public MainLoopWindows::IOEvent {
130131
~SocketEvent() override { WSACloseEvent((HANDLE)m_event); }
131132

132133
void WillPoll() {
133-
int result =
134-
WSAEventSelect(m_socket, (HANDLE)m_event, FD_READ | FD_ACCEPT | FD_CLOSE);
134+
int result = WSAEventSelect(m_socket, (HANDLE)m_event,
135+
FD_READ | FD_ACCEPT | FD_CLOSE);
135136
assert(result == 0);
136137
UNUSED_IF_ASSERT_DISABLED(result);
137138
}

lldb/unittests/Host/MainLoopTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ TEST_F(MainLoopTest, NoSpuriousPipeReads) {
110110
size_t len = sizeof(X);
111111
ASSERT_THAT_EXPECTED(pipe.Write(&X, len), llvm::Succeeded());
112112

113-
lldb::IOObjectSP r = std::make_shared<NativeFile>(pipe.GetReadFileDescriptor(),
114-
File::eOpenOptionReadOnly, false);
113+
lldb::IOObjectSP r = std::make_shared<NativeFile>(
114+
pipe.GetReadFileDescriptor(), File::eOpenOptionReadOnly, false);
115115

116116
MainLoop loop;
117117

0 commit comments

Comments
 (0)