[libcxx-commits] [libcxx] [libcxx] [test] Make indentation more consistent in thousands_sep. NFC. (PR #99844)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 22 01:29:43 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 56ad7cc0126f9899fd884391cfa10b6359206c01 8ad6687a26d3bce221d9acd9ba2972d8df5c26d5 --extensions cpp -- libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
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 850352b3bc..f368b1069c 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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/99844
More information about the libcxx-commits
mailing list