Bug 1519636 - Reformat recent changes to the Google coding style r=geckoview-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,nalexander,gstoll,tcampbell,janv,julienw

Updated with clang-format version 19.1.7 (taskcluster-DYvBxDZJRVqTi8E7pTSJAQ)

Differential Revision: https://phabricator.services.mozilla.com/D249880
This commit is contained in:
Sylvestre Ledru
2025-05-17 19:07:22 +00:00
committed by sledru@mozilla.com
parent 1df22ac023
commit 8ae54ea4f9
331 changed files with 2084 additions and 2460 deletions

View File

@@ -187,8 +187,7 @@ Result<Ok, ICUError> ApplyCalendarOverride(UDateFormat* aDateFormat) {
auto* gregorian = static_cast<const icu::GregorianCalendar*>(calendar);
MOZ_TRY(
SetGregorianChangeDate(const_cast<icu::GregorianCalendar*>(gregorian)));
}
else if (IsCalendarReplacementSupported(type)) {
} else if (IsCalendarReplacementSupported(type)) {
auto replacement = CreateCalendarReplacement(calendar);
if (replacement.isErr()) {
return replacement.propagateErr();

View File

@@ -6,22 +6,14 @@
#define nsLWBrkCIID_h__
// {2BF64764-997F-450D-AF96-3028D1A902B0}
#define NS_LBRK_CID \
{ \
0x2bf64764, 0x997f, 0x450d, { \
0xaf, 0x96, 0x30, 0x28, 0xd1, 0xa9, 0x2, 0xb0 \
} \
}
#define NS_LBRK_CID \
{0x2bf64764, 0x997f, 0x450d, {0xaf, 0x96, 0x30, 0x28, 0xd1, 0xa9, 0x2, 0xb0}}
#define NS_LBRK_CONTRACTID "@mozilla.org/intl/lbrk;1"
// {2BF64765-997F-450D-AF96-3028D1A902B0}
#define NS_WBRK_CID \
{ \
0x2bf64765, 0x997f, 0x450d, { \
0xaf, 0x96, 0x30, 0x28, 0xd1, 0xa9, 0x2, 0xb0 \
} \
}
#define NS_WBRK_CID \
{0x2bf64765, 0x997f, 0x450d, {0xaf, 0x96, 0x30, 0x28, 0xd1, 0xa9, 0x2, 0xb0}}
#define NS_WBRK_CONTRACTID "@mozilla.org/intl/wbrk;1"

View File

@@ -19,12 +19,8 @@
"@mozilla.org/intl/converter-input-stream;1"
// {2BC2AD62-AD5D-4b7b-A9DB-F74AE203C527}
#define NS_CONVERTERINPUTSTREAM_CID \
{ \
0x2bc2ad62, 0xad5d, 0x4b7b, { \
0xa9, 0xdb, 0xf7, 0x4a, 0xe2, 0x3, 0xc5, 0x27 \
} \
}
#define NS_CONVERTERINPUTSTREAM_CID \
{0x2bc2ad62, 0xad5d, 0x4b7b, {0xa9, 0xdb, 0xf7, 0x4a, 0xe2, 0x3, 0xc5, 0x27}}
class nsConverterInputStream : public nsIConverterInputStream,
public nsIUnicharLineInputStream {

View File

@@ -14,12 +14,8 @@
class nsIOutputStream;
/* ff8780a5-bbb1-4bc5-8ee7-057e7bc5c925 */
#define NS_CONVERTEROUTPUTSTREAM_CID \
{ \
0xff8780a5, 0xbbb1, 0x4bc5, { \
0x8e, 0xe7, 0x05, 0x7e, 0x7b, 0xc5, 0xc9, 0x25 \
} \
}
#define NS_CONVERTEROUTPUTSTREAM_CID \
{0xff8780a5, 0xbbb1, 0x4bc5, {0x8e, 0xe7, 0x05, 0x7e, 0x7b, 0xc5, 0xc9, 0x25}}
class nsConverterOutputStream final : public nsIConverterOutputStream {
public:

View File

@@ -155,12 +155,18 @@ inline bool HasRTLChars(mozilla::Span<const char16_t> aBuffer) {
#define GET_BIDI_OPTION_NUMERAL(bo) \
(((bo) >> 8) & 0x0000000F) /* 4 bits for NUMERAL */
#define SET_BIDI_OPTION_DIRECTION(bo, dir) \
{ (bo) = ((bo) & 0xFFFFFFF0) | (((dir) & 0x0000000F) << 0); }
#define SET_BIDI_OPTION_TEXTTYPE(bo, tt) \
{ (bo) = ((bo) & 0xFFFFFF0F) | (((tt) & 0x0000000F) << 4); }
#define SET_BIDI_OPTION_NUMERAL(bo, num) \
{ (bo) = ((bo) & 0xFFFFF0FF) | (((num) & 0x0000000F) << 8); }
#define SET_BIDI_OPTION_DIRECTION(bo, dir) \
{ \
(bo) = ((bo) & 0xFFFFFFF0) | (((dir) & 0x0000000F) << 0); \
}
#define SET_BIDI_OPTION_TEXTTYPE(bo, tt) \
{ \
(bo) = ((bo) & 0xFFFFFF0F) | (((tt) & 0x0000000F) << 4); \
}
#define SET_BIDI_OPTION_NUMERAL(bo, num) \
{ \
(bo) = ((bo) & 0xFFFFF0FF) | (((num) & 0x0000000F) << 8); \
}
/* Constants related to the position of numerics in the codepage */
#define START_HINDI_DIGITS 0x0660