Fix folly lint errors
authorNicholas Ormrod <njormrod@fb.com>
Fri, 31 Oct 2014 17:48:19 +0000 (10:48 -0700)
committerPavlo Kushnir <pavlo@fb.com>
Sat, 8 Nov 2014 02:16:33 +0000 (18:16 -0800)
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

22 files changed:
folly/CpuId.h
folly/DynamicConverter.h
folly/Fingerprint.h
folly/Malloc.cpp
folly/PackedSyncPtr.h
folly/Padded.h
folly/detail/BitIteratorDetail.h
folly/detail/SlowFingerprint.h
folly/docs/DynamicConverter.md
folly/docs/FBVector.md
folly/docs/Format.md
folly/docs/ThreadLocal.md
folly/experimental/exception_tracer/README
folly/experimental/io/FsUtil.h
folly/experimental/symbolizer/Dwarf.cpp
folly/experimental/symbolizer/Dwarf.h
folly/experimental/symbolizer/Elf.h
folly/experimental/symbolizer/test/SignalHandlerTest.h
folly/experimental/symbolizer/test/StackTraceTest.cpp
folly/test/FBVectorTestBenchmarks.cpp.h
folly/test/LazyTest.cpp
folly/test/stl_tests/StlVectorTest.cpp

index 4a70e1464dca70a664992d421aefeeb26e257d96..e3c50674eadb441a23e89d73441293722b59fda5 100644 (file)
@@ -124,4 +124,3 @@ class CpuId {
 }  // namespace folly
 
 #endif /* FOLLY_CPUID_H_ */
-
index d64dcc2827bcada3ba2ba986a311d53364de605e..198c0ae1bad31e5e8d5931da8173a9478360616e 100644 (file)
@@ -337,4 +337,3 @@ dynamic toDynamic(const T& x) {
 } // namespace folly
 
 #endif // DYNAMIC_CONVERTER_H
-
index 9dbf13e9c9546b1e99d4533106f26d2cbcabc857..5debaf3efe8a0dd87fff1978942a50b0e346c816 100644 (file)
@@ -263,4 +263,3 @@ inline uint64_t Fingerprint<128>::shlor64(uint64_t v) {
 }  // namespace folly
 
 #endif /* FOLLY_FINGERPRINT_H_ */
-
index c19427fdbbaef612f120dc372f43291b0b19d8ce..d1a242c228dfbb0b42e9464d45f04fec9e9e3a5a 100644 (file)
@@ -62,4 +62,3 @@ bool usingJEMallocSlow() {
 }
 
 }  // namespaces
-
index ca9e1215dc60b357ef35e7eed8f6b71e4c3c8fe5..f7b753b8f062b30304d8286c510d851a53417819 100644 (file)
@@ -149,4 +149,3 @@ static_assert(sizeof(PackedSyncPtr<void>) == 8,
 }
 
 #endif
-
index 504a0bc7b4f20f4199a406af7f8f1741012bd7cb..f7a283c69ee8e893b54cad48ff4b84ebeed36fe4 100644 (file)
@@ -503,4 +503,3 @@ class Adaptor {
 }  // namespace folly
 
 #endif /* FOLLY_PADDED_H_ */
-
index 34ccb4bcced21a46d464bd95c6d17483997eaf27..5af2ab32c4b77686a9039421bfbeb59dffd467fe 100644 (file)
@@ -90,4 +90,3 @@ struct BitIteratorBase {
 }  // namespace folly
 
 #endif /* FOLLY_DETAIL_BITITERATORDETAIL_H_ */
-
index 1e17bf30bec523b1e00ff076ad903be66a4d94bb..894aa1cba07a53eb076305a3b02cc9f461c9425a 100644 (file)
@@ -90,4 +90,3 @@ class SlowFingerprint {
 }  // namespace folly
 
 #endif /* FOLLY_DETAIL_SLOWFINGERPRINT_H_ */
