diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-03-23 18:47:42 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-03-23 20:07:51 +0100 |
commit | 7a05bb5cfbf3560b828c226f4a3bad8c3826b039 (patch) | |
tree | ed77169173b89492869c787533f27d0bfb95480f /test/buildtool/graph_traverser/graph_traverser.test.hpp | |
parent | 45cba2778426601bdffbcfe6aa7310aee76a6e54 (diff) | |
download | justbuild-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.hpp | 4 |
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(); |