We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83edd09 commit e401fceCopy full SHA for e401fce
120 files changed
.github/workflows/clang-format-lint.yml
@@ -17,22 +17,22 @@ jobs:
17
uses: actions/checkout@master
18
19
- name: Check Sources
20
- uses: DoozyX/clang-format-lint-action@v0.11
+ uses: DoozyX/clang-format-lint-action@v0.14
21
with:
22
source: './src'
23
extensions: 'h,cpp,hpp'
24
- clangFormatVersion: 11
+ clangFormatVersion: 14
25
26
- name: Check Tests
27
28
29
source: './test'
30
31
32
33
- name: Check Examples
34
35
36
source: './examples'
37
38
examples/getting_started/convolve.cpp
@@ -20,7 +20,7 @@ static array img;
// 5x5 derivative with separable kernels
static float h_dx[] = {1.f / 12, -8.f / 12, 0, 8.f / 12,
- -1.f / 12}; // five point stencil
+ -1.f / 12}; // five point stencil
static float h_spread[] = {1.f / 5, 1.f / 5, 1.f / 5, 1.f / 5, 1.f / 5};
static array dx, spread, kernel; // device kernels
examples/image_processing/morphing.cpp
@@ -45,7 +45,7 @@ array border(const array& img, const int left, const int right, const int top,
45
array ret = constant(value, imgDims);
46
ret(seq(top, imgDims[0] - bottom), seq(left, imgDims[1] - right), span,
47
span) = img(seq(top, imgDims[0] - bottom),
48
- seq(left, imgDims[1] - right), span, span);
+ seq(left, imgDims[1] - right), span, span);
49
50
return ret;
51
}
examples/pde/swe.cpp
@@ -54,7 +54,7 @@ static void swe(bool console) {
54
if (iter > 2000) {
55
// Initial condition
56
etam = 0.01f * exp((-((x - io) * (x - io) + (y - jo) * (y - jo))) /
57
- (k * k));
+ (k * k));
58
m_eta = max<float>(etam);
59
eta = etam;
60
iter = 0;
src/api/c/pinverse.cpp
@@ -92,7 +92,7 @@ Array<T> pinverseSvd(const Array<T> &in, const double tol) {
92
Array<Tr> sVecSlice = getSubArray(
93
sVec, false, 0, sVec.dims()[0] - 1, 0, 0, i, i, j, j);
94
Array<T> uSlice = getSubArray(u, false, 0, u.dims()[0] - 1, 0,
95
- u.dims()[1] - 1, i, i, j, j);
+ u.dims()[1] - 1, i, i, j, j);
96
Array<T> vTSlice = getSubArray(vT, false, 0, vT.dims()[0] - 1, 0,
97
vT.dims()[1] - 1, i, i, j, j);
98
svd<T, Tr>(sVecSlice, uSlice, vTSlice, inSlice);
@@ -131,7 +131,7 @@ Array<T> pinverseSvd(const Array<T> &in, const double tol) {
131
dim4(sVecRecip.dims()[0], (sVecRecip.dims()[2] * sVecRecip.dims()[3])));
132
Array<T> sPinv = diagCreate<T>(sVecRecipMod, 0);
133
sPinv = modDims<T>(sPinv, dim4(sPinv.dims()[0], sPinv.dims()[1],
134
- sVecRecip.dims()[2], sVecRecip.dims()[3]));
+ sVecRecip.dims()[2], sVecRecip.dims()[3]));
135
136
Array<T> uT = transpose(u, true);
137
src/api/c/ycbcr_rgb.cpp
@@ -69,7 +69,7 @@ static af_array convert(const af_array& in, const af_ycc_std standard) {
69
static const float INV_219 = 0.004566210;
70
static const float INV_112 = 0.008928571;
71
const static float k[6] = {0.1140f, 0.2990f, 0.0722f,
72
- 0.2126f, 0.0593f, 0.2627f};
+ 0.2126f, 0.0593f, 0.2627f};
73
unsigned stdIdx = 0; // Default standard is AF_YCC_601
74
switch (standard) {
75
case AF_YCC_709: stdIdx = 2; break;
src/api/cpp/array.cpp
@@ -166,9 +166,9 @@ struct array::array_proxy::array_proxy_impl {
166
if (delete_on_destruction_) { delete parent_; }
167
168
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;
+ array_proxy_impl(const array_proxy_impl &) = delete;
+ array_proxy_impl(const array_proxy_impl &&) = delete;
+ array_proxy_impl operator=(const array_proxy_impl &) = delete;
172
array_proxy_impl operator=(const array_proxy_impl &&) = delete;
173
};
174
src/api/unified/symbol_manager.hpp
@@ -152,7 +152,7 @@ bool checkArrays(af_backend activeBackend, T a, Args... arg) {
152
if (index_ != unified::getActiveBackend()) { \
153
index_ = unified::getActiveBackend(); \
154
func = (af_func)common::getFunctionPointer( \
155
- unified::getActiveHandle(), __func__); \
+ unified::getActiveHandle(), __func__); \
156
} \
157
return func(__VA_ARGS__); \
158
} else { \
src/backend/common/DefaultMemoryManager.hpp
@@ -57,9 +57,9 @@ class DefaultMemoryManager final : public common::memory::MemoryManagerBase {
, lock_bytes(0)
, lock_buffers(0) {}
- memory_info(memory_info &other) = delete;
61
- memory_info(memory_info &&other) = default;
62
- memory_info &operator=(memory_info &other) = delete;
+ memory_info(memory_info &other) = delete;
+ memory_info(memory_info &&other) = default;
+ memory_info &operator=(memory_info &other) = delete;
63
memory_info &operator=(memory_info &&other) = default;
64
65
src/backend/common/HandleBase.hpp
@@ -21,10 +21,10 @@ class HandleBase {
operator H() { return handle_; }
H* get() { return &handle_; }
- HandleBase(HandleBase const&) = delete;
+ HandleBase(HandleBase const&) = delete;
void operator=(HandleBase const&) = delete;
- HandleBase(HandleBase&& h) = default;
+ HandleBase(HandleBase&& h) = default;
HandleBase& operator=(HandleBase&& h) = default;
} // namespace common
0 commit comments