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

Unified Diff: runtime/vm/ring_buffer.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/reusable_handles.h ('k') | runtime/vm/runtime_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ring_buffer.h
diff --git a/runtime/vm/ring_buffer.h b/runtime/vm/ring_buffer.h
index 77f6314c8916815de4617868e5025e288d1d0f43..a8079b5c0d32b9a80a79d7dfe6ccf9e1cb9f44f7 100644
--- a/runtime/vm/ring_buffer.h
+++ b/runtime/vm/ring_buffer.h
@@ -11,14 +11,12 @@
namespace dart {
// Fixed-capacity ring buffer.
-template<typename T, int N>
+template <typename T, int N>
class RingBuffer {
public:
- RingBuffer() : count_(0) { }
+ RingBuffer() : count_(0) {}
- void Add(const T& t) {
- data_[count_++ & kMask] = t;
- }
+ void Add(const T& t) { data_[count_++ & kMask] = t; }
// Returns the i'th most recently added element. Requires 0 <= i < Size().
const T& Get(int i) const {
« no previous file with comments | « runtime/vm/reusable_handles.h ('k') | runtime/vm/runtime_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698