Commit 546bd3f5 authored by Nicholas Ormrod's avatar Nicholas Ormrod Committed by Dave Watson

remove eof whitespace lines

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
parent 4ecd8cdd
......@@ -160,4 +160,3 @@ inline bool AtomicBitSet<N>::operator[](size_t idx) const {
} // namespaces
#endif /* FOLLY_ATOMICBITSET_H_ */
......@@ -30,4 +30,3 @@ typedef monotonic_clock steady_clock;
#endif
#endif /* FOLLY_CHRONO_H_ */
......@@ -219,4 +219,3 @@ class DiscriminatedPtr {
} // namespace folly
#endif /* FOLLY_DISCRIMINATEDPTR_H_ */
......@@ -126,4 +126,3 @@ void throwOnFail(V&& value, Args&&... args) {
} // namespace folly
#endif /* FOLLY_EXCEPTION_H_ */
......@@ -149,4 +149,3 @@ ssize_t pwritevFull(int fd, iovec* iov, int count, off_t offset) {
#endif
} // namespaces
......@@ -273,4 +273,3 @@ inline int FormatArg::splitIntKey() {
} // namespace folly
#endif /* FOLLY_FORMATARG_H_ */
......@@ -611,4 +611,3 @@ typedef GroupVarintDecoder<uint64_t> GroupVarint64Decoder;
#endif /* FOLLY_X64 || defined(__i386__) */
#endif /* FOLLY_GROUPVARINT_H_ */
......@@ -36,4 +36,3 @@
#endif
#endif /* FOLLY_BASE_LIKELY_H_ */
......@@ -282,4 +282,3 @@ template <class In, class... Stages> class MPMCPipeline {
} // namespaces
......@@ -69,4 +69,3 @@ typename Map::mapped_type* get_ptr(
} // namespace folly
#endif /* FOLLY_MAPUTIL_H_ */
......@@ -47,4 +47,3 @@ void assertionFailure(const char* expr, const char* msg, const char* file,
}
}} // namespaces
......@@ -50,4 +50,3 @@ FOLLY_NORETURN void assertionFailure(const char* expr, const char* msg,
}} // namespace folly
#endif /* FOLLY_SAFEASSERT_H_ */
......@@ -666,4 +666,3 @@ inline Subprocess::Options& Subprocess::Options::operator|=(
} // namespace folly
#endif /* FOLLY_SUBPROCESS_H_ */
......@@ -41,4 +41,3 @@ void ThreadCachedArena::zombify(SysArena&& arena) {
}
} // namespace folly
......@@ -83,4 +83,3 @@ struct IsArenaAllocator<ThreadCachedArena> : std::true_type { };
} // namespace folly
#endif /* FOLLY_THREADCACHEDARENA_H_ */
......@@ -74,4 +74,3 @@ int64_t TimeoutQueue::runInternal(int64_t now, bool onceOnly) {
}
} // namespace folly
......@@ -129,4 +129,3 @@ class TimeoutQueue {
} // namespace folly
#endif /* FOLLY_TIMEOUTQUEUE_H_ */
......@@ -51,4 +51,3 @@ fbstring codePointToUtf8(char32_t cp) {
//////////////////////////////////////////////////////////////////////
}
......@@ -46,4 +46,3 @@ String Uri::toString() const {
}
} // namespace folly
......@@ -126,4 +126,3 @@ inline uint64_t decodeVarint(ByteRange& data) {
} // namespaces
#endif /* FOLLY_VARINT_H_ */
......@@ -51,4 +51,3 @@ int popcountll(unsigned long long x);
} // namespace folly
#endif /* FOLLY_DETAIL_BITSDETAIL_H_ */
......@@ -363,4 +363,3 @@ struct AccessSpreaderArray {
} }
#endif /* FOLLY_DETAIL_CacheLocality_H_ */
......@@ -162,4 +162,3 @@ struct ApplyConstVisitor
} // namespace folly
#endif /* FOLLY_DETAIL_DISCRIMINATEDPTRDETAIL_H_ */
......@@ -109,4 +109,3 @@ ssize_t wrapvFull(F f, int fd, iovec* iov, int count, Offset... offset) {
}} // namespaces
#endif /* FOLLY_DETAIL_FILEUTILDETAIL_H_ */
......@@ -143,4 +143,3 @@ class FingerprintPolynomial {
} // namespace folly
#endif /* FOLLY_BUILD_FINGERPRINTPOLYNOMIAL_H_ */
......@@ -101,4 +101,3 @@ class GroupVarintBase {
} // namespace folly
#endif /* FOLLY_DETAIL_GROUPVARINTDETAIL_H_ */
......@@ -123,4 +123,3 @@ struct AmplificationProduct<std::tuple<T, Ts...>> {
};
}} // namespaces
......@@ -41,4 +41,3 @@ const char* dynamic::typeName() const {
//////////////////////////////////////////////////////////////////////
}
......@@ -307,4 +307,3 @@ inline size_t Bits<T, Traits>::count(const T* begin, const T* end) {
} // namespace folly
#endif /* FOLLY_EXPERIMENTAL_BITS_H_ */
......@@ -212,4 +212,3 @@ void EventCount::await(Condition condition) {
} // namespace folly
#endif /* FOLLY_EXPERIMENTAL_EVENTCOUNT_H_ */
......@@ -92,4 +92,3 @@ class TemporaryDirectory {
} // namespace folly
#endif /* FOLLY_TESTUTIL_H_ */
......@@ -58,4 +58,3 @@ __cxa_eh_globals* __cxa_get_globals_fast(void) noexcept;
} // namespace __cxxabiv1
#endif /* FOLLY_EXPERIMENTAL_EXCEPTION_TRACER_EXCEPTIONABI_H_ */
......@@ -53,4 +53,3 @@ void installHandlers();
} // namespace folly
#endif /* FOLLY_EXPERIMENTAL_EXCEPTION_TRACER_EXCEPTIONTRACER_H_ */
......@@ -60,4 +60,3 @@ int main(int argc, char* argv[]) {
folly::runBenchmarks();
return 0;
}
......@@ -96,4 +96,3 @@ int main(int argc, char *argv[]) {
baz();
return 0;
}
......@@ -108,4 +108,3 @@ StackTrace* StackTraceStack::next(StackTrace* p) {
}
}} // namespaces
......@@ -100,4 +100,3 @@ class StackTraceStack {
}} // namespaces
#endif /* FOLLY_EXPERIMENTAL_EXCEPTION_TRACER_STACKTRACE_H_ */
......@@ -379,4 +379,3 @@ std::ostream& operator<<(std::ostream& os, AsyncIOOp::State state) {
}
} // namespace folly
......@@ -253,4 +253,3 @@ class AsyncIOQueue {
} // namespace folly
#endif /* FOLLY_IO_ASYNCIO_H_ */
......@@ -68,4 +68,3 @@ path canonical_parent(const path& pth, const path& base) {
} // namespace fs
} // namespace folly
......@@ -84,4 +84,3 @@ int main(int argc, char *argv[]) {
}
return 0;
}
......@@ -81,4 +81,3 @@ const HugePageSize* getHugePageSizeForDevice(dev_t device);
} // namespace folly
#endif /* FOLLY_IO_HUGEPAGES_H_ */
......@@ -389,5 +389,3 @@ TEST(AsyncIO, NonBlockingWait) {
EXPECT_EQ(size, res);
EXPECT_EQ(aioReader.pending(), 0);
}
......@@ -73,4 +73,3 @@ TEST(Simple, CanonicalizeParent) {
expectPathEq(c, canonical_parent(c));
expectPathEq(c, canonical_parent(d));
}
......@@ -90,4 +90,3 @@ const ElfW(Sym)* ElfFile::iterateSymbolsWithType(const ElfW(Shdr)& section,
} // namespace symbolizer
} // namespace folly
......@@ -375,4 +375,3 @@ const char* ElfFile::getSymbolName(Symbol symbol) const {
} // namespace symbolizer
} // namespace folly
......@@ -102,4 +102,3 @@ std::shared_ptr<ElfFile> ElfCache::filePtr(const std::shared_ptr<Entry>& e) {
}
}} // namespaces
......@@ -132,4 +132,3 @@ class ElfCache : public ElfCacheBase {
}} // namespaces
#endif /* FOLLY_SYMBOLIZER_ELFCACHE_H_ */
......@@ -71,4 +71,3 @@ LineReader::State LineReader::readLine(StringPiece& line) {
}
}} // namespaces
......@@ -88,4 +88,3 @@ class LineReader : private boost::noncopyable {
}} // namespaces
#endif /* FOLLY_SYMBOLIZER_LINEREADER_H_ */
......@@ -53,4 +53,3 @@ void installFatalSignalCallbacks();
}} // namespaces
#endif /* FOLLY_SYMBOLIZER_SIGNALHANDLER_H_ */
......@@ -47,4 +47,3 @@ ssize_t getStackTraceSafe(uintptr_t* addresses, size_t maxAddresses);
}} // namespaces
#endif /* FOLLY_SYMBOLIZER_STACKTRACE_H_ */
......@@ -83,4 +83,3 @@ TEST(LineReader, Simple) {
}
}}} // namespaces
......@@ -313,4 +313,3 @@ int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
......@@ -105,4 +105,3 @@ int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
......@@ -963,4 +963,3 @@ std::unique_ptr<Codec> getCodec(CodecType type, int level) {
}
}} // namespaces
......@@ -168,4 +168,3 @@ std::unique_ptr<Codec> getCodec(CodecType type,
}} // namespaces
#endif /* FOLLY_IO_COMPRESSION_H_ */
......@@ -93,4 +93,3 @@ inline RecordInfo findRecord(ByteRange range, uint32_t fileId) {
} // namespace recordio_helpers
} // namespaces
......@@ -178,4 +178,3 @@ RecordInfo validateRecord(ByteRange range, uint32_t fileId);
#include <folly/io/RecordIO-inl.h>
#endif /* FOLLY_IO_RECORDIO_H_ */
......@@ -216,4 +216,3 @@ class TypedIOBuf {
} // namespace folly
#endif /* FOLLY_IO_TYPEDIOBUF_H_ */
......@@ -253,4 +253,3 @@ int main(int argc, char *argv[]) {
}
return ret;
}
......@@ -640,4 +640,3 @@ inline void swap(sorted_vector_map<K,V,C,A,G>& a,
}
#endif
......@@ -59,4 +59,3 @@ int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
......@@ -26,4 +26,3 @@ TEST(CpuId, Simple) {
CpuId id;
EXPECT_TRUE(id.mmx());
}
......@@ -369,4 +369,3 @@ int main(int argc, char ** argv) {
}
return RUN_ALL_TESTS();
}
......@@ -321,4 +321,3 @@ int main(int argc, char** argv) {
}
return RUN_ALL_TESTS();
}
......@@ -94,4 +94,3 @@ int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
......@@ -209,4 +209,3 @@ TEST(File, Locks) {
testLock(SHARED, true);
}
}
......@@ -172,4 +172,3 @@ int main(int argc, char *argv[]) {
}
return ret;
}
......@@ -446,4 +446,3 @@ int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
......@@ -188,4 +188,3 @@ int main(int argc, char ** argv) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
......@@ -163,4 +163,3 @@ int main(int argc, char *argv[]) {
gflags::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
......@@ -239,4 +239,3 @@ TEST_F(IntAdaptorTest, ResizeConstructor) {
EXPECT_EQ(42, a[i]);
}
}
......@@ -42,4 +42,3 @@ TEST(Portability, Final) {
EXPECT_EQ(3, fooBase(p.get()));
EXPECT_EQ(3, fooDerived(p.get()));
}
......@@ -35,4 +35,3 @@ TEST(SafeAssert, AssertionFailure) {
succeed();
EXPECT_DEATH(fail(), ".*Assertion failure:.*hello.*");
}
......@@ -83,4 +83,3 @@ int main(int argc, char *argv[]) {
}
return 0;
}
......@@ -263,4 +263,3 @@ int main(int argc, char *argv[]) {
}
return ret;
}
......@@ -110,4 +110,3 @@ TEST(TimeoutQueue, RunOnceReschedule) {
EXPECT_EQ(std::numeric_limits<int64_t>::max(), q.runLoop(0));
EXPECT_EQ(100, count);
}
......@@ -484,4 +484,3 @@ TEST(TimeseriesHistogram, SingleUniqueValue) {
}
}
}
......@@ -126,4 +126,3 @@ int main(int argc, char ** argv) {
}
return RUN_ALL_TESTS();
}
......@@ -181,4 +181,3 @@ int main(int argc, char *argv[]) {
}
return ret;
}
......@@ -13,4 +13,3 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
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