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

Unified Diff: runtime/vm/allocation.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/platform/globals.h ('k') | runtime/vm/allocation_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/allocation.h
diff --git a/runtime/vm/allocation.h b/runtime/vm/allocation.h
index 448176d4d1e525b854e40eec4543b4a6767836f5..16c70752c9785e28c3e39df232bbe4c27ec3985c 100644
--- a/runtime/vm/allocation.h
+++ b/runtime/vm/allocation.h
@@ -21,8 +21,8 @@ class Thread;
// program control flow.
class ValueObject {
public:
- ValueObject() { }
- ~ValueObject() { }
+ ValueObject() {}
+ ~ValueObject() {}
private:
DISALLOW_ALLOCATION();
@@ -79,7 +79,7 @@ class AllStatic {
// goes out of scope to reclaim memory.
class ZoneAllocated {
public:
- ZoneAllocated() { }
+ ZoneAllocated() {}
// Implicitly allocate the object in the current zone.
void* operator new(uword size);
@@ -102,7 +102,6 @@ class ZoneAllocated {
};
-
// Within a NoSafepointScope, the thread must not reach any safepoint. Used
// around code that manipulates raw object pointers directly without handles.
#if defined(DEBUG)
@@ -110,13 +109,15 @@ class NoSafepointScope : public StackResource {
public:
NoSafepointScope();
~NoSafepointScope();
+
private:
DISALLOW_COPY_AND_ASSIGN(NoSafepointScope);
};
-#else // defined(DEBUG)
+#else // defined(DEBUG)
class NoSafepointScope : public ValueObject {
public:
NoSafepointScope() {}
+
private:
DISALLOW_COPY_AND_ASSIGN(NoSafepointScope);
};
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/vm/allocation_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698