diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-07-25 17:07:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:19 (GMT) |
commit | 9bbe95a0e71e6658a37fe9e755577c80ffa2da9c (patch) | |
tree | 543b82d34066fe72ff216255c5c55d02390685c4 /Source/cmFunctionCommand.h | |
parent | cce3600e3f789f6f2984d61c925170f92b35ee7d (diff) | |
download | CMake-9bbe95a0e71e6658a37fe9e755577c80ffa2da9c.zip CMake-9bbe95a0e71e6658a37fe9e755577c80ffa2da9c.tar.gz CMake-9bbe95a0e71e6658a37fe9e755577c80ffa2da9c.tar.bz2 |
cmCommand refactor: cmFunctionCommand
Diffstat (limited to 'Source/cmFunctionCommand.h')
-rw-r--r-- | Source/cmFunctionCommand.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/Source/cmFunctionCommand.h b/Source/cmFunctionCommand.h index b334525..d6b549c 100644 --- a/Source/cmFunctionCommand.h +++ b/Source/cmFunctionCommand.h @@ -8,30 +8,10 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; /// Starts function() ... endfunction() block -class cmFunctionCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmFunctionCommand>(); - } - - /** - * 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 cmFunctionCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |