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

@@ -116,6 +116,7 @@ NS_DEFINE_NAMED_CID(NS_SHENTRY_CID);
NS_DEFINE_NAMED_CID(NS_CONTENTHANDLERSERVICE_CID);
const mozilla::Module::CIDEntry kDocShellCIDs[] = {
// clang-format off
{ &kNS_DOCSHELL_CID, false, nullptr, nsDocShellConstructor },
{ &kNS_DEFAULTURIFIXUP_CID, false, nullptr, nsDefaultURIFixupConstructor },
{ &kNS_WEBNAVIGATION_INFO_CID, false, nullptr, nsWebNavigationInfoConstructor },
@@ -138,9 +139,11 @@ const mozilla::Module::CIDEntry kDocShellCIDs[] = {
#endif
{ &kNS_SHENTRY_CID, false, nullptr, nsSHEntryConstructor },
{ nullptr }
// clang-format on
};
const mozilla::Module::ContractIDEntry kDocShellContracts[] = {
// clang-format off
{ "@mozilla.org/docshell;1", &kNS_DOCSHELL_CID },
{ NS_URIFIXUP_CONTRACTID, &kNS_DEFAULTURIFIXUP_CID },
{ NS_WEBNAVIGATION_INFO_CONTRACTID, &kNS_WEBNAVIGATION_INFO_CID },
@@ -192,6 +195,7 @@ const mozilla::Module::ContractIDEntry kDocShellContracts[] = {
{ NS_SHENTRY_CONTRACTID, &kNS_SHENTRY_CID },
{ NS_OSPERMISSIONREQUEST_CONTRACTID, &kNS_OSPERMISSIONREQUEST_CID, mozilla::Module::MAIN_PROCESS_ONLY },
{ nullptr }
// clang-format on
};
static const mozilla::Module kDocShellModule = {