Skip to content

Commit 5f81ec6

Browse files
LessUpCopilot
andauthored
fix: normalize repository formatting for CI (#5)
- apply clang-format normalization to files failing ./scripts/format.sh --check\n- eliminate current CI formatting job failures on master Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 07c0b73 commit 5f81ec6

9 files changed

Lines changed: 10 additions & 20 deletions

File tree

examples/04-simd-vectorization/bench/simd_bench.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
#include <benchmark/benchmark.h>
1212

1313
#include <cmath>
14+
#include <hpc/simd.hpp>
1415
#include <random>
1516
#include <vector>
1617

17-
#include <hpc/simd.hpp>
18-
1918
namespace {
2019

2120
// Initialize arrays with random data

examples/04-simd-vectorization/src/auto_vectorize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
*/
1212

1313
#include <cmath>
14+
#include <hpc/simd.hpp>
1415
#include <iostream>
1516
#include <numeric>
1617
#include <vector>
1718

18-
#include <hpc/simd.hpp>
19-
2019
namespace hpc::simd {
2120

2221
// ============================================================================

examples/04-simd-vectorization/src/dispatch_example_main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#include <iostream>
2-
31
#include <hpc/simd.hpp>
2+
#include <iostream>
43

54
int main() {
65
constexpr size_t kSize = 8;

examples/04-simd-vectorization/src/intrinsics_intro.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010

1111
#include <chrono>
1212
#include <cmath>
13-
#include <iostream>
14-
1513
#include <hpc/simd.hpp>
14+
#include <iostream>
1615

1716
// Include SIMD headers based on availability
1817
#ifdef HPC_HAS_SSE2

examples/05-concurrency/include/lock_free_queue.hpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,14 @@ class MPMCQueue {
166166
* @param value Element to push
167167
* @return true if successful, false if queue is full
168168
*/
169-
bool push(const T& value) {
170-
return push_impl(value);
171-
}
169+
bool push(const T& value) { return push_impl(value); }
172170

173171
/**
174172
* @brief Push an element with move semantics (thread-safe)
175173
* @param value Element to push
176174
* @return true if successful, false if queue is full
177175
*/
178-
bool push(T&& value) {
179-
return push_impl(std::move(value));
180-
}
176+
bool push(T&& value) { return push_impl(std::move(value)); }
181177

182178
/**
183179
* @brief Pop an element from the queue (thread-safe)

tests/property/simd_properties.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@
1515
#include <algorithm>
1616
#include <chrono>
1717
#include <cmath>
18+
#include <hpc/simd.hpp>
1819
#include <iostream>
1920
#include <numeric>
2021
#include <random>
2122
#include <vector>
2223

23-
#include <hpc/simd.hpp>
24-
2524
namespace {
2625

2726
constexpr float TOLERANCE = 1e-5f;

tests/unit/modern_cpp/modern_cpp_header_only_smoke_extra.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ int modern_cpp_header_only_helper() {
77
std::vector<int> input{1, 2, 3};
88
std::vector<int> output;
99
hpc::ranges::transform_algorithm(input, output);
10-
return static_cast<int>(hpc::compile_time::factorial_runtime(3) + hpc::ranges::sum_raw_loop(output));
10+
return static_cast<int>(hpc::compile_time::factorial_runtime(3) +
11+
hpc::ranges::sum_raw_loop(output));
1112
}

tests/unit/simd/hpc_simd_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include <algorithm>
44
#include <cmath>
5-
65
#include <hpc/simd.hpp>
76

87
namespace hpc::simd::test {

tests/unit/simd/simd_utils_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
* @brief Unit tests for simd_utils.hpp and simd_wrapper.hpp
44
*/
55

6-
#include <hpc/simd.hpp>
7-
86
#include <gtest/gtest.h>
97

108
#include <cmath>
9+
#include <hpc/simd.hpp>
1110
#include <numeric>
1211

1312
namespace hpc::simd::test {

0 commit comments

Comments
 (0)