summaryrefslogtreecommitdiffstats
path: root/Source/cmFunctionCommand.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-07-23 21:00:28 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-07-30 15:21:50 (GMT)
commitc76500949d3fcf5ff83ac6e7f1d565f5d786c5f0 (patch)
tree4a42eb66c6ea5c4b5b51919e015d198da427a3a4 /Source/cmFunctionCommand.cxx
parent89dc04af1d55a343a44e7c2de4bb92a101dd6138 (diff)
downloadCMake-c76500949d3fcf5ff83ac6e7f1d565f5d786c5f0.zip
CMake-c76500949d3fcf5ff83ac6e7f1d565f5d786c5f0.tar.gz
CMake-c76500949d3fcf5ff83ac6e7f1d565f5d786c5f0.tar.bz2
cm*FunctionBlocker: Move to source file
Diffstat (limited to 'Source/cmFunctionCommand.cxx')
-rw-r--r--Source/cmFunctionCommand.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmFunctionCommand.cxx b/Source/cmFunctionCommand.cxx
index 2809cf7..f8230f1 100644
--- a/Source/cmFunctionCommand.cxx
+++ b/Source/cmFunctionCommand.cxx
@@ -7,6 +7,8 @@
#include "cmAlgorithms.h"
#include "cmExecutionStatus.h"
+#include "cmFunctionBlocker.h"
+#include "cmListFileCache.h"
#include "cmMakefile.h"
#include "cmPolicies.h"
#include "cmRange.h"
@@ -102,6 +104,18 @@ bool cmFunctionHelperCommand::operator()(
return true;
}
+class cmFunctionFunctionBlocker : public cmFunctionBlocker
+{
+public:
+ bool IsFunctionBlocked(const cmListFileFunction&, cmMakefile& mf,
+ cmExecutionStatus&) override;
+ bool ShouldRemove(const cmListFileFunction&, cmMakefile& mf) override;
+
+ std::vector<std::string> Args;
+ std::vector<cmListFileFunction> Functions;
+ int Depth = 0;
+};
+
bool cmFunctionFunctionBlocker::IsFunctionBlocked(
const cmListFileFunction& lff, cmMakefile& mf, cmExecutionStatus&)
{