From c76500949d3fcf5ff83ac6e7f1d565f5d786c5f0 Mon Sep 17 00:00:00 2001 From: Regina Pfeifer Date: Tue, 23 Jul 2019 23:00:28 +0200 Subject: cm*FunctionBlocker: Move to source file --- Source/cmIfCommand.cxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'Source/cmIfCommand.cxx') diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 385022ca03..20fe2f8a64 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -7,6 +7,8 @@ #include "cmConditionEvaluator.h" #include "cmExecutionStatus.h" #include "cmExpandedCommandArgument.h" +#include "cmFunctionBlocker.h" +#include "cmListFileCache.h" #include "cmMakefile.h" #include "cmMessageType.h" #include "cmOutputConverter.h" @@ -28,6 +30,21 @@ static std::string cmIfCommandError( return err; } +class cmIfFunctionBlocker : public cmFunctionBlocker +{ +public: + bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf, + cmExecutionStatus&) override; + bool ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf) override; + + std::vector Args; + std::vector Functions; + bool IsBlocking; + bool HasRun = false; + bool ElseSeen = false; + unsigned int ScopeDepth = 0; +}; + //========================================================================= bool cmIfFunctionBlocker::IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf, -- cgit v1.2.1