1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include <cmConfigure.h> // IWYU pragma: keep
11 /** \class cmExecutionStatus
12 * \brief Superclass for all command status classes
14 * when a command is involked it may set values on a command status instance
16 class cmExecutionStatus
19 cmExecutionStatus(cmMakefile& makefile)
21 , Error("unknown error.")
25 cmMakefile& GetMakefile() { return this->Makefile; }
27 void SetError(std::string const& e) { this->Error = e; }
28 std::string const& GetError() const { return this->Error; }
30 void SetReturnInvoked() { this->ReturnInvoked = true; }
31 bool GetReturnInvoked() const { return this->ReturnInvoked; }
33 void SetBreakInvoked() { this->BreakInvoked = true; }
34 bool GetBreakInvoked() const { return this->BreakInvoked; }
36 void SetContinueInvoked() { this->ContinueInvoked = true; }
37 bool GetContinueInvoked() const { return this->ContinueInvoked; }
39 void SetNestedError() { this->NestedError = true; }
40 bool GetNestedError() const { return this->NestedError; }
45 bool ReturnInvoked = false;
46 bool BreakInvoked = false;
47 bool ContinueInvoked = false;
48 bool NestedError = false;