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 @@
*/
#pragma once
#include <atomic>
#include <limits.h>
#include <atomic>
#include <memory>
#include <folly/lang/SafeAssert.h>
......
......@@ -1700,7 +1700,7 @@ void doubleBatchOuterDispatch(
innerDispatchResultFutures.end())
.toUnsafeFuture()
.thenValue([&](std::vector<Try<std::vector<std::string>>>
innerDispatchResults) {
innerDispatchResults) {
for (auto& unit : innerDispatchResults) {
for (auto& element : unit.value()) {
results.push_back(element);
......
......@@ -710,16 +710,16 @@ TEST(SemiFuture, DeferWithinContinuation) {
Promise<int> p;
Promise<int> p2;
auto f = p.getSemiFuture().via(&e2);
auto resultF = std::move(f).thenValue([&, p3 = std::move(p2)](
int outer) mutable {
result = outer;
return makeSemiFuture<int>(std::move(outer))
.deferValue([&, p4 = std::move(p3)](int inner) mutable {
innerResult = inner;
p4.setValue(inner);
return inner;
});
});
auto resultF =
std::move(f).thenValue([&, p3 = std::move(p2)](int outer) mutable {
result = outer;
return makeSemiFuture<int>(std::move(outer))
.deferValue([&, p4 = std::move(p3)](int inner) mutable {
innerResult = inner;
p4.setValue(inner);
return inner;
});
});
p.setValue(7);
auto r = resultF.getVia(&e2);
ASSERT_EQ(r, 7);
......
......@@ -1658,7 +1658,7 @@ void AsyncSSLSocket::sslInfoCallback(const SSL* ssl, int where, int ret) {
sslSocket->renegotiateAttempted_ = true;
}
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) {
sslSocket->renegotiateAttempted_ = true;
}
......
......@@ -2135,7 +2135,7 @@ static SSL_SESSION* getCloseCb(SSL* ssl, unsigned char*, int, int*) {
#endif
AsyncSSLSocket::getFromSSL(ssl)->closeNow();
return nullptr;
}
} // namespace folly
TEST(AsyncSSLSocketTest, SSLAcceptRunnerFiberCloseSessionCb) {
EventBase eventBase;
......
......@@ -203,4 +203,3 @@ TEST(BufferedAtomic, single_thread_unguarded_access) {
x.store(1);
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