remove eof whitespace lines
authorNicholas Ormrod <njormrod@fb.com>
Wed, 17 Sep 2014 20:21:40 +0000 (13:21 -0700)
committerDave Watson <davejwatson@fb.com>
Thu, 18 Sep 2014 16:44:48 +0000 (09:44 -0700)
Summary:
Remove lint errors from folly: trailing newlines

find folly | xargs arc lint | grep -B3 EOF | grep ">>>" | egrep -o "folly[^:]*" | xargs -n1 sed -i '$d'

folly/experimental/io/test/AsyncIOTest.cpp had two trailing newlines,
the second was removed by hand

@override-unit-failures

Test Plan:
fbconfig -r folly && fbmake runtests

Pretty overkill for a whitespace diff, but why not.

Reviewed By: robbert@fb.com

Subscribers: sdwilsh, fugalh, njormrod

FB internal diff: D1561213

82 files changed:
folly/AtomicBitSet.h
folly/Chrono.h
folly/DiscriminatedPtr.h
folly/Exception.h
folly/FileUtil.cpp
folly/FormatArg.h
folly/GroupVarint.h
folly/Likely.h
folly/MPMCPipeline.h
folly/MapUtil.h
folly/SafeAssert.cpp
folly/SafeAssert.h
folly/Subprocess.h
folly/ThreadCachedArena.cpp
folly/ThreadCachedArena.h
folly/TimeoutQueue.cpp
folly/TimeoutQueue.h
folly/Unicode.cpp
folly/Uri-inl.h
folly/Varint.h
folly/detail/BitsDetail.h
folly/detail/CacheLocality.h
folly/detail/DiscriminatedPtrDetail.h
folly/detail/FileUtilDetail.h
folly/detail/FingerprintPolynomial.h
folly/detail/GroupVarintDetail.h
folly/detail/MPMCPipelineDetail.h
folly/dynamic.cpp
folly/experimental/Bits.h
folly/experimental/EventCount.h
folly/experimental/TestUtil.h
folly/experimental/exception_tracer/ExceptionAbi.h
folly/experimental/exception_tracer/ExceptionTracer.h
folly/experimental/exception_tracer/ExceptionTracerBenchmark.cpp
folly/experimental/exception_tracer/ExceptionTracerTest.cpp
folly/experimental/exception_tracer/StackTrace.cpp
folly/experimental/exception_tracer/StackTrace.h
folly/experimental/io/AsyncIO.cpp
folly/experimental/io/AsyncIO.h
folly/experimental/io/FsUtil.cpp
folly/experimental/io/HugePageUtil.cpp
folly/experimental/io/HugePages.h
folly/experimental/io/test/AsyncIOTest.cpp
folly/experimental/io/test/FsUtilTest.cpp
folly/experimental/symbolizer/Elf-inl.h
folly/experimental/symbolizer/Elf.cpp
folly/experimental/symbolizer/ElfCache.cpp
folly/experimental/symbolizer/ElfCache.h
folly/experimental/symbolizer/LineReader.cpp
folly/experimental/symbolizer/LineReader.h
folly/experimental/symbolizer/SignalHandler.h
folly/experimental/symbolizer/StackTrace.h
folly/experimental/symbolizer/test/LineReaderTest.cpp
folly/experimental/test/BitsTest.cpp
folly/experimental/test/TestUtilTest.cpp
folly/io/Compression.cpp
folly/io/Compression.h
folly/io/RecordIO-inl.h
folly/io/RecordIO.h
folly/io/TypedIOBuf.h
folly/io/test/CompressionTest.cpp
folly/sorted_vector_types.h
folly/test/AtomicBitSetTest.cpp
folly/test/CpuIdTest.cpp
folly/test/DynamicConverterTest.cpp
folly/test/DynamicTest.cpp
folly/test/ExceptionTest.cpp
folly/test/FileTest.cpp
folly/test/FingerprintTest.cpp
folly/test/FormatTest.cpp
folly/test/FutexTest.cpp
folly/test/MPMCPipelineTest.cpp
folly/test/PaddedTest.cpp
folly/test/PortabilityTest.cpp
folly/test/SafeAssertTest.cpp
folly/test/SubprocessTestParentDeathHelper.cpp
folly/test/ThreadCachedArenaTest.cpp
folly/test/TimeoutQueueTest.cpp
folly/test/TimeseriesHistogramTest.cpp
folly/test/TraitsTest.cpp
folly/test/VarintTest.cpp
folly/wangle/InlineExecutor.cpp

