Skip to content

Commit e401fce

Browse files
committed
Update clang-format version on github workflow
1 parent 83edd09 commit e401fce

120 files changed

Lines changed: 546 additions & 546 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.

.github/workflows/clang-format-lint.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ jobs:
1717
uses: actions/checkout@master
1818

1919
- name: Check Sources
20-
uses: DoozyX/clang-format-lint-action@v0.11
20+
uses: DoozyX/clang-format-lint-action@v0.14
2121
with:
2222
source: './src'
2323
extensions: 'h,cpp,hpp'
24-
clangFormatVersion: 11
24+
clangFormatVersion: 14
2525

2626
- name: Check Tests
27-
uses: DoozyX/clang-format-lint-action@v0.11
27+
uses: DoozyX/clang-format-lint-action@v0.14
2828
with:
2929
source: './test'
3030
extensions: 'h,cpp,hpp'
31-
clangFormatVersion: 11
31+
clangFormatVersion: 14
3232

3333
- name: Check Examples
34-
uses: DoozyX/clang-format-lint-action@v0.11
34+
uses: DoozyX/clang-format-lint-action@v0.14
3535
with:
3636
source: './examples'
3737
extensions: 'h,cpp,hpp'
38-
clangFormatVersion: 11
38+
clangFormatVersion: 14

examples/getting_started/convolve.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static array img;
2020

2121
// 5x5 derivative with separable kernels
2222
static float h_dx[] = {1.f / 12, -8.f / 12, 0, 8.f / 12,
23-
-1.f / 12}; // five point stencil
23+
-1.f / 12}; // five point stencil
2424
static float h_spread[] = {1.f / 5, 1.f / 5, 1.f / 5, 1.f / 5, 1.f / 5};
2525
static array dx, spread, kernel; // device kernels
2626

examples/image_processing/morphing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ array border(const array& img, const int left, const int right, const int top,
4545
array ret = constant(value, imgDims);
4646
ret(seq(top, imgDims[0] - bottom), seq(left, imgDims[1] - right), span,
4747
span) = img(seq(top, imgDims[0] - bottom),
48-
seq(left, imgDims[1] - right), span, span);
48+
seq(left, imgDims[1] - right), span, span);
4949

5050
return ret;
5151
}

examples/pde/swe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void swe(bool console) {
5454
if (iter > 2000) {
5555
// Initial condition
5656
etam = 0.01f * exp((-((x - io) * (x - io) + (y - jo) * (y - jo))) /
57-
(k * k));
57+
(k * k));
5858
m_eta = max<float>(etam);
5959
eta = etam;
6060
iter = 0;

src/api/c/pinverse.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Array<T> pinverseSvd(const Array<T> &in, const double tol) {
9292
Array<Tr> sVecSlice = getSubArray(
9393
sVec, false, 0, sVec.dims()[0] - 1, 0, 0, i, i, j, j);
9494
Array<T> uSlice = getSubArray(u, false, 0, u.dims()[0] - 1, 0,
95-
u.dims()[1] - 1, i, i, j, j);
95+
u.dims()[1] - 1, i, i, j, j);
9696
Array<T> vTSlice = getSubArray(vT, false, 0, vT.dims()[0] - 1, 0,
9797
vT.dims()[1] - 1, i, i, j, j);
9898
svd<T, Tr>(sVecSlice, uSlice, vTSlice, inSlice);
@@ -131,7 +131,7 @@ Array<T> pinverseSvd(const Array<T> &in, const double tol) {
131131
dim4(sVecRecip.dims()[0], (sVecRecip.dims()[2] * sVecRecip.dims()[3])));
132132
Array<T> sPinv = diagCreate<T>(sVecRecipMod, 0);
133133
sPinv = modDims<T>(sPinv, dim4(sPinv.dims()[0], sPinv.dims()[1],
134-
sVecRecip.dims()[2], sVecRecip.dims()[3]));
134+
sVecRecip.dims()[2], sVecRecip.dims()[3]));
135135

136136
Array<T> uT = transpose(u, true);
137137

src/api/c/ycbcr_rgb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static af_array convert(const af_array& in, const af_ycc_std standard) {
6969
static const float INV_219 = 0.004566210;
7070
static const float INV_112 = 0.008928571;
7171
const static float k[6] = {0.1140f, 0.2990f, 0.0722f,
72-
0.2126f, 0.0593f, 0.2627f};
72+
0.2126f, 0.0593f, 0.2627f};
7373
unsigned stdIdx = 0; // Default standard is AF_YCC_601
7474
switch (standard) {
7575
case AF_YCC_709: stdIdx = 2; break;

src/api/cpp/array.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ struct array::array_proxy::array_proxy_impl {
166166
if (delete_on_destruction_) { delete parent_; }
167167
}
168168

169-
array_proxy_impl(const array_proxy_impl &) = delete;
170-
array_proxy_impl(const array_proxy_impl &&) = delete;
171-
array_proxy_impl operator=(const array_proxy_impl &) = delete;
169+
array_proxy_impl(const array_proxy_impl &) = delete;
170+
array_proxy_impl(const array_proxy_impl &&) = delete;
171+
array_proxy_impl operator=(const array_proxy_impl &) = delete;
172172
array_proxy_impl operator=(const array_proxy_impl &&) = delete;
173173
};
174174

src/api/unified/symbol_manager.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ bool checkArrays(af_backend activeBackend, T a, Args... arg) {
152152
if (index_ != unified::getActiveBackend()) { \
153153
index_ = unified::getActiveBackend(); \
154154
func = (af_func)common::getFunctionPointer( \
155-
unified::getActiveHandle(), __func__); \
155+
unified::getActiveHandle(), __func__); \
156156
} \
157157
return func(__VA_ARGS__); \
158158
} else { \

src/backend/common/DefaultMemoryManager.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ class DefaultMemoryManager final : public common::memory::MemoryManagerBase {
5757
, lock_bytes(0)
5858
, lock_buffers(0) {}
5959

60-
memory_info(memory_info &other) = delete;
61-
memory_info(memory_info &&other) = default;
62-
memory_info &operator=(memory_info &other) = delete;
60+
memory_info(memory_info &other) = delete;
61+
memory_info(memory_info &&other) = default;
62+
memory_info &operator=(memory_info &other) = delete;
6363
memory_info &operator=(memory_info &&other) = default;
6464
};
6565

src/backend/common/HandleBase.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class HandleBase {
2121
operator H() { return handle_; }
2222
H* get() { return &handle_; }
2323

24-
HandleBase(HandleBase const&) = delete;
24+
HandleBase(HandleBase const&) = delete;
2525
void operator=(HandleBase const&) = delete;
2626

27-
HandleBase(HandleBase&& h) = default;
27+
HandleBase(HandleBase&& h) = default;
2828
HandleBase& operator=(HandleBase&& h) = default;
2929
};
3030
} // namespace common

0 commit comments

Comments
 (0)