summaryrefslogtreecommitdiffstats
path: root/Source/cmWhileCommand.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-04-07 19:46:46 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-07-21 07:25:32 (GMT)
commit28f2d12a055e025aa0ddeb9842f204f29181eaff (patch)
treec72caeac0330934a280f3a014688b43c55a11eea /Source/cmWhileCommand.h
parentde77d355ac1808164b7247290f45b8133ce1246b (diff)
downloadCMake-28f2d12a055e025aa0ddeb9842f204f29181eaff.zip
CMake-28f2d12a055e025aa0ddeb9842f204f29181eaff.tar.gz
CMake-28f2d12a055e025aa0ddeb9842f204f29181eaff.tar.bz2
cmCommand: De-virtualize function InvokeInitialPass
Diffstat (limited to 'Source/cmWhileCommand.h')
-rw-r--r--Source/cmWhileCommand.h34
1 files changed, 2 insertions, 32 deletions
diff --git a/Source/cmWhileCommand.h b/Source/cmWhileCommand.h
index 857d1c8..2257799 100644
--- a/Source/cmWhileCommand.h
+++ b/Source/cmWhileCommand.h
@@ -5,12 +5,8 @@
#include "cmConfigure.h" // IWYU pragma: keep
-#include <string>
#include <vector>
-#include "cm_memory.hxx"
-
-#include "cmCommand.h"
#include "cmFunctionBlocker.h"
#include "cmListFileCache.h"
@@ -35,33 +31,7 @@ private:
};
/// \brief Starts a while loop
-class cmWhileCommand : public cmCommand
-{
-public:
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmWhileCommand>();
- }
-
- /**
- * This overrides the default InvokeInitialPass implementation.
- * It records the arguments before expansion.
- */
- bool InvokeInitialPass(const std::vector<cmListFileArgument>& args,
- cmExecutionStatus&) override;
-
- /**
- * This is called when the command is first encountered in
- * the CMakeLists.txt file.
- */
- bool InitialPass(std::vector<std::string> const&,
- cmExecutionStatus&) override
- {
- return false;
- }
-};
+bool cmWhileCommand(std::vector<cmListFileArgument> const& args,
+ cmExecutionStatus& status);
#endif