[libcxx][NFC] Strip trailing whitespace, fix typo.

Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 7c9844b66e5e0cca1424e0688b4384d4ec23325a
diff --git a/src/chrono.cpp b/src/chrono.cpp
index c461d19..2d78cae 100644
--- a/src/chrono.cpp
+++ b/src/chrono.cpp
@@ -183,7 +183,7 @@
 
 // https://msdn.microsoft.com/en-us/library/windows/desktop/ms644905(v=vs.85).aspx says:
 //    If the function fails, the return value is zero. <snip>
-//    On systems that run Windows XP or later, the function will always succeed 
+//    On systems that run Windows XP or later, the function will always succeed
 //      and will thus never return zero.
 
 static LARGE_INTEGER
diff --git a/src/filesystem/operations.cpp b/src/filesystem/operations.cpp
index 4e6cb14..08a6b2b 100644
--- a/src/filesystem/operations.cpp
+++ b/src/filesystem/operations.cpp
@@ -1592,7 +1592,7 @@
 static int CompareRelative(PathParser *LHSPtr, PathParser *RHSPtr) {
   auto &LHS = *LHSPtr;
   auto &RHS = *RHSPtr;
-  
+
   int res;
   while (LHS && RHS) {
     if ((res = (*LHS).compare(*RHS)) != 0)
diff --git a/src/locale.cpp b/src/locale.cpp
index 5b29ee4..2757eaa 100644
--- a/src/locale.cpp
+++ b/src/locale.cpp
@@ -39,7 +39,7 @@
 #include "__undef_macros"
 
 // On Linux, wint_t and wchar_t have different signed-ness, and this causes
-// lots of noise in the build log, but no bugs that I know of. 
+// lots of noise in the build log, but no bugs that I know of.
 #if defined(__clang__)
 #pragma clang diagnostic ignored "-Wsign-conversion"
 #endif
@@ -770,7 +770,7 @@
 const ctype_base::mask ctype_base::blank;
 const ctype_base::mask ctype_base::alnum;
 const ctype_base::mask ctype_base::graph;
-    
+
 locale::id ctype<wchar_t>::id;
 
 ctype<wchar_t>::~ctype()
diff --git a/src/support/solaris/xlocale.cpp b/src/support/solaris/xlocale.cpp
index b6a2bfe..d68a39f 100644
--- a/src/support/solaris/xlocale.cpp
+++ b/src/support/solaris/xlocale.cpp
@@ -25,7 +25,7 @@
 
 // FIXME: This disregards the locale, which is Very Wrong
 #define vsnprintf_l(__s, __n, __l, __format, __va)  \
-    vsnprintf(__s, __n, __format, __va) 
+    vsnprintf(__s, __n, __format, __va)
 
 int snprintf_l(char *__s, size_t __n, locale_t __l, const char *__format, ...)
 {
diff --git a/src/support/win32/support.cpp b/src/support/win32/support.cpp
index 4c9a4b3..d156e02 100644
--- a/src/support/win32/support.cpp
+++ b/src/support/win32/support.cpp
@@ -40,13 +40,13 @@
     return count;
 }
 
-// Returns >= 0: the number of wide characters found in the 
-// multi byte sequence src (of src_size_bytes), that fit in the buffer dst 
+// Returns >= 0: the number of wide characters found in the
+// multi byte sequence src (of src_size_bytes), that fit in the buffer dst
 // (of max_dest_chars elements size). The count returned excludes the
-// null terminator. When dst is NULL, no characters are copied 
+// null terminator. When dst is NULL, no characters are copied
 // and no "out" parameters are updated.
 // Returns (size_t) -1: an incomplete sequence encountered.
-// Leaves *src pointing the next character to convert or NULL 
+// Leaves *src pointing the next character to convert or NULL
 // if a null character was converted from *src.
 size_t mbsnrtowcs( wchar_t *__restrict dst, const char **__restrict src,
                    size_t src_size_bytes, size_t max_dest_chars, mbstate_t *__restrict ps )
@@ -103,7 +103,7 @@
 // Returns >= 0: the number of bytes in the sequence
 // converted from *src, excluding the null terminator.
 // Returns size_t(-1) if an error occurs, also sets errno.
-// If dst is NULL dst_size_bytes is ignored and no bytes are copied to dst 
+// If dst is NULL dst_size_bytes is ignored and no bytes are copied to dst
 // and no "out" parameters are updated.
 size_t wcsnrtombs( char *__restrict dst, const wchar_t **__restrict src,
                    size_t max_source_chars, size_t dst_size_bytes, mbstate_t *__restrict ps )
@@ -132,7 +132,7 @@
             result = wcrtomb_s( &char_size, dst + dest_converted, dest_remaining, c, ps);
         else
             result = wcrtomb_s( &char_size, NULL, 0, c, ps);
-        // If result is zero there is no error and char_size contains the 
+        // If result is zero there is no error and char_size contains the
         // size of the multi-byte-sequence converted.
         // Otherwise result indicates an errno type error.
         if ( result == no_error ) {
diff --git a/src/thread.cpp b/src/thread.cpp
index cee778f..967a537 100644
--- a/src/thread.cpp
+++ b/src/thread.cpp
@@ -139,7 +139,7 @@
 {
 public:
     typedef T  value_type;
-    
+
     T* allocate(size_t __n)
         {return static_cast<T*>(::operator new(__n * sizeof(T)));}
     void deallocate(T* __p, size_t) {::operator delete(static_cast<void*>(__p));}