diff options
author | Peter Bell <peterbell10@live.co.uk> | 2021-08-25 19:53:28 (GMT) |
---|---|---|
committer | Peter Bell <peterbell10@live.co.uk> | 2021-08-25 22:44:25 (GMT) |
commit | c5d355cbb766a6bbce517dbd914dc671cea526b3 (patch) | |
tree | 58144afb07ee4ccba141c8897c1c866c710c432b /src/build.h | |
parent | 2fcf403ac54d77d7dc8d582c28aa86a911428da4 (diff) | |
download | Ninja-c5d355cbb766a6bbce517dbd914dc671cea526b3.zip Ninja-c5d355cbb766a6bbce517dbd914dc671cea526b3.tar.gz Ninja-c5d355cbb766a6bbce517dbd914dc671cea526b3.tar.bz2 |
clang-format diff
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/build.h b/src/build.h index ec6deea..410c2db 100644 --- a/src/build.h +++ b/src/build.h @@ -47,8 +47,7 @@ class EdgeQueue { // Set to ensure no duplicate entries in ready_ EdgeSet set_; -public: - + public: void push(Edge* edge) { if (set_.insert(edge).second) { queue_.push(edge); @@ -76,16 +75,11 @@ public: } } - size_t size() const { - return queue_.size(); - } + size_t size() const { return queue_.size(); } - bool empty() const { - return queue_.empty(); - } + bool empty() const { return queue_.empty(); } }; - /// Plan stores the state of a build plan: what we intend to build, /// which steps we're ready to execute. struct Plan { |