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

Unified Diff: runtime/vm/visitor.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/virtual_memory_win.cc ('k') | runtime/vm/weak_code.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/visitor.h
diff --git a/runtime/vm/visitor.h b/runtime/vm/visitor.h
index 3c35b1083f69fa49045ab51a53ef0fdf1e2527cb..51f95edd4a14113fad85fb2195394e73c2e458ec 100644
--- a/runtime/vm/visitor.h
+++ b/runtime/vm/visitor.h
@@ -18,8 +18,8 @@ class RawObject;
// An object pointer visitor interface.
class ObjectPointerVisitor {
public:
- explicit ObjectPointerVisitor(Isolate* isolate) : isolate_(isolate) { }
- virtual ~ObjectPointerVisitor() { }
+ explicit ObjectPointerVisitor(Isolate* isolate) : isolate_(isolate) {}
+ virtual ~ObjectPointerVisitor() {}
Isolate* isolate() const { return isolate_; }
@@ -27,15 +27,13 @@ class ObjectPointerVisitor {
virtual void VisitPointers(RawObject** first, RawObject** last) = 0;
virtual bool visit_function_code() const { return true; }
- virtual void add_skipped_code_function(RawFunction* funct) {
- UNREACHABLE();
- }
+ virtual void add_skipped_code_function(RawFunction* funct) { UNREACHABLE(); }
// len argument is the number of pointers to visit starting from 'p'.
void VisitPointers(RawObject** p, intptr_t len) {
VisitPointers(p, (p + len - 1));
}
- void VisitPointer(RawObject** p) { VisitPointers(p , p); }
+ void VisitPointer(RawObject** p) { VisitPointers(p, p); }
private:
Isolate* isolate_;
@@ -48,9 +46,9 @@ class ObjectPointerVisitor {
// An object visitor interface.
class ObjectVisitor {
public:
- ObjectVisitor() { }
+ ObjectVisitor() {}
- virtual ~ObjectVisitor() { }
+ virtual ~ObjectVisitor() {}
// Invoked for each object.
virtual void VisitObject(RawObject* obj) = 0;
@@ -63,8 +61,8 @@ class ObjectVisitor {
// An object finder visitor interface.
class FindObjectVisitor {
public:
- FindObjectVisitor() { }
- virtual ~FindObjectVisitor() { }
+ FindObjectVisitor() {}
+ virtual ~FindObjectVisitor() {}
// Allow to specify a address filter.
virtual uword filter_addr() const { return 0; }
« no previous file with comments | « runtime/vm/virtual_memory_win.cc ('k') | runtime/vm/weak_code.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698