Skip to content

Commit

Permalink
Daily arc lint --take CLANGFORMAT
Browse files Browse the repository at this point in the history
Reviewed By: zertosh

Differential Revision: D24679750

fbshipit-source-id: 42d5a8aa40ec99be9a51a8e3eed54f2fc8e29e3a
  • Loading branch information
generatedunixname89002005325676 authored and facebook-github-bot committed Nov 2, 2020
1 parent 97d6f2e commit 0045621
Showing 1 changed file with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,16 @@ static inline void updateBufferSizes(
}
}

static inline void computeBufferSizes(int& batchMountItemIntsSize, int& batchMountItemObjectsSize,
std::vector<CppMountItem>& cppCommonMountItems,
std::vector<CppMountItem>& cppDeleteMountItems,
std::vector<CppMountItem>& cppUpdatePropsMountItems,
std::vector<CppMountItem>& cppUpdateStateMountItems,
std::vector<CppMountItem>& cppUpdatePaddingMountItems,
std::vector<CppMountItem>& cppUpdateLayoutMountItems,
std::vector<CppMountItem>& cppUpdateEventEmitterMountItems) {

static inline void computeBufferSizes(
int &batchMountItemIntsSize,
int &batchMountItemObjectsSize,
std::vector<CppMountItem> &cppCommonMountItems,
std::vector<CppMountItem> &cppDeleteMountItems,
std::vector<CppMountItem> &cppUpdatePropsMountItems,
std::vector<CppMountItem> &cppUpdateStateMountItems,
std::vector<CppMountItem> &cppUpdatePaddingMountItems,
std::vector<CppMountItem> &cppUpdateLayoutMountItems,
std::vector<CppMountItem> &cppUpdateEventEmitterMountItems) {
CppMountItem::Type lastType = CppMountItem::Type::Undefined;
int numSameType = 0;
for (const auto &mountItem : cppCommonMountItems) {
Expand Down Expand Up @@ -219,7 +220,6 @@ static inline void writeIntBufferTypePreamble(
}
}


jni::local_ref<Binding::jhybriddata> Binding::initHybrid(
jni::alias_ref<jclass>) {
return makeCxxInstance();
Expand Down Expand Up @@ -891,7 +891,10 @@ void Binding::schedulerDidFinishTransactionIntBuffer(
// to know exactly how much space must be allocated
int batchMountItemIntsSize = 0;
int batchMountItemObjectsSize = 0;
computeBufferSizes(batchMountItemIntsSize, batchMountItemObjectsSize, cppCommonMountItems,
computeBufferSizes(
batchMountItemIntsSize,
batchMountItemObjectsSize,
cppCommonMountItems,
cppDeleteMountItems,
cppUpdatePropsMountItems,
cppUpdateStateMountItems,
Expand Down

0 comments on commit 0045621

Please sign in to comment.