Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ Checks: >
-misc-no-recursion,
-misc-non-private-member-variables-in-classes,
-misc-unused-parameters,
-misc-use-anonymous-namespace,
-modernize-avoid-c-arrays,
-modernize-loop-convert,
-modernize-use-nodiscard,
Expand Down
4 changes: 3 additions & 1 deletion 1stsamples/stl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#include <thread>
#include <vector>

static void Task(const std::string& msg) { std::cout << "thread number: " + msg << '\n'; }
namespace {
void Task(const std::string& msg) { std::cout << "thread number: " + msg << '\n'; }
} // namespace

int main() {
const auto num_max_threads = std::thread::hardware_concurrency();
Expand Down
4 changes: 3 additions & 1 deletion 1stsamples/tbb/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

#include <iostream>

static int FibFunc(int n) {
namespace {
int FibFunc(int n) {
if (n < 2) {
return n;
}
Expand All @@ -14,5 +15,6 @@ static int FibFunc(int n) {
g.wait();
return x + y;
}
} // namespace

int main() { return FibFunc(10) - 55; }
6 changes: 4 additions & 2 deletions tasks/stl/example/src/ops_stl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ bool nesterov_a_test_task_stl::TestSTLTaskSequential::post_processing_impl() {
return true;
}

static std::mutex my_mutex;
namespace {
std::mutex my_mutex;

static void AtomOps(std::vector<int> vec, const std::string &ops, std::promise<int> &&pr) {
void AtomOps(std::vector<int> vec, const std::string &ops, std::promise<int> &&pr) {
auto sz = vec.size();
int reduction_elem = 0;
if (ops == "+") {
Expand All @@ -57,6 +58,7 @@ static void AtomOps(std::vector<int> vec, const std::string &ops, std::promise<i
}
pr.set_value(reduction_elem);
}
} // namespace

bool nesterov_a_test_task_stl::TestSTLTaskParallel::pre_processing_impl() {
// Init vectors
Expand Down
Loading