Update clang-format rules

Summary: Spent a couple hours customizing the clang-format rules to better match the desired code style.

Reviewed By: IanChilds

Differential Revision: D3714510

fbshipit-source-id: f6d0436346416aab023aacbedd70ea189e583e8d
This commit is contained in:
Emil Sjolander
2016-08-15 09:15:02 -07:00
committed by Facebook Github Bot 6
parent 6a44dbc43b
commit 7a1e353404
10 changed files with 602 additions and 460 deletions

View File

@@ -28,11 +28,13 @@ CSSNodeListRef CSSNodeListNew(uint32_t initialCapacity) {
}
void CSSNodeListFree(CSSNodeListRef list) {
free(list->items);
free(list);
free(list->items);
free(list);
}
uint32_t CSSNodeListCount(CSSNodeListRef list) { return list->count; }
uint32_t CSSNodeListCount(CSSNodeListRef list) {
return list->count;
}
void CSSNodeListAdd(CSSNodeListRef list, CSSNodeRef node) {
CSSNodeListInsert(list, node, list->count);
@@ -76,4 +78,6 @@ CSSNodeRef CSSNodeListDelete(CSSNodeListRef list, CSSNodeRef node) {
return NULL;
}
CSSNodeRef CSSNodeListGet(CSSNodeListRef list, uint32_t index) { return list->items[index]; }
CSSNodeRef CSSNodeListGet(CSSNodeListRef list, uint32_t index) {
return list->items[index];
}