Commit ff878dc1 authored by Nicholas Ormrod's avatar Nicholas Ormrod Committed by Pavlo Kushnir

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
parent aaf30bd6
...@@ -124,4 +124,3 @@ class CpuId { ...@@ -124,4 +124,3 @@ class CpuId {
} // namespace folly } // namespace folly
#endif /* FOLLY_CPUID_H_ */ #endif /* FOLLY_CPUID_H_ */
...@@ -337,4 +337,3 @@ dynamic toDynamic(const T& x) { ...@@ -337,4 +337,3 @@ dynamic toDynamic(const T& x) {
} // namespace folly } // namespace folly
#endif // DYNAMIC_CONVERTER_H #endif // DYNAMIC_CONVERTER_H
...@@ -263,4 +263,3 @@ inline uint64_t Fingerprint<128>::shlor64(uint64_t v) { ...@@ -263,4 +263,3 @@ inline uint64_t Fingerprint<128>::shlor64(uint64_t v) {
} // namespace folly } // namespace folly
#endif /* FOLLY_FINGERPRINT_H_ */ #endif /* FOLLY_FINGERPRINT_H_ */
...@@ -62,4 +62,3 @@ bool usingJEMallocSlow() { ...@@ -62,4 +62,3 @@ bool usingJEMallocSlow() {
} }
} // namespaces } // namespaces
...@@ -149,4 +149,3 @@ static_assert(sizeof(PackedSyncPtr<void>) == 8, ...@@ -149,4 +149,3 @@ static_assert(sizeof(PackedSyncPtr<void>) == 8,
} }
#endif #endif
...@@ -503,4 +503,3 @@ class Adaptor { ...@@ -503,4 +503,3 @@ class Adaptor {
} // namespace folly } // namespace folly
#endif /* FOLLY_PADDED_H_ */ #endif /* FOLLY_PADDED_H_ */
...@@ -90,4 +90,3 @@ struct BitIteratorBase { ...@@ -90,4 +90,3 @@ struct BitIteratorBase {
} // namespace folly } // namespace folly
#endif /* FOLLY_DETAIL_BITITERATORDETAIL_H_ */ #endif /* FOLLY_DETAIL_BITITERATORDETAIL_H_ */
...@@ -90,4 +90,3 @@ class SlowFingerprint { ...@@ -90,4 +90,3 @@ class SlowFingerprint {
} // namespace folly } // namespace folly
#endif /* FOLLY_DETAIL_SLOWFINGERPRINT_H_ */ #endif /* FOLLY_DETAIL_SLOWFINGERPRINT_H_ */
...@@ -69,4 +69,3 @@ Example: ...@@ -69,4 +69,3 @@ Example:
}; };
} }
``` ```
...@@ -239,4 +239,3 @@ not an intrinsic in gcc and does not work terribly well for ...@@ -239,4 +239,3 @@ not an intrinsic in gcc and does not work terribly well for
large chunks) and in furthering the collaboration with large chunks) and in furthering the collaboration with
jemalloc. Have fun! jemalloc. Have fun!
...@@ -191,4 +191,3 @@ You can extend `format` for your own class by providing a specialization for ...@@ -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 `folly::FormatValue`. See `folly/Format.h` and `folly/FormatArg.h` for
details, and the existing specialization for `folly::dynamic` in details, and the existing specialization for `folly::dynamic` in
`folly/dynamic-inl.h` for an implementation example. `folly/dynamic-inl.h` for an implementation example.
...@@ -103,4 +103,3 @@ require a global mutex, but only happen at construction and destruction time. ...@@ -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 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 and memory cleanup upon thread exit because there is a finite number of
`pthread_key_t`'s available per machine. `pthread_key_t`'s available per machine.
...@@ -20,4 +20,3 @@ requires no link-time changes. On the other hand, you need to ensure that ...@@ -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 libexceptiontracer.so is compiled with the same compiler and flags as
your binary, and the usual caveats about LD_PRELOAD apply (it propagates your binary, and the usual caveats about LD_PRELOAD apply (it propagates
to child processes, etc). to child processes, etc).
...@@ -56,4 +56,3 @@ path canonical_parent(const path& p, const path& basePath = current_path()); ...@@ -56,4 +56,3 @@ path canonical_parent(const path& p, const path& basePath = current_path());
} // namespace folly } // namespace folly
#endif /* FOLLY_IO_FSUTIL_H_ */ #endif /* FOLLY_IO_FSUTIL_H_ */
...@@ -852,4 +852,3 @@ bool Dwarf::LineNumberVM::findAddress(uintptr_t target, Path& file, ...@@ -852,4 +852,3 @@ bool Dwarf::LineNumberVM::findAddress(uintptr_t target, Path& file,
} // namespace symbolizer } // namespace symbolizer
} // namespace folly } // namespace folly
...@@ -272,4 +272,3 @@ inline std::ostream& operator<<(std::ostream& out, const Dwarf::Path& path) { ...@@ -272,4 +272,3 @@ inline std::ostream& operator<<(std::ostream& out, const Dwarf::Path& path) {
} // namespace folly } // namespace folly
#endif /* FOLLY_EXPERIMENTAL_SYMBOLIZER_DWARF_H_ */ #endif /* FOLLY_EXPERIMENTAL_SYMBOLIZER_DWARF_H_ */
...@@ -243,4 +243,3 @@ class ElfFile { ...@@ -243,4 +243,3 @@ class ElfFile {
#include <folly/experimental/symbolizer/Elf-inl.h> #include <folly/experimental/symbolizer/Elf-inl.h>
#endif /* FOLLY_EXPERIMENTAL_SYMBOLIZER_ELF_H_ */ #endif /* FOLLY_EXPERIMENTAL_SYMBOLIZER_ELF_H_ */
...@@ -26,4 +26,3 @@ inline void failHard() { ...@@ -26,4 +26,3 @@ inline void failHard() {
}}} // namespaces }}} // namespaces
#endif /* FOLLY_SYMBOLIZER_TEST_SIGNALHANDLERTEST_H_ */ #endif /* FOLLY_SYMBOLIZER_TEST_SIGNALHANDLERTEST_H_ */
...@@ -93,4 +93,3 @@ int main(int argc, char *argv[]) { ...@@ -93,4 +93,3 @@ int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true); gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS(); return RUN_ALL_TESTS();
} }
...@@ -376,4 +376,3 @@ void BENCHFUN(erase)(int iters, int size) { ...@@ -376,4 +376,3 @@ void BENCHFUN(erase)(int iters, int size) {
} }
} }
BENCHMARK_PARAM(BENCHFUN(erase), 1024); BENCHMARK_PARAM(BENCHFUN(erase), 1024);
...@@ -105,4 +105,3 @@ TEST(Lazy, Consty) { ...@@ -105,4 +105,3 @@ TEST(Lazy, Consty) {
} }
} }
...@@ -2740,4 +2740,3 @@ int main(int argc, char** argv) { ...@@ -2740,4 +2740,3 @@ int main(int argc, char** argv) {
} }
#endif // GCC 4.7 guard #endif // GCC 4.7 guard
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