Skip to content

Commit 8b58b7e

Browse files
committed
all: clang-format: apply RemoveSemicolon=True
1 parent 3dfb3c3 commit 8b58b7e

File tree

166 files changed

+286
-291
lines changed

Some content is hidden

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

166 files changed

+286
-291
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ PenaltyReturnTypeOnItsOwnLine: 60
100100
PointerAlignment: Right
101101
ReferenceAlignment: Pointer
102102
ReflowComments: false
103+
RemoveSemicolon: true
103104
SortIncludes: true
104105
SortUsingDeclarations: true
105106
SpaceAfterCStyleCast: false

src/common/cache_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ struct lru_cache_t final : public cache_t<K, O, C, key_merge> {
166166
int get_capacity() const override {
167167
utils::lock_read_t lock_r(this->rw_mutex());
168168
return capacity_;
169-
};
169+
}
170170

171171
status_t set_capacity(int capacity) override {
172172
utils::lock_write_t lock_w(this->rw_mutex());

src/common/engine_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class engine_impl_t {
5656
}
5757

5858
#ifdef ONEDNN_BUILD_GRAPH
59-
void *get_allocator() const { return (void *)(&allocator_); };
59+
void *get_allocator() const { return (void *)(&allocator_); }
6060
void set_allocator(graph::allocator_t *alloc) { allocator_ = *alloc; }
6161
#endif
6262

src/common/gemm_types.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ struct gemm_desc_t : public op_desc_t {
8282
? transpose::trans
8383
: transpose::notrans;
8484
}
85-
transpose_t transa() const { return get_trans(b_desc); };
86-
transpose_t transb() const { return get_trans(a_desc); };
87-
transpose_t transc() const { return get_trans(c_desc); };
85+
transpose_t transa() const { return get_trans(b_desc); }
86+
transpose_t transb() const { return get_trans(a_desc); }
87+
transpose_t transc() const { return get_trans(c_desc); }
8888
transpose_t trans_bias() const { return get_trans(bias_desc); }
8989

9090
dnnl_dim_t batch() const {
@@ -112,11 +112,11 @@ struct gemm_desc_t : public op_desc_t {
112112
}
113113

114114
/** Stride between 2 matrices A in a batch. */
115-
dnnl_dim_t stride_a(int dim = 0) const { return get_stride(b_desc, dim); };
115+
dnnl_dim_t stride_a(int dim = 0) const { return get_stride(b_desc, dim); }
116116
/** Stride between 2 matrices B in a batch. */
117-
dnnl_dim_t stride_b(int dim = 0) const { return get_stride(a_desc, dim); };
117+
dnnl_dim_t stride_b(int dim = 0) const { return get_stride(a_desc, dim); }
118118
/** Stride between 2 matrices C in a batch. */
119-
dnnl_dim_t stride_c(int dim = 0) const { return get_stride(c_desc, dim); };
119+
dnnl_dim_t stride_c(int dim = 0) const { return get_stride(c_desc, dim); }
120120

121121
// This assumes that one of the dimensions has strides 1
122122
static dnnl_dim_t get_ld(const memory_desc_t &md) {

src/common/kernel_cache.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ struct key_t final {
5454

5555
bool operator==(const key_t &other) const {
5656
return impl_->compare(other.impl_.get());
57-
};
58-
size_t hash() const { return impl_->hash(); };
57+
}
58+
size_t hash() const { return impl_->hash(); }
5959

6060
key_impl_t *impl() const { return impl_.get(); }
6161

src/common/memory_storage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ memory_storage_t::memory_storage_t(
4343

4444
memory_storage_t::~memory_storage_t() {
4545
if (engine_) engine_->release();
46-
};
46+
}
4747

4848
} // namespace impl
4949
} // namespace dnnl

src/common/primitive_desc.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ struct primitive_desc_t : public c_compatible {
151151
.has_runtime_dims_or_strides()
152152
|| memory_desc_wrapper(invariant_dst_md())
153153
.has_runtime_dims_or_strides();
154-
};
154+
}
155155

156156
enum class arg_usage_t { unused, input, output };
157157
virtual arg_usage_t arg_usage(int arg) const {

src/common/utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ inline int get_dims_mask(const dims_t dims1, const dims_t dims2, int ndims,
619619
mask += dims1[d] == dims2[d] ? mask_bit : 0;
620620
}
621621
return mask;
622-
};
622+
}
623623

624624
// The function can be used to get dimensions for memory descriptors or
625625
// dimensions for logical offset. First ones are happy to have ones when mask

src/cpu/aarch64/cpu_isa_traits.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ inline int isa_max_vlen(cpu_isa_t isa) {
216216
return cpu_isa_traits<sve_128>::vlen;
217217
else
218218
return 0;
219-
};
219+
}
220220

221221
// SVE length in bytes
222222
inline uint64_t get_sve_length() {
@@ -246,7 +246,7 @@ inline int isa_num_vregs(cpu_isa_t isa) {
246246
return cpu_isa_traits<sve_128>::n_vregs;
247247
else
248248
return 0;
249-
};
249+
}
250250

251251
} // namespace
252252

src/cpu/aarch64/injectors/injector_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ size_t register_preserve_guard_t<isa>::stack_space_occupied() const {
123123
= vmm_to_preserve_size_bytes_ + reg64_stack_.size() * reg64_size;
124124

125125
return stack_space_occupied;
126-
};
126+
}
127127

128128
template <cpu_isa_t isa>
129129
conditional_register_preserve_guard_t<

0 commit comments

Comments
 (0)