Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(729)

Unified Diff: runtime/vm/zone.h

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/weak_table.cc ('k') | runtime/vm/zone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/zone.h
diff --git a/runtime/vm/zone.h b/runtime/vm/zone.h
index 6d216e9a8e415eaa675f6f6dbef03122b216051b..4e2e8a91e182a2f1cf8a012a687fc725ca816289 100644
--- a/runtime/vm/zone.h
+++ b/runtime/vm/zone.h
@@ -98,9 +98,7 @@ class Zone {
uword AllocateLargeSegment(intptr_t size);
// Insert zone into zone chain, after current_zone.
- void Link(Zone* current_zone) {
- previous_ = current_zone;
- }
+ void Link(Zone* current_zone) { previous_ = current_zone; }
// Delete all objects and free all memory allocated in the zone.
void DeleteAll();
@@ -156,9 +154,9 @@ class Zone {
friend class StackZone;
friend class ApiZone;
- template<typename T, typename B, typename Allocator>
+ template <typename T, typename B, typename Allocator>
friend class BaseGrowableArray;
- template<typename T, typename B, typename Allocator>
+ template <typename T, typename B, typename Allocator>
friend class BaseDirectChainedHashMap;
DISALLOW_COPY_AND_ASSIGN(Zone);
};
@@ -181,8 +179,10 @@ class StackZone : public StackResource {
private:
Zone zone_;
- template<typename T> friend class GrowableArray;
- template<typename T> friend class ZoneGrowableArray;
+ template <typename T>
+ friend class GrowableArray;
+ template <typename T>
+ friend class ZoneGrowableArray;
DISALLOW_IMPLICIT_CONSTRUCTORS(StackZone);
};
@@ -251,8 +251,7 @@ inline ElementType* Zone::Realloc(ElementType* old_data,
ElementType* new_data = Alloc<ElementType>(new_len);
if (old_data != 0) {
memmove(reinterpret_cast<void*>(new_data),
- reinterpret_cast<void*>(old_data),
- old_len * kElementSize);
+ reinterpret_cast<void*>(old_data), old_len * kElementSize);
}
return new_data;
}
« no previous file with comments | « runtime/vm/weak_table.cc ('k') | runtime/vm/zone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698