[libcxx-commits] [libcxx] [libcxx] [test] Make indentation more consistent in thousands_sep. NFC. (PR #99844)

Martin Storsjö via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 22 01:25:42 PDT 2024


https://github.com/mstorsjo created https://github.com/llvm/llvm-project/pull/99844

This was made inconsistent recently in
f114eddb1923289b696f1b0980cc22c4dbaafa22.

>From 8ad6687a26d3bce221d9acd9ba2972d8df5c26d5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin at martin.st>
Date: Mon, 22 Jul 2024 11:19:07 +0300
Subject: [PATCH] [libcxx] [test] Make indentation more consistent in
 thousands_sep. NFC.

This was made inconsistent recently in
f114eddb1923289b696f1b0980cc22c4dbaafa22.
---
 .../locale.numpunct.byname/thousands_sep.pass.cpp         | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp b/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp
index f368b1069c063..850352b3bc1ec 100644
--- a/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp
+++ b/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp
@@ -64,7 +64,7 @@ int main(int, char**)
         std::locale l(LOCALE_fr_FR_UTF_8);
         {
 #if defined(_CS_GNU_LIBC_VERSION) || defined(_WIN32) || defined(_AIX)
-          const char sep = ' ';
+            const char sep = ' ';
 #else
             const char sep = ',';
 #endif
@@ -77,11 +77,11 @@ int main(int, char**)
 #if defined(_CS_GNU_LIBC_VERSION)
             const wchar_t wsep = glibc_version_less_than("2.27") ? L' ' : L'\u202f';
 #  elif defined(_AIX)
-          const wchar_t wsep = L'\u202F';
+            const wchar_t wsep = L'\u202F';
 #  elif defined(_WIN32)
-          const wchar_t wsep = L'\u00A0';
+            const wchar_t wsep = L'\u00A0';
 #  else
-          const wchar_t wsep = L',';
+            const wchar_t wsep = L',';
 #  endif
             typedef wchar_t C;
             const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);



More information about the libcxx-commits mailing list