diff options
author | Brad King <brad.king@kitware.com> | 2023-01-13 17:58:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-01-16 21:58:49 (GMT) |
commit | 189557bd74345590d3f5378c6e00cf1dad9778dc (patch) | |
tree | 0e86b494c65f1bc20280f3df93061c5290ec6648 /Source | |
parent | 96ce3581ab77371f8e794fe4d29da6989f66cdcc (diff) | |
download | CMake-189557bd74345590d3f5378c6e00cf1dad9778dc.zip CMake-189557bd74345590d3f5378c6e00cf1dad9778dc.tar.gz CMake-189557bd74345590d3f5378c6e00cf1dad9778dc.tar.bz2 |
cmake: Make entire in-progress check stack available internally
Represent it as a `vector` so we can iterate over the whole stack.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmake.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 10db87d..12160ad 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -9,7 +9,6 @@ #include <map> #include <memory> #include <set> -#include <stack> #include <string> #include <unordered_set> #include <utility> @@ -472,13 +471,13 @@ public: } std::string GetTopCheckInProgressMessage() { - auto message = this->CheckInProgressMessages.top(); - this->CheckInProgressMessages.pop(); + auto message = this->CheckInProgressMessages.back(); + this->CheckInProgressMessages.pop_back(); return message; } void PushCheckInProgressMessage(std::string message) { - this->CheckInProgressMessages.emplace(std::move(message)); + this->CheckInProgressMessages.emplace_back(std::move(message)); } //! Should `message` command display context. @@ -773,7 +772,7 @@ private: bool LogLevelWasSetViaCLI = false; bool LogContext = false; - std::stack<std::string> CheckInProgressMessages; + std::vector<std::string> CheckInProgressMessages; std::unique_ptr<cmGlobalGenerator> GlobalGenerator; |