diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-07-25 16:51:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:19 (GMT) |
commit | cce3600e3f789f6f2984d61c925170f92b35ee7d (patch) | |
tree | 69143f9d2f4e3e6940770bf1b41e5f966c54eb94 /Source/cmForEachCommand.h | |
parent | 3e5eb45ec1fd977b709da6e36966b0b13d185214 (diff) | |
download | CMake-cce3600e3f789f6f2984d61c925170f92b35ee7d.zip CMake-cce3600e3f789f6f2984d61c925170f92b35ee7d.tar.gz CMake-cce3600e3f789f6f2984d61c925170f92b35ee7d.tar.bz2 |
cmCommand refactor: cmForEachCommand
Diffstat (limited to 'Source/cmForEachCommand.h')
-rw-r--r-- | Source/cmForEachCommand.h | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/Source/cmForEachCommand.h b/Source/cmForEachCommand.h index 135abf0..1feb965 100644 --- a/Source/cmForEachCommand.h +++ b/Source/cmForEachCommand.h @@ -8,33 +8,9 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; /// Starts foreach() ... endforeach() block -class cmForEachCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmForEachCommand>(); - } - - /** - * 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; - -private: - bool HandleInMode(std::vector<std::string> const& args); -}; - +bool cmForEachCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |