summaryrefslogtreecommitdiffstats
path: root/Source/cmBreakCommand.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-07-25 14:40:33 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:18 (GMT)
commite6a27adf9f1a17f13c5af888f778fde4cddebfac (patch)
tree4c75c4a85e1c1d59d9dfc472e38371e7357b42e2 /Source/cmBreakCommand.h
parent43fe736b2bf272647fb24b481bdc9a585c0666ac (diff)
downloadCMake-e6a27adf9f1a17f13c5af888f778fde4cddebfac.zip
CMake-e6a27adf9f1a17f13c5af888f778fde4cddebfac.tar.gz
CMake-e6a27adf9f1a17f13c5af888f778fde4cddebfac.tar.bz2
cmCommand refactor: cmBreakCommand
Diffstat (limited to 'Source/cmBreakCommand.h')
-rw-r--r--Source/cmBreakCommand.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmBreakCommand.h b/Source/cmBreakCommand.h
index e6f218e..e6ce6fe 100644
--- a/Source/cmBreakCommand.h
+++ b/Source/cmBreakCommand.h
@@ -8,34 +8,14 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-/** \class cmBreakCommand
+/**
* \brief Break from an enclosing foreach or while loop
*
* cmBreakCommand returns from an enclosing foreach or while loop
*/
-class cmBreakCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmBreakCommand>();
- }
-
- /**
- * This is called when the command is first encountered in
- * the CMakeLists.txt file.
- */
- bool InitialPass(std::vector<std::string> const& args,
- cmExecutionStatus& status) override;
-};
+bool cmBreakCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif