diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-05 12:40:04 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-08-07 14:43:19 +0200 |
commit | ed6f31f4c9939d6cc8d4d317d561a94545750b0b (patch) | |
tree | 122e2a01c4a56b0fc25d94236d459101ffb80f65 /src/buildtool/execution_engine/dag/dag.cpp | |
parent | 4989605b096701fee6f1049bdad0827f81d9fb00 (diff) | |
download | justbuild-ed6f31f4c9939d6cc8d4d317d561a94545750b0b.tar.gz |
Replace classic C boolean operators with keywords
! => not; && => and, || => or
Diffstat (limited to 'src/buildtool/execution_engine/dag/dag.cpp')
-rw-r--r-- | src/buildtool/execution_engine/dag/dag.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buildtool/execution_engine/dag/dag.cpp b/src/buildtool/execution_engine/dag/dag.cpp index c36ec664..17f4b3af 100644 --- a/src/buildtool/execution_engine/dag/dag.cpp +++ b/src/buildtool/execution_engine/dag/dag.cpp @@ -80,21 +80,21 @@ auto DependencyGraph::LinkNodePointers( gsl::not_null<ActionNode*> const& action_node, std::vector<NamedArtifactNodePtr> const& input_nodes) noexcept -> bool { for (auto const& named_file : output_files) { - if (!named_file.node->AddBuilderActionNode(action_node) || - !action_node->AddOutputFile(named_file)) { + if (not named_file.node->AddBuilderActionNode(action_node) or + not action_node->AddOutputFile(named_file)) { return false; } } for (auto const& named_dir : output_dirs) { - if (!named_dir.node->AddBuilderActionNode(action_node) || - !action_node->AddOutputDir(named_dir)) { + if (not named_dir.node->AddBuilderActionNode(action_node) or + not action_node->AddOutputDir(named_dir)) { return false; } } for (auto const& named_node : input_nodes) { - if (!named_node.node->AddConsumerActionNode(action_node) || - !action_node->AddDependency(named_node)) { + if (not named_node.node->AddConsumerActionNode(action_node) or + not action_node->AddDependency(named_node)) { return false; } } |