summaryrefslogtreecommitdiff
path: root/Source/cmForEachCommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmForEachCommand.h')
-rw-r--r--Source/cmForEachCommand.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/cmForEachCommand.h b/Source/cmForEachCommand.h
index 027b8cb9c1..60956aaf75 100644
--- a/Source/cmForEachCommand.h
+++ b/Source/cmForEachCommand.h
@@ -22,13 +22,13 @@ class cmForEachFunctionBlocker : public cmFunctionBlocker
public:
cmForEachFunctionBlocker(cmMakefile* mf);
~cmForEachFunctionBlocker();
- virtual bool IsFunctionBlocked(const cmListFileFunction& lff,
- cmMakefile &mf,
- cmExecutionStatus &);
- virtual bool ShouldRemove(const cmListFileFunction& lff, cmMakefile &mf);
+ virtual bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf,
+ cmExecutionStatus&);
+ virtual bool ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf);
std::vector<std::string> Args;
std::vector<cmListFileFunction> Functions;
+
private:
cmMakefile* Makefile;
int Depth;
@@ -41,17 +41,14 @@ public:
/**
* This is a virtual constructor for the command.
*/
- virtual cmCommand* Clone()
- {
- return new cmForEachCommand;
- }
+ virtual cmCommand* Clone() { return new cmForEachCommand; }
/**
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string> const& args,
- cmExecutionStatus &status);
+ cmExecutionStatus& status);
/**
* This determines if the command is invoked when in script mode.
@@ -61,12 +58,12 @@ public:
/**
* The name of the command as specified in CMakeList.txt.
*/
- virtual std::string GetName() const { return "foreach";}
+ virtual std::string GetName() const { return "foreach"; }
cmTypeMacro(cmForEachCommand, cmCommand);
+
private:
bool HandleInMode(std::vector<std::string> const& args);
};
-
#endif