From b66c684add89d0990232f764d07002144243b36b Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 7 Feb 2016 21:17:15 +0000 Subject: [PATCH] add trailing newlines --- COPYING.md | 2 +- README.md | 2 +- examples/format.cc | 2 +- examples/listdir.cc | 2 +- examples/range.cc | 2 +- examples/signal.cc | 2 +- examples/stream1.cc | 2 +- examples/stream2.cc | 2 +- ostd/algorithm.hh | 2 +- ostd/array.hh | 2 +- ostd/atomic.hh | 2 +- ostd/condition.hh | 2 +- ostd/event.hh | 2 +- ostd/filesystem.hh | 2 +- ostd/format.hh | 2 +- ostd/functional.hh | 2 +- ostd/initializer_list.hh | 2 +- ostd/internal/hashtable.hh | 2 +- ostd/internal/mutex.hh | 2 +- ostd/internal/tuple.hh | 2 +- ostd/internal/win32.hh | 2 +- ostd/io.hh | 2 +- ostd/keyset.hh | 2 +- ostd/map.hh | 2 +- ostd/maybe.hh | 2 +- ostd/memory.hh | 2 +- ostd/mutex.hh | 2 +- ostd/new.hh | 2 +- ostd/platform.hh | 2 +- ostd/range.hh | 2 +- ostd/set.hh | 2 +- ostd/stream.hh | 2 +- ostd/string.hh | 2 +- ostd/thread.hh | 2 +- ostd/tuple.hh | 2 +- ostd/type_traits.hh | 2 +- ostd/types.hh | 2 +- ostd/utility.hh | 2 +- ostd/vecmath.hh | 2 +- ostd/vector.hh | 2 +- run_tests.py | 2 +- src/new.cc | 2 +- tests/array.cc | 2 +- tests/utility.cc | 2 +- tests/vector.cc | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-) diff --git a/COPYING.md b/COPYING.md index f9995e4..c40669e 100644 --- a/COPYING.md +++ b/COPYING.md @@ -33,4 +33,4 @@ Additionally some code from the libc++ project has been used as a reference; libc++ is a part of the LLVM project. Additional thanks to Dale Weiler aka graphitemaster (reference code in the -Neothyne project) and cppreference.com. \ No newline at end of file +Neothyne project) and cppreference.com. diff --git a/README.md b/README.md index 944b0a3..b1b5923 100644 --- a/README.md +++ b/README.md @@ -39,4 +39,4 @@ systems that implement POSIX API will also work (if they don't, bug reports are welcome). Windows is supported at least with the MinGW (gcc) and Clang compilers. MS -Visual Studio is currently unsupported. \ No newline at end of file +Visual Studio is currently unsupported. diff --git a/examples/format.cc b/examples/format.cc index 116d37a..6242aa0 100644 --- a/examples/format.cc +++ b/examples/format.cc @@ -83,4 +83,4 @@ int main() { auto s = appender(); format(s, "hello %s", "world"); writeln(s.get()); -} \ No newline at end of file +} diff --git a/examples/listdir.cc b/examples/listdir.cc index 2f6e183..ae13f79 100644 --- a/examples/listdir.cc +++ b/examples/listdir.cc @@ -19,4 +19,4 @@ int main(int argc, char **argv) { if (argc < 1) return 1; list_dirs(argv[1]); return 0; -} \ No newline at end of file +} diff --git a/examples/range.cc b/examples/range.cc index 0fcb008..f61e284 100644 --- a/examples/range.cc +++ b/examples/range.cc @@ -24,4 +24,4 @@ int main() { /* generate string ABCDEF */ String s(map(range(6), [](int v) -> char { return v + 65; })); writeln(s); -} \ No newline at end of file +} diff --git a/examples/signal.cc b/examples/signal.cc index 6382347..1cdc035 100644 --- a/examples/signal.cc +++ b/examples/signal.cc @@ -85,4 +85,4 @@ int main() { writeln("=== program end ==="); return 0; -} \ No newline at end of file +} diff --git a/examples/stream1.cc b/examples/stream1.cc index e7f5814..03ae526 100644 --- a/examples/stream1.cc +++ b/examples/stream1.cc @@ -19,4 +19,4 @@ int main() { print_result(x); return 0; -} \ No newline at end of file +} diff --git a/examples/stream2.cc b/examples/stream2.cc index 6dae1ee..e4644c9 100644 --- a/examples/stream2.cc +++ b/examples/stream2.cc @@ -34,4 +34,4 @@ int main() { writefln("-- str beg --\n%s\n-- str end --", ts2); return 0; -} \ No newline at end of file +} diff --git a/ostd/algorithm.hh b/ostd/algorithm.hh index edf75d0..97c991b 100644 --- a/ostd/algorithm.hh +++ b/ostd/algorithm.hh @@ -629,4 +629,4 @@ FilterRange> filter(R range, P pred) { } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/array.hh b/ostd/array.hh index c27a4b1..87da0e6 100644 --- a/ostd/array.hh +++ b/ostd/array.hh @@ -131,4 +131,4 @@ inline bool operator>=(const Array &x, const Array &y) { } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/atomic.hh b/ostd/atomic.hh index e6cdff7..385acbb 100644 --- a/ostd/atomic.hh +++ b/ostd/atomic.hh @@ -955,4 +955,4 @@ using AtomicUintFast64 = Atomic; } -#endif \ No newline at end of file +#endif diff --git a/ostd/condition.hh b/ostd/condition.hh index 1f338b5..059bc6c 100644 --- a/ostd/condition.hh +++ b/ostd/condition.hh @@ -8,4 +8,4 @@ #include "ostd/internal/mutex.hh" -#endif \ No newline at end of file +#endif diff --git a/ostd/event.hh b/ostd/event.hh index fed02c4..d94a4af 100644 --- a/ostd/event.hh +++ b/ostd/event.hh @@ -191,4 +191,4 @@ public: } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/filesystem.hh b/ostd/filesystem.hh index 7d44e14..821eeb2 100644 --- a/ostd/filesystem.hh +++ b/ostd/filesystem.hh @@ -550,4 +550,4 @@ inline bool directory_change(ConstCharRange path) { } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/format.hh b/ostd/format.hh index 2e41356..814bf0a 100644 --- a/ostd/format.hh +++ b/ostd/format.hh @@ -897,4 +897,4 @@ Ptrdiff format(R &&writer, ConstCharRange fmt, const A &...args) { } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/functional.hh b/ostd/functional.hh index 4179c9d..cf134f6 100644 --- a/ostd/functional.hh +++ b/ostd/functional.hh @@ -944,4 +944,4 @@ template using FunctionMakeDefaultConstructible } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/initializer_list.hh b/ostd/initializer_list.hh index 68835ce..acc7404 100644 --- a/ostd/initializer_list.hh +++ b/ostd/initializer_list.hh @@ -50,4 +50,4 @@ PointerRange citer(std::initializer_list init) { } -#endif \ No newline at end of file +#endif diff --git a/ostd/internal/hashtable.hh b/ostd/internal/hashtable.hh index c363b62..d540766 100644 --- a/ostd/internal/hashtable.hh +++ b/ostd/internal/hashtable.hh @@ -651,4 +651,4 @@ public: } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/internal/mutex.hh b/ostd/internal/mutex.hh index 8414dbb..0145c88 100644 --- a/ostd/internal/mutex.hh +++ b/ostd/internal/mutex.hh @@ -189,4 +189,4 @@ private: } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/internal/tuple.hh b/ostd/internal/tuple.hh index f341578..eafe244 100644 --- a/ostd/internal/tuple.hh +++ b/ostd/internal/tuple.hh @@ -273,4 +273,4 @@ namespace detail { } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/internal/win32.hh b/ostd/internal/win32.hh index 62e6a4d..91945f2 100644 --- a/ostd/internal/win32.hh +++ b/ostd/internal/win32.hh @@ -12,4 +12,4 @@ #include #endif -#endif \ No newline at end of file +#endif diff --git a/ostd/io.hh b/ostd/io.hh index 30c21ba..134f754 100644 --- a/ostd/io.hh +++ b/ostd/io.hh @@ -194,4 +194,4 @@ inline void writefln(ConstCharRange fmt, const A &...args) { } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/keyset.hh b/ostd/keyset.hh index cef4b62..4bf8f2a 100644 --- a/ostd/keyset.hh +++ b/ostd/keyset.hh @@ -177,4 +177,4 @@ template< } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/map.hh b/ostd/map.hh index e9a760e..bba29c7 100644 --- a/ostd/map.hh +++ b/ostd/map.hh @@ -177,4 +177,4 @@ template< } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/maybe.hh b/ostd/maybe.hh index c8056a4..9bb4a63 100644 --- a/ostd/maybe.hh +++ b/ostd/maybe.hh @@ -419,4 +419,4 @@ inline constexpr Maybe> make_maybe(T &&v) { } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/memory.hh b/ostd/memory.hh index ae392cd..452d60c 100644 --- a/ostd/memory.hh +++ b/ostd/memory.hh @@ -1072,4 +1072,4 @@ constexpr int UsesAllocatorConstructor } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/mutex.hh b/ostd/mutex.hh index fbd698e..2d38d55 100644 --- a/ostd/mutex.hh +++ b/ostd/mutex.hh @@ -8,4 +8,4 @@ #include "ostd/internal/mutex.hh" -#endif \ No newline at end of file +#endif diff --git a/ostd/new.hh b/ostd/new.hh index 6e0d306..a7882af 100644 --- a/ostd/new.hh +++ b/ostd/new.hh @@ -17,4 +17,4 @@ inline void operator delete[](void *, void *) {} #include #endif -#endif \ No newline at end of file +#endif diff --git a/ostd/platform.hh b/ostd/platform.hh index 972d6a8..d8b9616 100644 --- a/ostd/platform.hh +++ b/ostd/platform.hh @@ -143,4 +143,4 @@ inline uint64_t endian_swap64(uint64_t x) { } -#endif \ No newline at end of file +#endif diff --git a/ostd/range.hh b/ostd/range.hh index c7530df..5868b1b 100644 --- a/ostd/range.hh +++ b/ostd/range.hh @@ -1277,4 +1277,4 @@ template using RangeOf = decltype(iter(declval())); } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/set.hh b/ostd/set.hh index 72874e9..72d3f55 100644 --- a/ostd/set.hh +++ b/ostd/set.hh @@ -148,4 +148,4 @@ template< } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/stream.hh b/ostd/stream.hh index 295c07f..ef87a09 100644 --- a/ostd/stream.hh +++ b/ostd/stream.hh @@ -233,4 +233,4 @@ inline StreamRange Stream::iter() { } -#endif \ No newline at end of file +#endif diff --git a/ostd/string.hh b/ostd/string.hh index 34ae138..28f4662 100644 --- a/ostd/string.hh +++ b/ostd/string.hh @@ -852,4 +852,4 @@ String to_string(std::initializer_list init) { } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/thread.hh b/ostd/thread.hh index eab0bd1..f612bf2 100644 --- a/ostd/thread.hh +++ b/ostd/thread.hh @@ -186,4 +186,4 @@ private: } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/tuple.hh b/ostd/tuple.hh index 5702314..25d32fa 100644 --- a/ostd/tuple.hh +++ b/ostd/tuple.hh @@ -552,4 +552,4 @@ constexpr bool UsesAllocator, A> = true; } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/type_traits.hh b/ostd/type_traits.hh index 7f5660e..4fcd4e7 100644 --- a/ostd/type_traits.hh +++ b/ostd/type_traits.hh @@ -1158,4 +1158,4 @@ using UnderlyingType = typename detail::UnderlyingTypeBase::Type; } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/types.hh b/ostd/types.hh index 3a39e9d..6bb636a 100644 --- a/ostd/types.hh +++ b/ostd/types.hh @@ -92,4 +92,4 @@ namespace detail { } -#endif \ No newline at end of file +#endif diff --git a/ostd/utility.hh b/ostd/utility.hh index 407287a..b44b37b 100644 --- a/ostd/utility.hh +++ b/ostd/utility.hh @@ -383,4 +383,4 @@ namespace detail { } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/vecmath.hh b/ostd/vecmath.hh index b68e51c..8ae341d 100644 --- a/ostd/vecmath.hh +++ b/ostd/vecmath.hh @@ -389,4 +389,4 @@ using Vec4i = Vec4; } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/ostd/vector.hh b/ostd/vector.hh index 2bdda21..05be648 100644 --- a/ostd/vector.hh +++ b/ostd/vector.hh @@ -463,4 +463,4 @@ inline bool operator>=(const Vector &x, const Vector &y) { } /* namespace ostd */ -#endif \ No newline at end of file +#endif diff --git a/run_tests.py b/run_tests.py index 2c3f927..65c6a28 100644 --- a/run_tests.py +++ b/run_tests.py @@ -71,4 +71,4 @@ for fname in listdir(TESTDIR): print "\n%(blue)s%(bold)stesting done:%(end)s" % colors print "%(green)sSUCCESS: " % colors + str(nsuccess) + colors["end"] -print "%(red)sFAILURE: " % colors + str(nfailed) + colors["end"] \ No newline at end of file +print "%(red)sFAILURE: " % colors + str(nfailed) + colors["end"] diff --git a/src/new.cc b/src/new.cc index f269d29..8080f31 100644 --- a/src/new.cc +++ b/src/new.cc @@ -25,4 +25,4 @@ void operator delete(void *p) noexcept { void operator delete[](void *p) noexcept { free(p); -} \ No newline at end of file +} diff --git a/tests/array.cc b/tests/array.cc index 1e8ab57..02a802d 100644 --- a/tests/array.cc +++ b/tests/array.cc @@ -41,4 +41,4 @@ int main() { assert(to_string(z) == "{2, 4, 8, 16, 32}"); return 0; -} \ No newline at end of file +} diff --git a/tests/utility.cc b/tests/utility.cc index d4d0c35..9d24fc4 100644 --- a/tests/utility.cc +++ b/tests/utility.cc @@ -87,4 +87,4 @@ int main() { assert(to_string(st) == "{5, 10}"); return 0; -} \ No newline at end of file +} diff --git a/tests/vector.cc b/tests/vector.cc index e215a53..91dd475 100644 --- a/tests/vector.cc +++ b/tests/vector.cc @@ -90,4 +90,4 @@ int main() { assert(to_string(w) == "{5, 5, 4, 5, 5, 5, 5, 5, 5, 5, 5, 3, 2, 1}"); return 0; -} \ No newline at end of file +}