Bug 1498586 - Add clang-format off to avoid the reformatting of the data structures r=Ehsan

Too hard/impossible for the tool to format correctly these structs

Differential Revision: https://phabricator.services.mozilla.com/D8569
This commit is contained in:
Sylvestre Ledru
2018-10-12 20:48:24 +00:00
parent f71087c330
commit cec75ca74a
55 changed files with 227 additions and 10 deletions

View File

@@ -71,6 +71,7 @@ NS_DEFINE_NAMED_CID(NS_MACATTRIBUTIONSERVICE_CID);
#endif
static const mozilla::Module::CIDEntry kBrowserCIDs[] = {
// clang-format off
{ &kNS_BROWSERDIRECTORYPROVIDER_CID, false, nullptr, DirectoryProviderConstructor },
#if defined(XP_WIN)
{ &kNS_SHELLSERVICE_CID, false, nullptr, nsWindowsShellServiceConstructor },
@@ -88,9 +89,11 @@ static const mozilla::Module::CIDEntry kBrowserCIDs[] = {
{ &kNS_MACATTRIBUTIONSERVICE_CID, false, nullptr, nsMacAttributionServiceConstructor },
#endif
{ nullptr }
// clang-format on
};
static const mozilla::Module::ContractIDEntry kBrowserContracts[] = {
// clang-format off
{ NS_BROWSERDIRECTORYPROVIDER_CONTRACTID, &kNS_BROWSERDIRECTORYPROVIDER_CID },
#if defined(XP_WIN)
{ NS_SHELLSERVICE_CONTRACTID, &kNS_SHELLSERVICE_CID },
@@ -126,6 +129,7 @@ static const mozilla::Module::ContractIDEntry kBrowserContracts[] = {
{ NS_MACATTRIBUTIONSERVICE_CONTRACTID, &kNS_MACATTRIBUTIONSERVICE_CID },
#endif
{ nullptr }
// clang-format on
};
static const mozilla::Module::CategoryEntry kBrowserCategories[] = {