summaryrefslogtreecommitdiffstats
path: root/Source/cmCommand.h
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2012-08-13 17:42:58 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-13 18:18:39 (GMT)
commit7bbaa4283de26864b2e55e819db0884771585467 (patch)
treeecb748dbe41a13d8bdea77acd0049cde999d933e /Source/cmCommand.h
parentbe9db98946b7918f279812fd0616abb650eebed0 (diff)
downloadCMake-7bbaa4283de26864b2e55e819db0884771585467.zip
CMake-7bbaa4283de26864b2e55e819db0884771585467.tar.gz
CMake-7bbaa4283de26864b2e55e819db0884771585467.tar.bz2
Remove trailing whitespace from most CMake and C/C++ code
Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
Diffstat (limited to 'Source/cmCommand.h')
-rw-r--r--Source/cmCommand.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/cmCommand.h b/Source/cmCommand.h
index 4faaee3..49f451b 100644
--- a/Source/cmCommand.h
+++ b/Source/cmCommand.h
@@ -23,8 +23,8 @@
* cmCommand is the base class for all commands in CMake. A command
* manifests as an entry in CMakeLists.txt and produces one or
* more makefile rules. Commands are associated with a particular
- * makefile. This base class cmCommand defines the API for commands
- * to support such features as enable/disable, inheritance,
+ * makefile. This base class cmCommand defines the API for commands
+ * to support such features as enable/disable, inheritance,
* documentation, and construction.
*/
class cmCommand : public cmObject
@@ -35,18 +35,18 @@ public:
/**
* Construct the command. By default it is enabled with no makefile.
*/
- cmCommand()
+ cmCommand()
{this->Makefile = 0; this->Enabled = true;}
/**
* Need virtual destructor to destroy real command type.
*/
virtual ~cmCommand() {}
-
+
/**
* Specify the makefile.
*/
- void SetMakefile(cmMakefile*m)
+ void SetMakefile(cmMakefile*m)
{this->Makefile = m; }
cmMakefile* GetMakefile() { return this->Makefile; }
@@ -87,12 +87,12 @@ public:
* Does this command have a final pass? Query after InitialPass.
*/
virtual bool HasFinalPass() const { return false; }
-
+
/**
* This is a virtual constructor for the command.
*/
virtual cmCommand* Clone() = 0;
-
+
/**
* This determines if the command is invoked when in script mode.
*/
@@ -139,13 +139,13 @@ public:
/**
* Enable the command.
*/
- void EnabledOn()
+ void EnabledOn()
{this->Enabled = true;}
/**
* Disable the command.
*/
- void EnabledOff()
+ void EnabledOff()
{this->Enabled = false;}
/**
@@ -157,13 +157,13 @@ public:
/**
* Disable or enable the command.
*/
- void SetEnabled(bool enabled)
+ void SetEnabled(bool enabled)
{this->Enabled = enabled;}
/**
* Return the last error string.
*/
- const char* GetError()
+ const char* GetError()
{
if(this->Error.length() == 0)
{