summaryrefslogtreecommitdiff
path: root/test/buildtool/graph_traverser/graph_traverser.test.hpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-03-23 18:47:42 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-03-23 20:07:51 +0100
commit7a05bb5cfbf3560b828c226f4a3bad8c3826b039 (patch)
treeed77169173b89492869c787533f27d0bfb95480f /test/buildtool/graph_traverser/graph_traverser.test.hpp
parent45cba2778426601bdffbcfe6aa7310aee76a6e54 (diff)
downloadjustbuild-7a05bb5cfbf3560b828c226f4a3bad8c3826b039.tar.gz
Apply changes suggested by clang-tidy 11
Diffstat (limited to 'test/buildtool/graph_traverser/graph_traverser.test.hpp')
-rw-r--r--test/buildtool/graph_traverser/graph_traverser.test.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/buildtool/graph_traverser/graph_traverser.test.hpp b/test/buildtool/graph_traverser/graph_traverser.test.hpp
index 54211f44..634c37e1 100644
--- a/test/buildtool/graph_traverser/graph_traverser.test.hpp
+++ b/test/buildtool/graph_traverser/graph_traverser.test.hpp
@@ -79,7 +79,6 @@ class TestProject {
"_entry_points";
std::string example_name_{};
std::filesystem::path root_dir_{};
- static inline int id_{};
bool run_local_{};
void SetupConfig() {
@@ -90,6 +89,7 @@ class TestProject {
auto GenerateFromEntryPoints(nlohmann::json const& entry_points)
-> CommandLineArguments {
+ static int id{};
GraphTraverser::CommandLineArguments gtargs{0, {}, {}, {}, {}};
@@ -98,7 +98,7 @@ class TestProject {
clargs.graph_description = root_dir_ / "graph_description";
clargs.gtargs.jobs = std::max(1U, std::thread::hardware_concurrency());
clargs.gtargs.stage = StageArguments{
- kOutputDirPrefix / (example_name_ + std::to_string(id_++))};
+ kOutputDirPrefix / (example_name_ + std::to_string(id++))};
if (not run_local_) {
clargs.gtargs.endpoint.remote_execution_address =
ReadRemoteAddressFromEnv();