index 4b030ca..d0d8f80 100644 (file)
@@ -160,4 +160,3 @@ inline bool AtomicBitSet<N>::operator[](size_t idx) const {
 }  // namespaces
 
 #endif /* FOLLY_ATOMICBITSET_H_ */
-
index d78e766..760c93b 100644 (file)
@@ -30,4 +30,3 @@ typedef monotonic_clock steady_clock;
 #endif
 
 #endif /* FOLLY_CHRONO_H_ */
-
index 40821bb..02cd1b2 100644 (file)
@@ -219,4 +219,3 @@ class DiscriminatedPtr {
 }  // namespace folly
 
 #endif /* FOLLY_DISCRIMINATEDPTR_H_ */
-
index b4f6da1..332799d 100644 (file)
@@ -126,4 +126,3 @@ void throwOnFail(V&& value, Args&&... args) {
 }  // namespace folly
 
 #endif /* FOLLY_EXCEPTION_H_ */
-
index fd82b27..a452644 100644 (file)
@@ -149,4 +149,3 @@ ssize_t pwritevFull(int fd, iovec* iov, int count, off_t offset) {
 #endif
 
 }  // namespaces
-
index b6a0018..edd16a2 100644 (file)
@@ -273,4 +273,3 @@ inline int FormatArg::splitIntKey() {
 }  // namespace folly
 
 #endif /* FOLLY_FORMATARG_H_ */
-
index 1115f55..0bdf369 100644 (file)
@@ -611,4 +611,3 @@ typedef GroupVarintDecoder<uint64_t> GroupVarint64Decoder;
 
 #endif /* FOLLY_X64 || defined(__i386__) */
 #endif /* FOLLY_GROUPVARINT_H_ */
-
index 8614829..9dbaec8 100644 (file)
@@ -36,4 +36,3 @@
 #endif
 
 #endif /* FOLLY_BASE_LIKELY_H_ */
-
index 63e686d..466b180 100644 (file)
@@ -282,4 +282,3 @@ template <class In, class... Stages> class MPMCPipeline {
 
 
 }  // namespaces
-
index fda6f3d..227a129 100644 (file)
@@ -69,4 +69,3 @@ typename Map::mapped_type* get_ptr(
 }  // namespace folly
 
 #endif /* FOLLY_MAPUTIL_H_ */
-
index 7d0b420..927d93b 100644 (file)
@@ -47,4 +47,3 @@ void assertionFailure(const char* expr, const char* msg, const char* file,
 }
 
 }}  // namespaces
-
index 81a8ccd..16203e8 100644 (file)
@@ -50,4 +50,3 @@ FOLLY_NORETURN void assertionFailure(const char* expr, const char* msg,
 }}  // namespace folly
 
 #endif /* FOLLY_SAFEASSERT_H_ */
-
index a0a5854..65842c8 100644 (file)
@@ -666,4 +666,3 @@ inline Subprocess::Options& Subprocess::Options::operator|=(
 }  // namespace folly
 
 #endif /* FOLLY_SUBPROCESS_H_ */
-
index bcc2ff8..a13acad 100644 (file)
@@ -41,4 +41,3 @@ void ThreadCachedArena::zombify(SysArena&& arena) {
 }
 
 }  // namespace folly
-
index bb48478..2a5dbc3 100644 (file)
@@ -83,4 +83,3 @@ struct IsArenaAllocator<ThreadCachedArena> : std::true_type { };
 }  // namespace folly
 
 #endif /* FOLLY_THREADCACHEDARENA_H_ */
-
index 0a840d8..f81cabf 100644 (file)
@@ -74,4 +74,3 @@ int64_t TimeoutQueue::runInternal(int64_t now, bool onceOnly) {
 }
 
 }  // namespace folly
-
index 3c83c30..b6ab638 100644 (file)
@@ -129,4 +129,3 @@ class TimeoutQueue {
 }  // namespace folly
 
 #endif /* FOLLY_TIMEOUTQUEUE_H_ */
-
index 5e4c1a6..3285c00 100644 (file)
@@ -51,4 +51,3 @@ fbstring codePointToUtf8(char32_t cp) {
 //////////////////////////////////////////////////////////////////////
 
 }
-
index 629fc07..42f9814 100644 (file)
@@ -46,4 +46,3 @@ String Uri::toString() const {
 }
 
 }  // namespace folly
-
index 9bc7c49..7ce9d30 100644 (file)
@@ -126,4 +126,3 @@ inline uint64_t decodeVarint(ByteRange& data) {
 }  // namespaces
 
 #endif /* FOLLY_VARINT_H_ */
