From: Nicholas Ormrod Date: Fri, 31 Oct 2014 21:54:30 +0000 (-0700) Subject: Fix line too long lint errors X-Git-Tag: v0.22.0~205 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8160f2fb948a416e15be3b1201d80377b02948a7;p=folly.git Fix line too long lint errors Summary: Many lines that are too long contain URLs. This diff adds url-like lines to the list of exceptions to 80-char limits. It also fixed the locations in folly with line-too-long errors. Test Plan: arc lint on folly, see no line-too-long errors. Reviewed By: robbert@fb.com Subscribers: sdwilsh, njormrod, folly-diffs@ FB internal diff: D1644151 Tasks: 5486739 Signature: t1:1644151:1414779408:76bcec1d14daaa8ed071c715bf26b108c8fe4b87 --- diff --git a/folly/test/SocketAddressTest.cpp b/folly/test/SocketAddressTest.cpp index 39eb9820..f875b4ad 100644 --- a/folly/test/SocketAddressTest.cpp +++ b/folly/test/SocketAddressTest.cpp @@ -657,9 +657,11 @@ void testSetFromSocket(const SocketAddress *serverBindAddr, sockaddr_storage acceptAddr; socklen_t acceptAddrLen = sizeof(acceptAddr); - int serverSock = accept(listenSock, reinterpret_cast(&acceptAddr), &acceptAddrLen); + int serverSock = accept(listenSock, + reinterpret_cast(&acceptAddr), &acceptAddrLen); REQUIRE_ERRNO(serverSock > 0, "failed to accept"); - acceptAddrRet->setFromSockaddr(reinterpret_cast(&acceptAddr), acceptAddrLen); + acceptAddrRet->setFromSockaddr( + reinterpret_cast(&acceptAddr), acceptAddrLen); serverAddrRet->setFromLocalAddress(serverSock); serverPeerAddrRet->setFromPeerAddress(serverSock);