Skip to content

Commit 0f14f08

Browse files
committed
src: format cpp files
1 parent 4cd432b commit 0f14f08

150 files changed

Lines changed: 8981 additions & 10169 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/aliased_buffer.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,7 @@ class AliasedBufferBase : public MemoryRetainer {
7272
: aliased_buffer_(aliased_buffer), index_(index) {}
7373

7474
Reference(const Reference& that)
75-
: aliased_buffer_(that.aliased_buffer_),
76-
index_(that.index_) {
77-
}
75+
: aliased_buffer_(that.aliased_buffer_), index_(that.index_) {}
7876

7977
inline Reference& operator=(const NativeT& val) {
8078
aliased_buffer_->SetValue(index_, val);
@@ -85,9 +83,7 @@ class AliasedBufferBase : public MemoryRetainer {
8583
return *this = static_cast<NativeT>(val);
8684
}
8785

88-
operator NativeT() const {
89-
return aliased_buffer_->GetValue(index_);
90-
}
86+
operator NativeT() const { return aliased_buffer_->GetValue(index_); }
9187

9288
inline Reference& operator+=(const NativeT& val) {
9389
const NativeT current = aliased_buffer_->GetValue(index_);
@@ -126,9 +122,9 @@ class AliasedBufferBase : public MemoryRetainer {
126122
inline void MakeWeak();
127123

128124
/**
129-
* Get the underlying v8::ArrayBuffer underlying the TypedArray and
130-
* overlaying the native buffer
131-
*/
125+
* Get the underlying v8::ArrayBuffer underlying the TypedArray and
126+
* overlaying the native buffer
127+
*/
132128
v8::Local<v8::ArrayBuffer> GetArrayBuffer() const;
133129

134130
/**

src/aliased_struct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class AliasedStruct final {
4343

4444
const T& operator*() const { return *ptr_; }
4545

46-
T& operator*() { return *ptr_; }
46+
T& operator*() { return *ptr_; }
4747

4848
const T* operator->() const { return ptr_; }
4949

src/async_wrap-inl.h

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,32 +44,22 @@ inline double AsyncWrap::get_async_id() const {
4444
return async_id_;
4545
}
4646

47-
4847
inline double AsyncWrap::get_trigger_async_id() const {
4948
return trigger_async_id_;
5049
}
5150

52-
5351
inline v8::MaybeLocal<v8::Value> AsyncWrap::MakeCallback(
54-
const v8::Local<v8::String> symbol,
55-
int argc,
56-
v8::Local<v8::Value>* argv) {
52+
const v8::Local<v8::String> symbol, int argc, v8::Local<v8::Value>* argv) {
5753
return MakeCallback(symbol.As<v8::Name>(), argc, argv);
5854
}
5955

60-
6156
inline v8::MaybeLocal<v8::Value> AsyncWrap::MakeCallback(
62-
const v8::Local<v8::Symbol> symbol,
63-
int argc,
64-
v8::Local<v8::Value>* argv) {
57+
const v8::Local<v8::Symbol> symbol, int argc, v8::Local<v8::Value>* argv) {
6558
return MakeCallback(symbol.As<v8::Name>(), argc, argv);
6659
}
6760

68-
6961
inline v8::MaybeLocal<v8::Value> AsyncWrap::MakeCallback(
70-
const v8::Local<v8::Name> symbol,
71-
int argc,
72-
v8::Local<v8::Value>* argv) {
62+
const v8::Local<v8::Name> symbol, int argc, v8::Local<v8::Value>* argv) {
7363
v8::Local<v8::Value> cb_v;
7464
if (!object()->Get(env()->context(), symbol).ToLocal(&cb_v))
7565
return v8::MaybeLocal<v8::Value>();

0 commit comments

Comments
 (0)