diff options
author | Gabor Bencze <b.gabor98@gmail.com> | 2019-08-04 16:35:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-08-20 18:42:19 (GMT) |
commit | 71724633a24fccfdf3d56a19176d8afe637be843 (patch) | |
tree | 2d21e3a116cc34aee647054ad8543568c7cbc2e1 /Source/cmMathCommand.h | |
parent | 2b58ae75773ff826bb1c3e6c5a3bad31c5292f00 (diff) | |
download | CMake-71724633a24fccfdf3d56a19176d8afe637be843.zip CMake-71724633a24fccfdf3d56a19176d8afe637be843.tar.gz CMake-71724633a24fccfdf3d56a19176d8afe637be843.tar.bz2 |
cmCommand refactor: cmMathCommand
Diffstat (limited to 'Source/cmMathCommand.h')
-rw-r--r-- | Source/cmMathCommand.h | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/Source/cmMathCommand.h b/Source/cmMathCommand.h index 23633d3..ac1957c 100644 --- a/Source/cmMathCommand.h +++ b/Source/cmMathCommand.h @@ -8,33 +8,10 @@ #include <string> #include <vector> -#include "cm_memory.hxx" - -#include "cmCommand.h" - class cmExecutionStatus; /// Mathematical expressions: math(EXPR ...) command. -class cmMathCommand : public cmCommand -{ -public: - /** - * This is a virtual constructor for the command. - */ - std::unique_ptr<cmCommand> Clone() override - { - return cm::make_unique<cmMathCommand>(); - } - - /** - * 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; - -protected: - bool HandleExprCommand(std::vector<std::string> const& args); -}; +bool cmMathCommand(std::vector<std::string> const& args, + cmExecutionStatus& status); #endif |