-
index db71306..18e342b 100644 (file)
@@ -51,4 +51,3 @@ int popcountll(unsigned long long x);
 }  // namespace folly
 
 #endif /* FOLLY_DETAIL_BITSDETAIL_H_ */
-
index 37f6e96..efb4c29 100644 (file)
@@ -363,4 +363,3 @@ struct AccessSpreaderArray {
 } }
 
 #endif /* FOLLY_DETAIL_CacheLocality_H_ */
-
index f510a67..2113d10 100644 (file)
@@ -162,4 +162,3 @@ struct ApplyConstVisitor
 }  // namespace folly
 
 #endif /* FOLLY_DETAIL_DISCRIMINATEDPTRDETAIL_H_ */
-
index 5d3d864..af2b56e 100644 (file)
@@ -109,4 +109,3 @@ ssize_t wrapvFull(F f, int fd, iovec* iov, int count, Offset... offset) {
 }}  // namespaces
 
 #endif /* FOLLY_DETAIL_FILEUTILDETAIL_H_ */
-
index a83143b..d507902 100644 (file)
@@ -143,4 +143,3 @@ class FingerprintPolynomial {
 }  // namespace folly
 
 #endif /* FOLLY_BUILD_FINGERPRINTPOLYNOMIAL_H_ */
-
index bbd337a..a059d42 100644 (file)
@@ -101,4 +101,3 @@ class GroupVarintBase {
 }  // namespace folly
 
 #endif /* FOLLY_DETAIL_GROUPVARINTDETAIL_H_ */
-
index d2f9e37..84312b3 100644 (file)
@@ -123,4 +123,3 @@ struct AmplificationProduct<std::tuple<T, Ts...>> {
 };
 
 }}  // namespaces
-
index 825cb77..768e1a9 100644 (file)
@@ -41,4 +41,3 @@ const char* dynamic::typeName() const {
 //////////////////////////////////////////////////////////////////////
 
 }
-
index e0376a5..0601513 100644 (file)
@@ -307,4 +307,3 @@ inline size_t Bits<T, Traits>::count(const T* begin, const T* end) {
 }  // namespace folly
 
 #endif /* FOLLY_EXPERIMENTAL_BITS_H_ */
-
index df6722e..974ec6d 100644 (file)
@@ -212,4 +212,3 @@ void EventCount::await(Condition condition) {
 }  // namespace folly
 
 #endif /* FOLLY_EXPERIMENTAL_EVENTCOUNT_H_ */
-
index 1b5eb66..1b518fd 100644 (file)
@@ -92,4 +92,3 @@ class TemporaryDirectory {
 }  // namespace folly
 
 #endif /* FOLLY_TESTUTIL_H_ */
-
index 40fe54e..b896d1c 100644 (file)
@@ -58,4 +58,3 @@ __cxa_eh_globals* __cxa_get_globals_fast(void) noexcept;
 }  // namespace __cxxabiv1
 
 #endif /* FOLLY_EXPERIMENTAL_EXCEPTION_TRACER_EXCEPTIONABI_H_ */
-
index 69f0d73..9f44311 100644 (file)
@@ -53,4 +53,3 @@ void installHandlers();
 }  // namespace folly
 
 #endif /* FOLLY_EXPERIMENTAL_EXCEPTION_TRACER_EXCEPTIONTRACER_H_ */
-
index 9fe2116..0b5f4ad 100644 (file)
@@ -100,4 +100,3 @@ class StackTraceStack {
 }}  // namespaces
 
 #endif /* FOLLY_EXPERIMENTAL_EXCEPTION_TRACER_STACKTRACE_H_ */
-
index 766da90..b255b35 100644 (file)
@@ -379,4 +379,3 @@ std::ostream& operator<<(std::ostream& os, AsyncIOOp::State state) {
 }
 
 }  // namespace folly
-
index ae1f453..bd00d19 100644 (file)
@@ -253,4 +253,3 @@ class AsyncIOQueue {
 }  // namespace folly
 
 #endif /* FOLLY_IO_ASYNCIO_H_ */
-
index a0dfd89..e243c35 100644 (file)
@@ -68,4 +68,3 @@ path canonical_parent(const path& pth, const path& base) {
 
 }  // namespace fs
 }  // namespace folly
-
index 0dccb8a..cc601b9 100644 (file)
@@ -84,4 +84,3 @@ int main(int argc, char *argv[]) {
   }
   return 0;
 }
-
index ee5605a..3e5a7b5 100644 (file)
@@ -81,4 +81,3 @@ const HugePageSize* getHugePageSizeForDevice(dev_t device);
 }  // namespace folly
 
 #endif /* FOLLY_IO_HUGEPAGES_H_ */
-
index dabb250..c21691f 100644 (file)
@@ -389,5 +389,3 @@ TEST(AsyncIO, NonBlockingWait) {
   EXPECT_EQ(size, res);
   EXPECT_EQ(aioReader.pending(), 0);
 }
-
-
index 5760bfc..0f8340f 100644 (file)
@@ -73,4 +73,3 @@ TEST(Simple, CanonicalizeParent) {
   expectPathEq(c, canonical_parent(c));
   expectPathEq(c, canonical_parent(d));
 }
-
index 51f9030..4cda410 100644 (file)
@@ -90,4 +90,3 @@ const ElfW(Sym)* ElfFile::iterateSymbolsWithType(const ElfW(Shdr)& section,
 
 }  // namespace symbolizer
 }  // namespace folly
-
index b4b76e1..6b32dc1 100644 (file)
@@ -375,4 +375,3 @@ const char* ElfFile::getSymbolName(Symbol symbol) const {
 
 }  // namespace symbolizer
 }  // namespace folly
-
index 7aa067b..d56f91a 100644 (file)
@@ -102,4 +102,3 @@ std::shared_ptr<ElfFile> ElfCache::filePtr(const std::shared_ptr<Entry>& e) {
 }
 
 }}  // namespaces
-
index de3cd04..bb6a6a3 100644 (file)
@@ -132,4 +132,3 @@ class ElfCache : public ElfCacheBase {
 }}  // namespaces
 
 #endif /* FOLLY_SYMBOLIZER_ELFCACHE_H_ */
-
index ee249a8..2b1845a 100644 (file)
@@ -71,4 +71,3 @@ LineReader::State LineReader::readLine(StringPiece& line) {
 }
 
 }}  // namespaces
-
index 1c1227d..d5d76b4 100644 (file)
@@ -88,4 +88,3 @@ class LineReader : private boost::noncopyable {
 }}  // namespaces
 
 #endif /* FOLLY_SYMBOLIZER_LINEREADER_H_ */
-
index 3832eb4..2b0ff17 100644 (file)
@@ -53,4 +53,3 @@ void installFatalSignalCallbacks();
 }}  // namespaces
 
 #endif /* FOLLY_SYMBOLIZER_SIGNALHANDLER_H_ */
-
index ef7c3c0..8e7ea71 100644 (file)
@@ -47,4 +47,3 @@ ssize_t getStackTraceSafe(uintptr_t* addresses, size_t maxAddresses);
 }}  // namespaces
 
 #endif /* FOLLY_SYMBOLIZER_STACKTRACE_H_ */
-
index ba4d0ab..c0a68e3 100644 (file)
@@ -313,4 +313,3 @@ int main(int argc, char *argv[]) {
   gflags::ParseCommandLineFlags(&argc, &argv, true);
   return RUN_ALL_TESTS();
 }
-
index 4bf2952..c11dd32 100644 (file)
@@ -105,4 +105,3 @@ int main(int argc, char *argv[]) {
   gflags::ParseCommandLineFlags(&argc, &argv, true);
   return RUN_ALL_TESTS();
 }
-
index cbfaf68..f52d2e7 100644 (file)
@@ -963,4 +963,3 @@ std::unique_ptr<Codec> getCodec(CodecType type, int level) {
 }
 
 }}  // namespaces
-
index 3b2cbf4..4fbd651 100644 (file)
@@ -168,4 +168,3 @@ std::unique_ptr<Codec> getCodec(CodecType type,
 }}  // namespaces
 
 #endif /* FOLLY_IO_COMPRESSION_H_ */
-
index 8587ac6..e634443 100644 (file)
@@ -93,4 +93,3 @@ inline RecordInfo findRecord(ByteRange range, uint32_t fileId) {
 }  // namespace recordio_helpers
 
 }  // namespaces
-
index fe19f4c..c4db45e 100644 (file)
@@ -178,4 +178,3 @@ RecordInfo validateRecord(ByteRange range, uint32_t fileId);
 #include <folly/io/RecordIO-inl.h>
 
 #endif /* FOLLY_IO_RECORDIO_H_ */
-
index 9ccb7bc..9d174a0 100644 (file)
@@ -216,4 +216,3 @@ class TypedIOBuf {
 }  // namespace folly
 
 #endif /* FOLLY_IO_TYPEDIOBUF_H_ */
-
index ea22fca..51faa4e 100644 (file)
@@ -253,4 +253,3 @@ int main(int argc, char *argv[]) {
   }
   return ret;
 }
-
index ef451cb..e59ef9b 100644 (file)
@@ -640,4 +640,3 @@ inline void swap(sorted_vector_map<K,V,C,A,G>& a,
 }
 
 #endif
-
index 3a0a0ef..c7ee657 100644 (file)
@@ -59,4 +59,3 @@ int main(int argc, char *argv[]) {
   gflags::ParseCommandLineFlags(&argc, &argv, true);
   return RUN_ALL_TESTS();
 }
-
index ed6bcd1..e86ffac 100644 (file)
@@ -26,4 +26,3 @@ TEST(CpuId, Simple) {
   CpuId id;
   EXPECT_TRUE(id.mmx());
 }
-
index 62417bb..55c5ab6 100644 (file)
@@ -369,4 +369,3 @@ int main(int argc, char ** argv) {
   }
   return RUN_ALL_TESTS();
 }
-
index 6e1002c..36afc07 100644 (file)
@@ -321,4 +321,3 @@ int main(int argc, char** argv) {
   }
   return RUN_ALL_TESTS();
 }
-
index 5bf586a..6fc0d39 100644 (file)
@@ -94,4 +94,3 @@ int main(int argc, char *argv[]) {
   gflags::ParseCommandLineFlags(&argc, &argv, true);
   return RUN_ALL_TESTS();
 }
-
index a7e7092..9a1d3af 100644 (file)
@@ -209,4 +209,3 @@ TEST(File, Locks) {
     testLock(SHARED, true);
   }
 }
-
index 42ebb3f..15fd7be 100644 (file)
@@ -172,4 +172,3 @@ int main(int argc, char *argv[]) {
   }
   return ret;
 }
-
index a72be0a..e67c5ec 100644 (file)
@@ -446,4 +446,3 @@ int main(int argc, char *argv[]) {
   gflags::ParseCommandLineFlags(&argc, &argv, true);
   return RUN_ALL_TESTS();
 }
-
index d920b1e..ae23c65 100644 (file)
@@ -188,4 +188,3 @@ int main(int argc, char ** argv) {
   gflags::ParseCommandLineFlags(&argc, &argv, true);
   return RUN_ALL_TESTS();
 }
-
index 6fd93be..8564743 100644 (file)
@@ -163,4 +163,3 @@ int main(int argc, char *argv[]) {
   gflags::ParseCommandLineFlags(&argc, &argv, true);
   return RUN_ALL_TESTS();
 }
-
index 9897826..324a91d 100644 (file)
@@ -239,4 +239,3 @@ TEST_F(IntAdaptorTest, ResizeConstructor) {
     EXPECT_EQ(42, a[i]);
   }
 }
-
index ca319c3..58f2f56 100644 (file)
@@ -42,4 +42,3 @@ TEST(Portability, Final) {
   EXPECT_EQ(3, fooBase(p.get()));
   EXPECT_EQ(3, fooDerived(p.get()));
 }
-
index db07541..9e9d4c7 100644 (file)
@@ -35,4 +35,3 @@ TEST(SafeAssert, AssertionFailure) {
   succeed();
   EXPECT_DEATH(fail(), ".*Assertion failure:.*hello.*");
 }
-
index 63ae4c9..e6292b1 100644 (file)
@@ -263,4 +263,3 @@ int main(int argc, char *argv[]) {
   }
   return ret;
 }
-
index a07bc22..9915052 100644 (file)
@@ -110,4 +110,3 @@ TEST(TimeoutQueue, RunOnceReschedule) {
   EXPECT_EQ(std::numeric_limits<int64_t>::max(), q.runLoop(0));
   EXPECT_EQ(100, count);
 }
-
index e106e88..e3bda07 100644 (file)
@@ -484,4 +484,3 @@ TEST(TimeseriesHistogram, SingleUniqueValue) {
     }
   }
 }
-
index 90a31d0..59affbf 100644 (file)
@@ -126,4 +126,3 @@ int main(int argc, char ** argv) {
   }
   return RUN_ALL_TESTS();
 }
-
index 59d1a7f..91da053 100644 (file)
@@ -181,4 +181,3 @@ int main(int argc, char *argv[]) {
   }
   return ret;
 }
-
index 632558c..1ef2f06 100644 (file)
@@ -13,4 +13,3 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-