123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef cmIfCommand_h
- #define cmIfCommand_h
- #include "cmConfigure.h"
- #include <string>
- #include <vector>
- #include "cmCommand.h"
- #include "cmFunctionBlocker.h"
- #include "cmListFileCache.h"
- class cmExecutionStatus;
- class cmExpandedCommandArgument;
- class cmMakefile;
- class cmIfFunctionBlocker : public cmFunctionBlocker
- {
- public:
- cmIfFunctionBlocker()
- {
- this->HasRun = false;
- this->ElseSeen = false;
- this->ScopeDepth = 0;
- }
- ~cmIfFunctionBlocker() override {}
- bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf,
- cmExecutionStatus&) override;
- bool ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf) override;
- std::vector<cmListFileArgument> Args;
- std::vector<cmListFileFunction> Functions;
- bool IsBlocking;
- bool HasRun;
- bool ElseSeen;
- unsigned int ScopeDepth;
- };
- class cmIfCommand : public cmCommand
- {
- public:
-
- cmCommand* Clone() override { return new cmIfCommand; }
-
- bool InvokeInitialPass(const std::vector<cmListFileArgument>& args,
- cmExecutionStatus&) override;
-
- bool InitialPass(std::vector<std::string> const&,
- cmExecutionStatus&) override
- {
- return false;
- }
-
- static const char* GetDefinitionIfUnquoted(
- const cmMakefile* mf, cmExpandedCommandArgument const& argument);
- };
- #endif
|