summaryrefslogtreecommitdiffstats
path: root/Source/cmContinueCommand.h
diff options
context:
space:
mode:
authorGabor Bencze <b.gabor98@gmail.com>2019-07-25 14:52:50 (GMT)
committerBrad King <brad.king@kitware.com>2019-08-20 18:42:19 (GMT)
commit0005e17d504fd50ebaec3860f4f213765e815b13 (patch)
tree8e29587d7fddab24967f203d8fb00d78c4b4ccfb /Source/cmContinueCommand.h
parent01949a02df765cc4ad273b6163622f55d4f569ca (diff)
downloadCMake-0005e17d504fd50ebaec3860f4f213765e815b13.zip
CMake-0005e17d504fd50ebaec3860f4f213765e815b13.tar.gz
CMake-0005e17d504fd50ebaec3860f4f213765e815b13.tar.bz2
cmCommand refactor: cmContinueCommand
Diffstat (limited to 'Source/cmContinueCommand.h')
-rw-r--r--Source/cmContinueCommand.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/Source/cmContinueCommand.h b/Source/cmContinueCommand.h
index a85010a..ff903aa 100644
--- a/Source/cmContinueCommand.h
+++ b/Source/cmContinueCommand.h
@@ -8,34 +8,14 @@
#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
-
class cmExecutionStatus;
-/** \class cmContinueCommand
+/**
* \brief Continue from an enclosing foreach or while loop
*
* cmContinueCommand returns from an enclosing foreach or while loop
*/
-class cmContinueCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmContinueCommand>();
- }
-
- /**
- * 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 cmContinueCommand(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
#endif