[libcxx-commits] [libcxx] 43a1d0d - [libc++] NFC: Properly indent nested #ifs in platform_support.h

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 29 09:53:24 PDT 2020


Author: Louis Dionne
Date: 2020-04-29T12:53:16-04:00
New Revision: 43a1d0d963a324e46babe5a99977f1105646a54e

URL: https://github.com/llvm/llvm-project/commit/43a1d0d963a324e46babe5a99977f1105646a54e
DIFF: https://github.com/llvm/llvm-project/commit/43a1d0d963a324e46babe5a99977f1105646a54e.diff

LOG: [libc++] NFC: Properly indent nested #ifs in platform_support.h

Added: 
    

Modified: 
    libcxx/test/support/platform_support.h

Removed: 
    


################################################################################
diff  --git a/libcxx/test/support/platform_support.h b/libcxx/test/support/platform_support.h
index 19531ce08004..e897ba7625ca 100644
--- a/libcxx/test/support/platform_support.h
+++ b/libcxx/test/support/platform_support.h
@@ -16,39 +16,39 @@
 
 // locale names
 #ifdef _WIN32
-// WARNING: Windows does not support UTF-8 codepages.
-// Locales are "converted" using https://docs.moodle.org/dev/Table_of_locales
-#define LOCALE_en_US           "en-US"
-#define LOCALE_en_US_UTF_8     "en-US"
-#define LOCALE_cs_CZ_ISO8859_2 "cs-CZ"
-#define LOCALE_fr_FR_UTF_8     "fr-FR"
-#define LOCALE_fr_CA_ISO8859_1 "fr-CA"
-#define LOCALE_ru_RU_UTF_8     "ru-RU"
-#define LOCALE_zh_CN_UTF_8     "zh-CN"
+    // WARNING: Windows does not support UTF-8 codepages.
+    // Locales are "converted" using https://docs.moodle.org/dev/Table_of_locales
+#   define LOCALE_en_US           "en-US"
+#   define LOCALE_en_US_UTF_8     "en-US"
+#   define LOCALE_cs_CZ_ISO8859_2 "cs-CZ"
+#   define LOCALE_fr_FR_UTF_8     "fr-FR"
+#   define LOCALE_fr_CA_ISO8859_1 "fr-CA"
+#   define LOCALE_ru_RU_UTF_8     "ru-RU"
+#   define LOCALE_zh_CN_UTF_8     "zh-CN"
 #elif defined(__CloudABI__)
-// Timezones are integrated into locales through LC_TIMEZONE_MASK on
-// CloudABI. LC_ALL_MASK can only be used if a timezone has also been
-// provided. UTC should be all right.
-#define LOCALE_en_US           "en_US"
-#define LOCALE_en_US_UTF_8     "en_US.UTF-8 at UTC"
-#define LOCALE_fr_FR_UTF_8     "fr_FR.UTF-8 at UTC"
-#define LOCALE_fr_CA_ISO8859_1 "fr_CA.ISO-8859-1 at UTC"
-#define LOCALE_cs_CZ_ISO8859_2 "cs_CZ.ISO-8859-2 at UTC"
-#define LOCALE_ru_RU_UTF_8     "ru_RU.UTF-8 at UTC"
-#define LOCALE_zh_CN_UTF_8     "zh_CN.UTF-8 at UTC"
+    // Timezones are integrated into locales through LC_TIMEZONE_MASK on
+    // CloudABI. LC_ALL_MASK can only be used if a timezone has also been
+    // provided. UTC should be all right.
+#   define LOCALE_en_US           "en_US"
+#   define LOCALE_en_US_UTF_8     "en_US.UTF-8 at UTC"
+#   define LOCALE_fr_FR_UTF_8     "fr_FR.UTF-8 at UTC"
+#   define LOCALE_fr_CA_ISO8859_1 "fr_CA.ISO-8859-1 at UTC"
+#   define LOCALE_cs_CZ_ISO8859_2 "cs_CZ.ISO-8859-2 at UTC"
+#   define LOCALE_ru_RU_UTF_8     "ru_RU.UTF-8 at UTC"
+#   define LOCALE_zh_CN_UTF_8     "zh_CN.UTF-8 at UTC"
 #else
-#define LOCALE_en_US           "en_US"
-#define LOCALE_en_US_UTF_8     "en_US.UTF-8"
-#define LOCALE_fr_FR_UTF_8     "fr_FR.UTF-8"
-#ifdef __linux__
-#define LOCALE_fr_CA_ISO8859_1 "fr_CA.ISO-8859-1"
-#define LOCALE_cs_CZ_ISO8859_2 "cs_CZ.ISO-8859-2"
-#else
-#define LOCALE_fr_CA_ISO8859_1 "fr_CA.ISO8859-1"
-#define LOCALE_cs_CZ_ISO8859_2 "cs_CZ.ISO8859-2"
-#endif
-#define LOCALE_ru_RU_UTF_8     "ru_RU.UTF-8"
-#define LOCALE_zh_CN_UTF_8     "zh_CN.UTF-8"
+#   define LOCALE_en_US           "en_US"
+#   define LOCALE_en_US_UTF_8     "en_US.UTF-8"
+#   define LOCALE_fr_FR_UTF_8     "fr_FR.UTF-8"
+#   ifdef __linux__
+#       define LOCALE_fr_CA_ISO8859_1 "fr_CA.ISO-8859-1"
+#       define LOCALE_cs_CZ_ISO8859_2 "cs_CZ.ISO-8859-2"
+#   else
+#       define LOCALE_fr_CA_ISO8859_1 "fr_CA.ISO8859-1"
+#       define LOCALE_cs_CZ_ISO8859_2 "cs_CZ.ISO8859-2"
+#   endif
+#   define LOCALE_ru_RU_UTF_8     "ru_RU.UTF-8"
+#   define LOCALE_zh_CN_UTF_8     "zh_CN.UTF-8"
 #endif
 
 #include <stdio.h>
@@ -57,9 +57,9 @@
 #include <locale>
 #include <string>
 #if defined(_WIN32) || defined(__MINGW32__)
-#include <io.h> // _mktemp_s
+#   include <io.h> // _mktemp_s
 #else
-#include <unistd.h> // close
+#   include <unistd.h> // close
 #endif
 
 #if defined(_NEWLIB_VERSION) && defined(__STRICT_ANSI__)


        


More information about the libcxx-commits mailing list