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 {
} // namespace folly
#endif /* FOLLY_CPUID_H_ */
......@@ -337,4 +337,3 @@ dynamic toDynamic(const T& x) {
} // namespace folly
#endif // DYNAMIC_CONVERTER_H
......@@ -263,4 +263,3 @@ inline uint64_t Fingerprint<128>::shlor64(uint64_t v) {
} // namespace folly
#endif /* FOLLY_FINGERPRINT_H_ */
......@@ -62,4 +62,3 @@ bool usingJEMallocSlow() {
}
} // namespaces
......@@ -149,4 +149,3 @@ static_assert(sizeof(PackedSyncPtr<void>) == 8,
}
#endif
......@@ -503,4 +503,3 @@ class Adaptor {
} // namespace folly
#endif /* FOLLY_PADDED_H_ */
......@@ -90,4 +90,3 @@ struct BitIteratorBase {
} // namespace folly
#endif /* FOLLY_DETAIL_BITITERATORDETAIL_H_ */
......@@ -90,4 +90,3 @@ class SlowFingerprint {
} // namespace folly
#endif /* FOLLY_DETAIL_SLOWFINGERPRINT_H_ */
......@@ -69,4 +69,3 @@ Example:
};
}
```
......@@ -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!
......@@ -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.
......@@ -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.
......@@ -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).
......@@ -56,4 +56,3 @@ path canonical_parent(const path& p, const path& basePath = current_path());
} // namespace folly
#endif /* FOLLY_IO_FSUTIL_H_ */
......@@ -852,4 +852,3 @@ bool Dwarf::LineNumberVM::findAddress(uintptr_t target, Path& file,
} // namespace symbolizer
} // namespace folly
......@@ -272,4 +272,3 @@ inline std::ostream& operator<<(std::ostream& out, const Dwarf::Path& path) {
} // namespace folly
#endif /* FOLLY_EXPERIMENTAL_SYMBOLIZER_DWARF_H_ */
......@@ -243,4 +243,3 @@ class ElfFile {
#include <folly/experimental/symbolizer/Elf-inl.h>
#endif /* FOLLY_EXPERIMENTAL_SYMBOLIZER_ELF_H_ */
......@@ -26,4 +26,3 @@ inline void failHard() {
}}} // namespaces
#endif /* FOLLY_SYMBOLIZER_TEST_SIGNALHANDLERTEST_H_ */
......@@ -93,4 +93,3 @@ int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
......@@ -376,4 +376,3 @@ void BENCHFUN(erase)(int iters, int size) {
}
}
BENCHMARK_PARAM(BENCHFUN(erase), 1024);
......@@ -105,4 +105,3 @@ TEST(Lazy, Consty) {
}
}
......@@ -2740,4 +2740,3 @@ int main(int argc, char** argv) {
}
#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