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

@@ -1301,6 +1301,7 @@ nsOfflineCacheDevice::InitWithSqlite(mozIStorageService * ss)
// create all (most) of our statements up front
StatementSql prepared[] = {
// clang-format off
StatementSql ( mStatement_CacheSize, "SELECT Sum(DataSize) from moz_cache;" ),
StatementSql ( mStatement_ApplicationCacheSize, "SELECT Sum(DataSize) from moz_cache WHERE ClientID = ?;" ),
StatementSql ( mStatement_EntryCount, "SELECT count(*) from moz_cache;" ),
@@ -1335,6 +1336,7 @@ nsOfflineCacheDevice::InitWithSqlite(mozIStorageService * ss)
StatementSql ( mStatement_EnumerateApps, "SELECT GroupID, ActiveClientID FROM moz_cache_groups WHERE GroupID LIKE ?1;"),
StatementSql ( mStatement_EnumerateGroups, "SELECT GroupID, ActiveClientID FROM moz_cache_groups;"),
StatementSql ( mStatement_EnumerateGroupsTimeOrder, "SELECT GroupID, ActiveClientID FROM moz_cache_groups ORDER BY ActivateTimeStamp;")
// clang-format on
};
for (uint32_t i = 0; NS_SUCCEEDED(rv) && i < ArrayLength(prepared); ++i)
{