chore(runtime/cpp): fix style

This commit is contained in:
Leonardo de Moura 2015-09-09 19:39:22 -07:00
parent e36fde4d45
commit 84a80b343a
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ public:
m_free_list[n] = *(reinterpret_cast<void **>(r));
return r;
} else {
return malloc(sizeof(obj) + sizeof(void*)*n);
return malloc(sizeof(obj) + sizeof(void*)*n); // NOLINT
}
}

View file

@ -74,7 +74,7 @@ class obj {
obj apply() const;
obj_cell * steal_ptr() { obj_cell * r = m_data; m_data = LEAN_BOX(0); return r; }
public:
obj():m_data(LEAN_BOX(0)) { static_assert(sizeof(obj) == sizeof(void *), "unexpected class obj size"); }
obj():m_data(LEAN_BOX(0)) { static_assert(sizeof(obj) == sizeof(void *), "unexpected class obj size"); } // NOLINT
obj(unsigned cidx):m_data(LEAN_BOX(cidx)) {}
obj(obj_cell * c):m_data(c) { m_data->inc_ref(); }
obj(obj const & o):m_data(o.m_data) { if (LEAN_IS_PTR(m_data)) m_data->inc_ref(); }