Commit 1fd24252 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Apply clang-format to non-compliant locations (partial)

Summary:
[Folly] Apply `clang-format` to non-compliant locations (partial).

(Note: this ignores all push blocking failures!)

Reviewed By: igorsugak

Differential Revision: D13858983

fbshipit-source-id: 668c3ee209456befd3c03d85945321143da2b00a
parent 1318513c
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
*/ */
#pragma once #pragma once
#include <atomic>
#include <limits.h> #include <limits.h>
#include <atomic>
#include <memory> #include <memory>
#include <folly/lang/SafeAssert.h> #include <folly/lang/SafeAssert.h>
......
...@@ -710,8 +710,8 @@ TEST(SemiFuture, DeferWithinContinuation) { ...@@ -710,8 +710,8 @@ TEST(SemiFuture, DeferWithinContinuation) {
Promise<int> p; Promise<int> p;
Promise<int> p2; Promise<int> p2;
auto f = p.getSemiFuture().via(&e2); auto f = p.getSemiFuture().via(&e2);
auto resultF = std::move(f).thenValue([&, p3 = std::move(p2)]( auto resultF =
int outer) mutable { std::move(f).thenValue([&, p3 = std::move(p2)](int outer) mutable {
result = outer; result = outer;
return makeSemiFuture<int>(std::move(outer)) return makeSemiFuture<int>(std::move(outer))
.deferValue([&, p4 = std::move(p3)](int inner) mutable { .deferValue([&, p4 = std::move(p3)](int inner) mutable {
......
...@@ -1658,7 +1658,7 @@ void AsyncSSLSocket::sslInfoCallback(const SSL* ssl, int where, int ret) { ...@@ -1658,7 +1658,7 @@ void AsyncSSLSocket::sslInfoCallback(const SSL* ssl, int where, int ret) {
sslSocket->renegotiateAttempted_ = true; sslSocket->renegotiateAttempted_ = true;
} }
if (sslSocket->handshakeComplete_ && (where & SSL_CB_WRITE_ALERT)) { if (sslSocket->handshakeComplete_ && (where & SSL_CB_WRITE_ALERT)) {
const char *desc = SSL_alert_desc_string(ret); const char* desc = SSL_alert_desc_string(ret);
if (desc && strcmp(desc, "NR") == 0) { if (desc && strcmp(desc, "NR") == 0) {
sslSocket->renegotiateAttempted_ = true; sslSocket->renegotiateAttempted_ = true;
} }
......
...@@ -2135,7 +2135,7 @@ static SSL_SESSION* getCloseCb(SSL* ssl, unsigned char*, int, int*) { ...@@ -2135,7 +2135,7 @@ static SSL_SESSION* getCloseCb(SSL* ssl, unsigned char*, int, int*) {
#endif #endif
AsyncSSLSocket::getFromSSL(ssl)->closeNow(); AsyncSSLSocket::getFromSSL(ssl)->closeNow();
return nullptr; return nullptr;
} } // namespace folly
TEST(AsyncSSLSocketTest, SSLAcceptRunnerFiberCloseSessionCb) { TEST(AsyncSSLSocketTest, SSLAcceptRunnerFiberCloseSessionCb) {
EventBase eventBase; EventBase eventBase;
......
...@@ -203,4 +203,3 @@ TEST(BufferedAtomic, single_thread_unguarded_access) { ...@@ -203,4 +203,3 @@ TEST(BufferedAtomic, single_thread_unguarded_access) {
x.store(1); x.store(1);
ASSERT_EQ(1, x.load()); ASSERT_EQ(1, x.load());
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment