From ff878dc12e3f7d7234f21b0b4b3251595c031b4c Mon Sep 17 00:00:00 2001 From: Nicholas Ormrod Date: Fri, 31 Oct 2014 10:48:19 -0700 Subject: [PATCH] Fix folly lint errors Summary: Fix EOF whitespace for file in `find folly -type f` ; do if [ -z "`tail -n1 $file`" ] ; then sed -i '$d' $file ; fi ; done Test Plan: run unit tests Reviewed By: robbert@fb.com Subscribers: trunkagent, sdwilsh, njormrod, folly-diffs@ FB internal diff: D1644130 Tasks: 5486739 Signature: t1:1644130:1414715392:b6c783851aa030ad1148f84a98139a5dca207da0 --- folly/CpuId.h | 1 - folly/DynamicConverter.h | 1 - folly/Fingerprint.h | 1 - folly/Malloc.cpp | 1 - folly/PackedSyncPtr.h | 1 - folly/Padded.h | 1 - folly/detail/BitIteratorDetail.h | 1 - folly/detail/SlowFingerprint.h | 1 - folly/docs/DynamicConverter.md | 1 - folly/docs/FBVector.md | 1 - folly/docs/Format.md | 1 - folly/docs/ThreadLocal.md | 1 - folly/experimental/exception_tracer/README | 1 - folly/experimental/io/FsUtil.h | 1 - folly/experimental/symbolizer/Dwarf.cpp | 1 - folly/experimental/symbolizer/Dwarf.h | 1 - folly/experimental/symbolizer/Elf.h | 1 - folly/experimental/symbolizer/test/SignalHandlerTest.h | 1 - folly/experimental/symbolizer/test/StackTraceTest.cpp | 1 - folly/test/FBVectorTestBenchmarks.cpp.h | 1 - folly/test/LazyTest.cpp | 1 - folly/test/stl_tests/StlVectorTest.cpp | 1 - 22 files changed, 22 deletions(-) diff --git a/folly/CpuId.h b/folly/CpuId.h index 4a70e146..e3c50674 100644 --- a/folly/CpuId.h +++ b/folly/CpuId.h @@ -124,4 +124,3 @@ class CpuId { } // namespace folly #endif /* FOLLY_CPUID_H_ */ - diff --git a/folly/DynamicConverter.h b/folly/DynamicConverter.h index d64dcc28..198c0ae1 100644 --- a/folly/DynamicConverter.h +++ b/folly/DynamicConverter.h @@ -337,4 +337,3 @@ dynamic toDynamic(const T& x) { } // namespace folly #endif // DYNAMIC_CONVERTER_H - diff --git a/folly/Fingerprint.h b/folly/Fingerprint.h index 9dbf13e9..5debaf3e 100644 --- a/folly/Fingerprint.h +++ b/folly/Fingerprint.h @@ -263,4 +263,3 @@ inline uint64_t Fingerprint<128>::shlor64(uint64_t v) { } // namespace folly #endif /* FOLLY_FINGERPRINT_H_ */ - diff --git a/folly/Malloc.cpp b/folly/Malloc.cpp index c19427fd..d1a242c2 100644 --- a/folly/Malloc.cpp +++ b/folly/Malloc.cpp @@ -62,4 +62,3 @@ bool usingJEMallocSlow() { } } // namespaces - diff --git a/folly/PackedSyncPtr.h b/folly/PackedSyncPtr.h index ca9e1215..f7b753b8 100644 --- a/folly/PackedSyncPtr.h +++ b/folly/PackedSyncPtr.h @@ -149,4 +149,3 @@ static_assert(sizeof(PackedSyncPtr) == 8, } #endif - diff --git a/folly/Padded.h b/folly/Padded.h index 504a0bc7..f7a283c6 100644 --- a/folly/Padded.h +++ b/folly/Padded.h @@ -503,4 +503,3 @@ class Adaptor { } // namespace folly #endif /* FOLLY_PADDED_H_ */ - diff --git a/folly/detail/BitIteratorDetail.h b/folly/detail/BitIteratorDetail.h index 34ccb4bc..5af2ab32 100644 --- a/folly/detail/BitIteratorDetail.h +++ b/folly/detail/BitIteratorDetail.h @@ -90,4 +90,3 @@ struct BitIteratorBase { } // namespace folly #endif /* FOLLY_DETAIL_BITITERATORDETAIL_H_ */ - diff --git a/folly/detail/SlowFingerprint.h b/folly/detail/SlowFingerprint.h index 1e17bf30..894aa1cb 100644 --- a/folly/detail/SlowFingerprint.h +++ b/folly/detail/SlowFingerprint.h @@ -90,4 +90,3 @@ class SlowFingerprint { } // namespace folly #endif /* FOLLY_DETAIL_SLOWFINGERPRINT_H_ */ - diff --git a/folly/docs/DynamicConverter.md b/folly/docs/DynamicConverter.md index d0ee7f79..4d657f37 100644 --- a/folly/docs/DynamicConverter.md +++ b/folly/docs/DynamicConverter.md @@ -69,4 +69,3 @@ Example: }; } ``` - diff --git a/folly/docs/FBVector.md b/folly/docs/FBVector.md index 9a2fe9b0..0975819b 100644 --- a/folly/docs/FBVector.md +++ b/folly/docs/FBVector.md @@ -239,4 +239,3 @@ not an intrinsic in gcc and does not work terribly well for large chunks) and in furthering the collaboration with jemalloc. Have fun! - diff --git a/folly/docs/Format.md b/folly/docs/Format.md index 012f0a28..74192058 100644 --- a/folly/docs/Format.md +++ b/folly/docs/Format.md @@ -191,4 +191,3 @@ You can extend `format` for your own class by providing a specialization for `folly::FormatValue`. See `folly/Format.h` and `folly/FormatArg.h` for details, and the existing specialization for `folly::dynamic` in `folly/dynamic-inl.h` for an implementation example. - diff --git a/folly/docs/ThreadLocal.md b/folly/docs/ThreadLocal.md index 1c185fba..65634a3b 100644 --- a/folly/docs/ThreadLocal.md +++ b/folly/docs/ThreadLocal.md @@ -103,4 +103,3 @@ require a global mutex, but only happen at construction and destruction time. We use a single global `pthread_key_t` per `Tag` to manage object destruction and memory cleanup upon thread exit because there is a finite number of `pthread_key_t`'s available per machine. - diff --git a/folly/experimental/exception_tracer/README b/folly/experimental/exception_tracer/README index 50da4e98..819f8547 100644 --- a/folly/experimental/exception_tracer/README +++ b/folly/experimental/exception_tracer/README @@ -20,4 +20,3 @@ requires no link-time changes. On the other hand, you need to ensure that libexceptiontracer.so is compiled with the same compiler and flags as your binary, and the usual caveats about LD_PRELOAD apply (it propagates to child processes, etc). - diff --git a/folly/experimental/io/FsUtil.h b/folly/experimental/io/FsUtil.h index 9ed2a3c7..f571e886 100644 --- a/folly/experimental/io/FsUtil.h +++ b/folly/experimental/io/FsUtil.h @@ -56,4 +56,3 @@ path canonical_parent(const path& p, const path& basePath = current_path()); } // namespace folly #endif /* FOLLY_IO_FSUTIL_H_ */ - diff --git a/folly/experimental/symbolizer/Dwarf.cpp b/folly/experimental/symbolizer/Dwarf.cpp index 90938ae7..04473cfa 100644 --- a/folly/experimental/symbolizer/Dwarf.cpp +++ b/folly/experimental/symbolizer/Dwarf.cpp @@ -852,4 +852,3 @@ bool Dwarf::LineNumberVM::findAddress(uintptr_t target, Path& file, } // namespace symbolizer } // namespace folly - diff --git a/folly/experimental/symbolizer/Dwarf.h b/folly/experimental/symbolizer/Dwarf.h index 820dd94a..723154a0 100644 --- a/folly/experimental/symbolizer/Dwarf.h +++ b/folly/experimental/symbolizer/Dwarf.h @@ -272,4 +272,3 @@ inline std::ostream& operator<<(std::ostream& out, const Dwarf::Path& path) { } // namespace folly #endif /* FOLLY_EXPERIMENTAL_SYMBOLIZER_DWARF_H_ */ - diff --git a/folly/experimental/symbolizer/Elf.h b/folly/experimental/symbolizer/Elf.h index 6214a4d5..9a58ba2f 100644 --- a/folly/experimental/symbolizer/Elf.h +++ b/folly/experimental/symbolizer/Elf.h @@ -243,4 +243,3 @@ class ElfFile { #include #endif /* FOLLY_EXPERIMENTAL_SYMBOLIZER_ELF_H_ */ - diff --git a/folly/experimental/symbolizer/test/SignalHandlerTest.h b/folly/experimental/symbolizer/test/SignalHandlerTest.h index 16aa30c4..aa646627 100644 --- a/folly/experimental/symbolizer/test/SignalHandlerTest.h +++ b/folly/experimental/symbolizer/test/SignalHandlerTest.h @@ -26,4 +26,3 @@ inline void failHard() { }}} // namespaces #endif /* FOLLY_SYMBOLIZER_TEST_SIGNALHANDLERTEST_H_ */ - diff --git a/folly/experimental/symbolizer/test/StackTraceTest.cpp b/folly/experimental/symbolizer/test/StackTraceTest.cpp index 601bb061..29f8fb1e 100644 --- a/folly/experimental/symbolizer/test/StackTraceTest.cpp +++ b/folly/experimental/symbolizer/test/StackTraceTest.cpp @@ -93,4 +93,3 @@ int main(int argc, char *argv[]) { gflags::ParseCommandLineFlags(&argc, &argv, true); return RUN_ALL_TESTS(); } - diff --git a/folly/test/FBVectorTestBenchmarks.cpp.h b/folly/test/FBVectorTestBenchmarks.cpp.h index 9257f751..57bf5dab 100644 --- a/folly/test/FBVectorTestBenchmarks.cpp.h +++ b/folly/test/FBVectorTestBenchmarks.cpp.h @@ -376,4 +376,3 @@ void BENCHFUN(erase)(int iters, int size) { } } BENCHMARK_PARAM(BENCHFUN(erase), 1024); - diff --git a/folly/test/LazyTest.cpp b/folly/test/LazyTest.cpp index 6d3eed06..712435a1 100644 --- a/folly/test/LazyTest.cpp +++ b/folly/test/LazyTest.cpp @@ -105,4 +105,3 @@ TEST(Lazy, Consty) { } } - diff --git a/folly/test/stl_tests/StlVectorTest.cpp b/folly/test/stl_tests/StlVectorTest.cpp index c3cbd7c6..dff7c56b 100644 --- a/folly/test/stl_tests/StlVectorTest.cpp +++ b/folly/test/stl_tests/StlVectorTest.cpp @@ -2740,4 +2740,3 @@ int main(int argc, char** argv) { } #endif // GCC 4.7 guard - -- 2.34.1