-
index d0ee7f79a7fc85c69f3aecc103cb264abc604a61..4d657f37037492865f2f34fa0be0bf2ce1e76e8d 100644 (file)
@@ -69,4 +69,3 @@ Example:
     };
     }
 ```
-
index 9a2fe9b0d693b450c5f54840b30afebcd08da619..0975819b427675c4e22c943ed29bcb26a0b0973b 100644 (file)
@@ -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!
 
-
index 012f0a28a3eac8fd9501451aa25b9e91e0041e77..74192058abc00c496fae81e0367c83feaeae1b6d 100644 (file)
@@ -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.
-
index 1c185fba6e3be37ad4d9ca28fd114370ee4ea1f3..65634a3b9db17675f378a40f742e5dea7fa52a73 100644 (file)
@@ -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.
-
index 50da4e98a6ac6dbccfa8fd9325f076c222599b6f..819f85479ac7f839c4cb4852e792cefadd985db6 100644 (file)
@@ -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).
-
index 9ed2a3c78befbee7f5973b12e7fc5c6bdd66ced7..f571e886f836a287eb9d16423215c1c31dc60658 100644 (file)
@@ -56,4 +56,3 @@ path canonical_parent(const path& p, const path& basePath = current_path());
 }  // namespace folly
 
 #endif /* FOLLY_IO_FSUTIL_H_ */
-
index 90938ae737d17cc93700bb0c54fc26e42590b041..04473cfa01e7b3fe4123d18cb6b7891d22a6c93b 100644 (file)
@@ -852,4 +852,3 @@ bool Dwarf::LineNumberVM::findAddress(uintptr_t target, Path& file,
 
 }  // namespace symbolizer
 }  // namespace folly
-
index 820dd94ae9f52c670fcb9d603075dab47ec86514..723154a0b7233d650f90472313694b1ce864d54a 100644 (file)
@@ -272,4 +272,3 @@ inline std::ostream& operator<<(std::ostream& out, const Dwarf::Path& path) {
 }  // namespace folly
 
 #endif /* FOLLY_EXPERIMENTAL_SYMBOLIZER_DWARF_H_ */
-
index 6214a4d566b0bf9bf0a17bd849eb252799123542..9a58ba2f3e96a365da604e2861667ed7a7586528 100644 (file)
@@ -243,4 +243,3 @@ class ElfFile {
 #include <folly/experimental/symbolizer/Elf-inl.h>
 
 #endif /* FOLLY_EXPERIMENTAL_SYMBOLIZER_ELF_H_ */
-
index 16aa30c47356e9286e2e87a84a0d1029476a822e..aa646627aba64571ee261e87d2e4f2b9b60ca5c3 100644 (file)
@@ -26,4 +26,3 @@ inline void failHard() {
 }}}  // namespaces
 
 #endif /* FOLLY_SYMBOLIZER_TEST_SIGNALHANDLERTEST_H_ */
-
index 601bb0616022b2aaea3c4f70f455765dd98470ec..29f8fb1edfae7c767e1d123aa604c72e5d86e188 100644 (file)
@@ -93,4 +93,3 @@ int main(int argc, char *argv[]) {
   gflags::ParseCommandLineFlags(&argc, &argv, true);
   return RUN_ALL_TESTS();
 }
-
index 9257f7513d3458e1fb101a0eec5064f4851c24db..57bf5dab350a1ecd81a359e65825105072121831 100644 (file)
@@ -376,4 +376,3 @@ void BENCHFUN(erase)(int iters, int size) {
   }
 }
 BENCHMARK_PARAM(BENCHFUN(erase), 1024);
-
index 6d3eed06b48fd3a3376cedec7172ffdf7d82ed47..712435a1021e0ced0bb3ce1f2b38e1cccbd3e988 100644 (file)
@@ -105,4 +105,3 @@ TEST(Lazy, Consty) {
 }
 
 }
-
index c3cbd7c6fc55b14d63e9276bd315e8b6fdaa94da..dff7c56b28039cafb9d1932a914c0c13ed04e854 100644 (file)
@@ -2740,4 +2740,3 @@ int main(int argc, char** argv) {
 }
 
 #endif // GCC 4.7 guard
-