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

Unified Diff: runtime/vm/bit_set.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/bigint_test.cc ('k') | runtime/vm/bit_set_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bit_set.h
diff --git a/runtime/vm/bit_set.h b/runtime/vm/bit_set.h
index 2735a72ec2a250dd157cf51f90e0943d2211b1b5..4e716c1184d9f35940d9d0ff79c37db0a625210c 100644
--- a/runtime/vm/bit_set.h
+++ b/runtime/vm/bit_set.h
@@ -12,12 +12,10 @@ namespace dart {
// Just like its namesake in the STL, a BitSet object contains a fixed
// length sequence of bits.
-template<intptr_t N>
+template <intptr_t N>
class BitSet {
public:
- BitSet() {
- Reset();
- }
+ BitSet() { Reset(); }
void Set(intptr_t i, bool value) {
ASSERT(i >= 0);
@@ -85,13 +83,9 @@ class BitSet {
}
}
- void Reset() {
- memset(data_, 0, sizeof(data_));
- }
+ void Reset() { memset(data_, 0, sizeof(data_)); }
- intptr_t Size() const {
- return N;
- }
+ intptr_t Size() const { return N; }
private:
static const int kLengthInWords = 1 + ((N - 1) / kBitsPerWord);
« no previous file with comments | « runtime/vm/bigint_test.cc ('k') | runtime/vm/bit_set_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698