Skip to content

Commit 9cf8286

Browse files
committed
fixed clang-format again
1 parent 44c6db2 commit 9cf8286

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

tasks/orehov_n_character_frequency/mpi/src/ops_mpi.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
#include <mpi.h>
44

5+
#include <algorithm>
56
#include <string>
67
#include <tuple>
7-
#include <algorithm>
88

99
#include "orehov_n_character_frequency/common/include/common.hpp"
1010

@@ -42,8 +42,10 @@ bool OrehovNCharacterFrequencyMPI::RunImpl() {
4242

4343
int local_result = 0;
4444

45-
for (int i = start; i < end; i++){
46-
if (str[i] == symbol[0]) local_result++;
45+
for (int i = start; i < end; i++) {
46+
if (str[i] == symbol[0]) {
47+
local_result++;
48+
}
4749
}
4850

4951
int global_result = 0;

tasks/orehov_n_character_frequency/seq/src/ops_seq.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#include "orehov_n_character_frequency/seq/include/ops_seq.hpp"
22

3-
#include "orehov_n_character_frequency/common/include/common.hpp"
4-
5-
#include <string>
63
#include <cstddef>
4+
#include <string>
5+
6+
#include "orehov_n_character_frequency/common/include/common.hpp"
77

88
namespace orehov_n_character_frequency {
99

tasks/orehov_n_character_frequency/tests/performance/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#include <gtest/gtest.h>
22

3+
#include <cstddef>
4+
#include <fstream>
5+
#include <string>
6+
#include <tuple>
7+
38
#include "orehov_n_character_frequency/common/include/common.hpp"
49
#include "orehov_n_character_frequency/mpi/include/ops_mpi.hpp"
510
#include "orehov_n_character_frequency/seq/include/ops_seq.hpp"
611
#include "util/include/perf_test_util.hpp"
712

8-
#include <string>
9-
#include <fstream>
10-
#include <tuple>
11-
#include <cstddef>
12-
1313
namespace orehov_n_character_frequency {
1414

1515
class OrehovNCharacterFrequencyPerfTests : public ppc::util::BaseRunPerfTests<InType, OutType> {

0 commit comments

Comments
 (0)