From: Louis Dionne Date: Wed, 29 Apr 2020 16:52:59 +0000 (-0400) Subject: [libc++] NFC: Properly indent nested #ifs in platform_support.h X-Git-Tag: llvmorg-12-init~7449 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43a1d0d963a324e46babe5a99977f1105646a54e;p=platform%2Fupstream%2Fllvm.git [libc++] NFC: Properly indent nested #ifs in platform_support.h --- diff --git a/libcxx/test/support/platform_support.h b/libcxx/test/support/platform_support.h index 19531ce..e897ba76 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@UTC" -#define LOCALE_fr_FR_UTF_8 "fr_FR.UTF-8@UTC" -#define LOCALE_fr_CA_ISO8859_1 "fr_CA.ISO-8859-1@UTC" -#define LOCALE_cs_CZ_ISO8859_2 "cs_CZ.ISO-8859-2@UTC" -#define LOCALE_ru_RU_UTF_8 "ru_RU.UTF-8@UTC" -#define LOCALE_zh_CN_UTF_8 "zh_CN.UTF-8@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@UTC" +# define LOCALE_fr_FR_UTF_8 "fr_FR.UTF-8@UTC" +# define LOCALE_fr_CA_ISO8859_1 "fr_CA.ISO-8859-1@UTC" +# define LOCALE_cs_CZ_ISO8859_2 "cs_CZ.ISO-8859-2@UTC" +# define LOCALE_ru_RU_UTF_8 "ru_RU.UTF-8@UTC" +# define LOCALE_zh_CN_UTF_8 "zh_CN.UTF-8@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 @@ -57,9 +57,9 @@ #include #include #if defined(_WIN32) || defined(__MINGW32__) -#include // _mktemp_s +# include // _mktemp_s #else -#include // close +# include // close #endif #if defined(_NEWLIB_VERSION) && defined(__STRICT_ANSI__)