mark functions with CM_OVERRIDE

This commit is contained in:
Daniel Pfeifer 2016-06-27 21:25:27 +02:00
parent 9e2d6f0c4d
commit a7a9239096
216 changed files with 1124 additions and 1033 deletions

View File

@ -46,7 +46,7 @@ public:
/** /**
* Destruct IFW generator * Destruct IFW generator
*/ */
virtual ~cmCPackIFWGenerator(); ~cmCPackIFWGenerator() CM_OVERRIDE;
/** /**
* Compare \a version with QtIFW framework version * Compare \a version with QtIFW framework version
@ -70,18 +70,18 @@ protected:
* @brief Initialize generator * @brief Initialize generator
* @return 0 on failure * @return 0 on failure
*/ */
virtual int InitializeInternal(); int InitializeInternal() CM_OVERRIDE;
virtual int PackageFiles(); int PackageFiles() CM_OVERRIDE;
virtual const char* GetPackagingInstallPrefix(); const char* GetPackagingInstallPrefix() CM_OVERRIDE;
/** /**
* @brief Extension of binary installer * @brief Extension of binary installer
* @return Executable suffix or value from default implementation * @return Executable suffix or value from default implementation
*/ */
virtual const char* GetOutputExtension(); const char* GetOutputExtension() CM_OVERRIDE;
virtual std::string GetComponentInstallDirNameSuffix( std::string GetComponentInstallDirNameSuffix(
const std::string& componentName); const std::string& componentName) CM_OVERRIDE;
/** /**
* @brief Get Component * @brief Get Component
@ -92,8 +92,8 @@ protected:
* *
* @return Pointer to component * @return Pointer to component
*/ */
virtual cmCPackComponent* GetComponent(const std::string& projectName, cmCPackComponent* GetComponent(const std::string& projectName,
const std::string& componentName); const std::string& componentName) CM_OVERRIDE;
/** /**
* @brief Get group of component * @brief Get group of component
@ -104,12 +104,13 @@ protected:
* *
* @return Pointer to component group * @return Pointer to component group
*/ */
virtual cmCPackComponentGroup* GetComponentGroup( cmCPackComponentGroup* GetComponentGroup(
const std::string& projectName, const std::string& groupName); const std::string& projectName, const std::string& groupName) CM_OVERRIDE;
enum cmCPackGenerator::CPackSetDestdirSupport SupportsSetDestdir() const; enum cmCPackGenerator::CPackSetDestdirSupport SupportsSetDestdir() const
virtual bool SupportsAbsoluteDestination() const; CM_OVERRIDE;
virtual bool SupportsComponentInstallation() const; bool SupportsAbsoluteDestination() const CM_OVERRIDE;
bool SupportsComponentInstallation() const CM_OVERRIDE;
protected: protected:
// Methods // Methods

View File

@ -27,10 +27,10 @@ public:
* Construct generator * Construct generator
*/ */
cmCPack7zGenerator(); cmCPack7zGenerator();
virtual ~cmCPack7zGenerator(); ~cmCPack7zGenerator() CM_OVERRIDE;
protected: protected:
virtual const char* GetOutputExtension() { return ".7z"; } const char* GetOutputExtension() CM_OVERRIDE { return ".7z"; }
}; };
#endif #endif

View File

@ -32,14 +32,14 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackArchiveGenerator(cmArchiveWrite::Compress, std::string const& format); cmCPackArchiveGenerator(cmArchiveWrite::Compress, std::string const& format);
virtual ~cmCPackArchiveGenerator(); ~cmCPackArchiveGenerator() CM_OVERRIDE;
// Used to add a header to the archive // Used to add a header to the archive
virtual int GenerateHeader(std::ostream* os); virtual int GenerateHeader(std::ostream* os);
// component support // component support
virtual bool SupportsComponentInstallation() const; bool SupportsComponentInstallation() const CM_OVERRIDE;
protected: protected:
virtual int InitializeInternal(); int InitializeInternal() CM_OVERRIDE;
/** /**
* Add the files belonging to the specified component * Add the files belonging to the specified component
* to the provided (already opened) archive. * to the provided (already opened) archive.
@ -55,7 +55,7 @@ protected:
* method will call either PackageComponents or * method will call either PackageComponents or
* PackageComponentsAllInOne. * PackageComponentsAllInOne.
*/ */
int PackageFiles(); int PackageFiles() CM_OVERRIDE;
/** /**
* The method used to package files when component * The method used to package files when component
* install is used. This will create one * install is used. This will create one
@ -67,7 +67,7 @@ protected:
* components will be put in a single installer. * components will be put in a single installer.
*/ */
int PackageComponentsAllInOne(); int PackageComponentsAllInOne();
virtual const char* GetOutputExtension() = 0; const char* GetOutputExtension() CM_OVERRIDE = 0;
cmArchiveWrite::Compress Compress; cmArchiveWrite::Compress Compress;
std::string ArchiveFormat; std::string ArchiveFormat;
}; };

View File

@ -28,7 +28,7 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackDebGenerator(); cmCPackDebGenerator();
virtual ~cmCPackDebGenerator(); ~cmCPackDebGenerator() CM_OVERRIDE;
static bool CanGenerate() static bool CanGenerate()
{ {
@ -45,7 +45,7 @@ public:
} }
protected: protected:
virtual int InitializeInternal(); int InitializeInternal() CM_OVERRIDE;
/** /**
* This method factors out the work done in component packaging case. * This method factors out the work done in component packaging case.
*/ */
@ -62,11 +62,11 @@ protected:
* components will be put in a single installer. * components will be put in a single installer.
*/ */
int PackageComponentsAllInOne(const std::string& compInstDirName); int PackageComponentsAllInOne(const std::string& compInstDirName);
virtual int PackageFiles(); int PackageFiles() CM_OVERRIDE;
virtual const char* GetOutputExtension() { return ".deb"; } const char* GetOutputExtension() CM_OVERRIDE { return ".deb"; }
virtual bool SupportsComponentInstallation() const; bool SupportsComponentInstallation() const CM_OVERRIDE;
virtual std::string GetComponentInstallDirNameSuffix( std::string GetComponentInstallDirNameSuffix(
const std::string& componentName); const std::string& componentName) CM_OVERRIDE;
private: private:
int createDeb(); int createDeb();

View File

@ -101,7 +101,7 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackGenerator(); cmCPackGenerator();
virtual ~cmCPackGenerator(); ~cmCPackGenerator() CM_OVERRIDE;
//! Set and get the options //! Set and get the options
void SetOption(const std::string& op, const char* value); void SetOption(const std::string& op, const char* value);

View File

@ -28,7 +28,7 @@ public:
cmTypeMacro(cmCPackGeneratorFactory, cmObject); cmTypeMacro(cmCPackGeneratorFactory, cmObject);
cmCPackGeneratorFactory(); cmCPackGeneratorFactory();
~cmCPackGeneratorFactory(); ~cmCPackGeneratorFactory() CM_OVERRIDE;
//! Get the generator //! Get the generator
cmCPackGenerator* NewGenerator(const std::string& name); cmCPackGenerator* NewGenerator(const std::string& name);

View File

@ -42,7 +42,7 @@ public:
cmTypeMacro(cmCPackLog, cmObject); cmTypeMacro(cmCPackLog, cmObject);
cmCPackLog(); cmCPackLog();
~cmCPackLog(); ~cmCPackLog() CM_OVERRIDE;
enum __log_tags enum __log_tags
{ {

View File

@ -36,21 +36,22 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackNSISGenerator(bool nsis64 = false); cmCPackNSISGenerator(bool nsis64 = false);
virtual ~cmCPackNSISGenerator(); ~cmCPackNSISGenerator() CM_OVERRIDE;
protected: protected:
virtual int InitializeInternal(); int InitializeInternal() CM_OVERRIDE;
void CreateMenuLinks(std::ostream& str, std::ostream& deleteStr); void CreateMenuLinks(std::ostream& str, std::ostream& deleteStr);
int PackageFiles(); int PackageFiles() CM_OVERRIDE;
virtual const char* GetOutputExtension() { return ".exe"; } const char* GetOutputExtension() CM_OVERRIDE { return ".exe"; }
virtual const char* GetOutputPostfix() { return "win32"; } const char* GetOutputPostfix() CM_OVERRIDE { return "win32"; }
bool GetListOfSubdirectories(const char* dir, bool GetListOfSubdirectories(const char* dir,
std::vector<std::string>& dirs); std::vector<std::string>& dirs);
enum cmCPackGenerator::CPackSetDestdirSupport SupportsSetDestdir() const; enum cmCPackGenerator::CPackSetDestdirSupport SupportsSetDestdir() const
virtual bool SupportsAbsoluteDestination() const; CM_OVERRIDE;
virtual bool SupportsComponentInstallation() const; bool SupportsAbsoluteDestination() const CM_OVERRIDE;
bool SupportsComponentInstallation() const CM_OVERRIDE;
/// Produce a string that contains the NSIS code to describe a /// Produce a string that contains the NSIS code to describe a
/// particular component. Any added macros will be emitted via /// particular component. Any added macros will be emitted via

View File

@ -32,7 +32,7 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackRPMGenerator(); cmCPackRPMGenerator();
virtual ~cmCPackRPMGenerator(); ~cmCPackRPMGenerator() CM_OVERRIDE;
static bool CanGenerate() static bool CanGenerate()
{ {
@ -49,8 +49,8 @@ public:
} }
protected: protected:
virtual int InitializeInternal(); int InitializeInternal() CM_OVERRIDE;
virtual int PackageFiles(); int PackageFiles() CM_OVERRIDE;
/** /**
* This method factors out the work done in component packaging case. * This method factors out the work done in component packaging case.
*/ */
@ -67,10 +67,10 @@ protected:
* components will be put in a single installer. * components will be put in a single installer.
*/ */
int PackageComponentsAllInOne(const std::string& compInstDirName); int PackageComponentsAllInOne(const std::string& compInstDirName);
virtual const char* GetOutputExtension() { return ".rpm"; } const char* GetOutputExtension() CM_OVERRIDE { return ".rpm"; }
virtual bool SupportsComponentInstallation() const; bool SupportsComponentInstallation() const CM_OVERRIDE;
virtual std::string GetComponentInstallDirNameSuffix( std::string GetComponentInstallDirNameSuffix(
const std::string& componentName); const std::string& componentName) CM_OVERRIDE;
void AddGeneratedPackageNames(); void AddGeneratedPackageNames();
}; };

View File

@ -28,13 +28,13 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackSTGZGenerator(); cmCPackSTGZGenerator();
virtual ~cmCPackSTGZGenerator(); ~cmCPackSTGZGenerator() CM_OVERRIDE;
protected: protected:
int PackageFiles(); int PackageFiles() CM_OVERRIDE;
virtual int InitializeInternal(); int InitializeInternal() CM_OVERRIDE;
int GenerateHeader(std::ostream* os); int GenerateHeader(std::ostream* os) CM_OVERRIDE;
virtual const char* GetOutputExtension() { return ".sh"; } const char* GetOutputExtension() CM_OVERRIDE { return ".sh"; }
}; };
#endif #endif

View File

@ -27,10 +27,10 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackTGZGenerator(); cmCPackTGZGenerator();
virtual ~cmCPackTGZGenerator(); ~cmCPackTGZGenerator() CM_OVERRIDE;
protected: protected:
virtual const char* GetOutputExtension() { return ".tar.gz"; } const char* GetOutputExtension() CM_OVERRIDE { return ".tar.gz"; }
}; };
#endif #endif

View File

@ -27,10 +27,10 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackTXZGenerator(); cmCPackTXZGenerator();
virtual ~cmCPackTXZGenerator(); ~cmCPackTXZGenerator() CM_OVERRIDE;
protected: protected:
virtual const char* GetOutputExtension() { return ".tar.xz"; } const char* GetOutputExtension() CM_OVERRIDE { return ".tar.xz"; }
}; };
#endif #endif

View File

@ -26,10 +26,10 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackTarBZip2Generator(); cmCPackTarBZip2Generator();
virtual ~cmCPackTarBZip2Generator(); ~cmCPackTarBZip2Generator() CM_OVERRIDE;
protected: protected:
virtual const char* GetOutputExtension() { return ".tar.bz2"; } const char* GetOutputExtension() CM_OVERRIDE { return ".tar.bz2"; }
}; };
#endif #endif

View File

@ -26,10 +26,10 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackTarCompressGenerator(); cmCPackTarCompressGenerator();
virtual ~cmCPackTarCompressGenerator(); ~cmCPackTarCompressGenerator() CM_OVERRIDE;
protected: protected:
virtual const char* GetOutputExtension() { return ".tar.Z"; } const char* GetOutputExtension() CM_OVERRIDE { return ".tar.Z"; }
}; };
#endif #endif

View File

@ -27,10 +27,10 @@ public:
* Construct generator * Construct generator
*/ */
cmCPackZIPGenerator(); cmCPackZIPGenerator();
virtual ~cmCPackZIPGenerator(); ~cmCPackZIPGenerator() CM_OVERRIDE;
protected: protected:
virtual const char* GetOutputExtension() { return ".zip"; } const char* GetOutputExtension() CM_OVERRIDE { return ".zip"; }
}; };
#endif #endif

View File

@ -183,7 +183,7 @@ public:
{ {
this->InitializeParser(); this->InitializeParser();
} }
~LogParser() { this->CleanupParser(); } ~LogParser() CM_OVERRIDE { this->CleanupParser(); }
int InitializeParser() CM_OVERRIDE int InitializeParser() CM_OVERRIDE
{ {

View File

@ -24,20 +24,20 @@ public:
/** Construct with a CTest instance and update log stream. */ /** Construct with a CTest instance and update log stream. */
cmCTestBZR(cmCTest* ctest, std::ostream& log); cmCTestBZR(cmCTest* ctest, std::ostream& log);
virtual ~cmCTestBZR(); ~cmCTestBZR() CM_OVERRIDE;
private: private:
// Implement cmCTestVC internal API. // Implement cmCTestVC internal API.
virtual void NoteOldRevision(); void NoteOldRevision() CM_OVERRIDE;
virtual void NoteNewRevision(); void NoteNewRevision() CM_OVERRIDE;
virtual bool UpdateImpl(); bool UpdateImpl() CM_OVERRIDE;
// URL of repository directory checked out in the working tree. // URL of repository directory checked out in the working tree.
std::string URL; std::string URL;
std::string LoadInfo(); std::string LoadInfo();
void LoadModifications(); void LoadModifications() CM_OVERRIDE;
void LoadRevisions(); void LoadRevisions() CM_OVERRIDE;
// Parsing helper classes. // Parsing helper classes.
class InfoParser; class InfoParser;

View File

@ -28,8 +28,8 @@
class cmCTestBatchTestHandler : public cmCTestMultiProcessHandler class cmCTestBatchTestHandler : public cmCTestMultiProcessHandler
{ {
public: public:
~cmCTestBatchTestHandler(); ~cmCTestBatchTestHandler() CM_OVERRIDE;
virtual void RunTests(); void RunTests() CM_OVERRIDE;
protected: protected:
void WriteBatchScript(); void WriteBatchScript();

View File

@ -30,12 +30,12 @@ public:
/* /*
* The main entry point for this class * The main entry point for this class
*/ */
int ProcessHandler(); int ProcessHandler() CM_OVERRIDE;
//! Set all the build and test arguments //! Set all the build and test arguments
virtual int ProcessCommandLineArguments( int ProcessCommandLineArguments(const std::string& currentArg, size_t& idx,
const std::string& currentArg, size_t& idx, const std::vector<std::string>& allArgs)
const std::vector<std::string>& allArgs); CM_OVERRIDE;
/* /*
* Get the output variable * Get the output variable
@ -44,7 +44,7 @@ public:
cmCTestBuildAndTestHandler(); cmCTestBuildAndTestHandler();
virtual void Initialize(); void Initialize() CM_OVERRIDE;
protected: protected:
///! Run CMake and build a test and then run it as a single test. ///! Run CMake and build a test and then run it as a single test.

View File

@ -26,12 +26,12 @@ class cmCTestBuildCommand : public cmCTestHandlerCommand
{ {
public: public:
cmCTestBuildCommand(); cmCTestBuildCommand();
~cmCTestBuildCommand(); ~cmCTestBuildCommand() CM_OVERRIDE;
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestBuildCommand* ni = new cmCTestBuildCommand; cmCTestBuildCommand* ni = new cmCTestBuildCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -42,10 +42,10 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_build"; } std::string GetName() const CM_OVERRIDE { return "ctest_build"; }
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
cmTypeMacro(cmCTestBuildCommand, cmCTestHandlerCommand); cmTypeMacro(cmCTestBuildCommand, cmCTestHandlerCommand);
@ -65,7 +65,7 @@ protected:
ctb_LAST ctb_LAST
}; };
cmCTestGenericHandler* InitializeHandler(); cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
}; };
#endif #endif

View File

@ -36,16 +36,16 @@ public:
/* /*
* The main entry point for this class * The main entry point for this class
*/ */
int ProcessHandler(); int ProcessHandler() CM_OVERRIDE;
cmCTestBuildHandler(); cmCTestBuildHandler();
void PopulateCustomVectors(cmMakefile* mf); void PopulateCustomVectors(cmMakefile* mf) CM_OVERRIDE;
/** /**
* Initialize handler * Initialize handler
*/ */
virtual void Initialize(); void Initialize() CM_OVERRIDE;
int GetTotalErrors() { return this->TotalErrors; } int GetTotalErrors() { return this->TotalErrors; }
int GetTotalWarnings() { return this->TotalWarnings; } int GetTotalWarnings() { return this->TotalWarnings; }

View File

@ -24,12 +24,12 @@ public:
/** Construct with a CTest instance and update log stream. */ /** Construct with a CTest instance and update log stream. */
cmCTestCVS(cmCTest* ctest, std::ostream& log); cmCTestCVS(cmCTest* ctest, std::ostream& log);
virtual ~cmCTestCVS(); ~cmCTestCVS() CM_OVERRIDE;
private: private:
// Implement cmCTestVC internal API. // Implement cmCTestVC internal API.
virtual bool UpdateImpl(); bool UpdateImpl() CM_OVERRIDE;
virtual bool WriteXMLUpdates(cmXMLWriter& xml); bool WriteXMLUpdates(cmXMLWriter& xml) CM_OVERRIDE;
// Update status for files in each directory. // Update status for files in each directory.
class Directory : public std::map<std::string, PathStatus> class Directory : public std::map<std::string, PathStatus>

View File

@ -27,7 +27,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestConfigureCommand* ni = new cmCTestConfigureCommand; cmCTestConfigureCommand* ni = new cmCTestConfigureCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -38,12 +38,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_configure"; } std::string GetName() const CM_OVERRIDE { return "ctest_configure"; }
cmTypeMacro(cmCTestConfigureCommand, cmCTestHandlerCommand); cmTypeMacro(cmCTestConfigureCommand, cmCTestHandlerCommand);
protected: protected:
cmCTestGenericHandler* InitializeHandler(); cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
enum enum
{ {

View File

@ -29,11 +29,11 @@ public:
/* /*
* The main entry point for this class * The main entry point for this class
*/ */
int ProcessHandler(); int ProcessHandler() CM_OVERRIDE;
cmCTestConfigureHandler(); cmCTestConfigureHandler();
void Initialize(); void Initialize() CM_OVERRIDE;
}; };
#endif #endif

View File

@ -27,7 +27,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestCoverageCommand* ni = new cmCTestCoverageCommand; cmCTestCoverageCommand* ni = new cmCTestCoverageCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -38,15 +38,15 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_coverage"; } std::string GetName() const CM_OVERRIDE { return "ctest_coverage"; }
cmTypeMacro(cmCTestCoverageCommand, cmCTestHandlerCommand); cmTypeMacro(cmCTestCoverageCommand, cmCTestHandlerCommand);
protected: protected:
cmCTestGenericHandler* InitializeHandler(); cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
virtual bool CheckArgumentKeyword(std::string const& arg); bool CheckArgumentKeyword(std::string const& arg) CM_OVERRIDE;
virtual bool CheckArgumentValue(std::string const& arg); bool CheckArgumentValue(std::string const& arg) CM_OVERRIDE;
enum enum
{ {

View File

@ -45,16 +45,16 @@ public:
/* /*
* The main entry point for this class * The main entry point for this class
*/ */
int ProcessHandler(); int ProcessHandler() CM_OVERRIDE;
cmCTestCoverageHandler(); cmCTestCoverageHandler();
virtual void Initialize(); void Initialize() CM_OVERRIDE;
/** /**
* This method is called when reading CTest custom file * This method is called when reading CTest custom file
*/ */
void PopulateCustomVectors(cmMakefile* mf); void PopulateCustomVectors(cmMakefile* mf) CM_OVERRIDE;
/** Report coverage only for sources with these labels. */ /** Report coverage only for sources with these labels. */
void SetLabelFilter(std::set<std::string> const& labels); void SetLabelFilter(std::set<std::string> const& labels);

View File

@ -28,7 +28,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestEmptyBinaryDirectoryCommand* ni = cmCTestEmptyBinaryDirectoryCommand* ni =
new cmCTestEmptyBinaryDirectoryCommand; new cmCTestEmptyBinaryDirectoryCommand;
@ -41,13 +41,13 @@ public:
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const std::string GetName() const CM_OVERRIDE
{ {
return "ctest_empty_binary_directory"; return "ctest_empty_binary_directory";
} }

View File

@ -24,15 +24,15 @@ public:
/** Construct with a CTest instance and update log stream. */ /** Construct with a CTest instance and update log stream. */
cmCTestGIT(cmCTest* ctest, std::ostream& log); cmCTestGIT(cmCTest* ctest, std::ostream& log);
virtual ~cmCTestGIT(); ~cmCTestGIT() CM_OVERRIDE;
private: private:
unsigned int CurrentGitVersion; unsigned int CurrentGitVersion;
unsigned int GetGitVersion(); unsigned int GetGitVersion();
std::string GetWorkingRevision(); std::string GetWorkingRevision();
virtual void NoteOldRevision(); void NoteOldRevision() CM_OVERRIDE;
virtual void NoteNewRevision(); void NoteNewRevision() CM_OVERRIDE;
virtual bool UpdateImpl(); bool UpdateImpl() CM_OVERRIDE;
std::string FindGitDir(); std::string FindGitDir();
std::string FindTopDir(); std::string FindTopDir();
@ -41,8 +41,8 @@ private:
bool UpdateByCustom(std::string const& custom); bool UpdateByCustom(std::string const& custom);
bool UpdateInternal(); bool UpdateInternal();
void LoadRevisions(); void LoadRevisions() CM_OVERRIDE;
void LoadModifications(); void LoadModifications() CM_OVERRIDE;
// "public" needed by older Sun compilers // "public" needed by older Sun compilers
public: public:

View File

@ -74,7 +74,7 @@ public:
* Construct handler * Construct handler
*/ */
cmCTestGenericHandler(); cmCTestGenericHandler();
virtual ~cmCTestGenericHandler(); ~cmCTestGenericHandler() CM_OVERRIDE;
typedef std::map<std::string, std::string> t_StringToString; typedef std::map<std::string, std::string> t_StringToString;

View File

@ -26,11 +26,11 @@ public:
/** Construct with a CTest instance and update log stream. */ /** Construct with a CTest instance and update log stream. */
cmCTestGlobalVC(cmCTest* ctest, std::ostream& log); cmCTestGlobalVC(cmCTest* ctest, std::ostream& log);
virtual ~cmCTestGlobalVC(); ~cmCTestGlobalVC() CM_OVERRIDE;
protected: protected:
// Implement cmCTestVC internal API. // Implement cmCTestVC internal API.
virtual bool WriteXMLUpdates(cmXMLWriter& xml); bool WriteXMLUpdates(cmXMLWriter& xml) CM_OVERRIDE;
/** Represent a vcs-reported action for one path in a revision. */ /** Represent a vcs-reported action for one path in a revision. */
struct Change struct Change

View File

@ -171,7 +171,7 @@ public:
{ {
this->InitializeParser(); this->InitializeParser();
} }
~LogParser() { this->CleanupParser(); } ~LogParser() CM_OVERRIDE { this->CleanupParser(); }
private: private:
cmCTestHG* HG; cmCTestHG* HG;

View File

@ -24,16 +24,16 @@ public:
/** Construct with a CTest instance and update log stream. */ /** Construct with a CTest instance and update log stream. */
cmCTestHG(cmCTest* ctest, std::ostream& log); cmCTestHG(cmCTest* ctest, std::ostream& log);
virtual ~cmCTestHG(); ~cmCTestHG() CM_OVERRIDE;
private: private:
std::string GetWorkingRevision(); std::string GetWorkingRevision();
virtual void NoteOldRevision(); void NoteOldRevision() CM_OVERRIDE;
virtual void NoteNewRevision(); void NoteNewRevision() CM_OVERRIDE;
virtual bool UpdateImpl(); bool UpdateImpl() CM_OVERRIDE;
void LoadRevisions(); void LoadRevisions() CM_OVERRIDE;
void LoadModifications(); void LoadModifications() CM_OVERRIDE;
// Parsing helper classes. // Parsing helper classes.
class IdentifyParser; class IdentifyParser;

View File

@ -30,8 +30,8 @@ public:
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
cmTypeMacro(cmCTestHandlerCommand, cmCTestCommand); cmTypeMacro(cmCTestHandlerCommand, cmCTestCommand);

View File

@ -29,7 +29,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestMemCheckCommand* ni = new cmCTestMemCheckCommand; cmCTestMemCheckCommand* ni = new cmCTestMemCheckCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -40,12 +40,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_memcheck"; } std::string GetName() const CM_OVERRIDE { return "ctest_memcheck"; }
cmTypeMacro(cmCTestMemCheckCommand, cmCTestTestCommand); cmTypeMacro(cmCTestMemCheckCommand, cmCTestTestCommand);
protected: protected:
cmCTestGenericHandler* InitializeActualHandler(); cmCTestGenericHandler* InitializeActualHandler() CM_OVERRIDE;
}; };
#endif #endif

View File

@ -33,16 +33,17 @@ class cmCTestMemCheckHandler : public cmCTestTestHandler
public: public:
cmTypeMacro(cmCTestMemCheckHandler, cmCTestTestHandler); cmTypeMacro(cmCTestMemCheckHandler, cmCTestTestHandler);
void PopulateCustomVectors(cmMakefile* mf); void PopulateCustomVectors(cmMakefile* mf) CM_OVERRIDE;
cmCTestMemCheckHandler(); cmCTestMemCheckHandler();
void Initialize(); void Initialize() CM_OVERRIDE;
protected: protected:
virtual int PreProcessHandler(); int PreProcessHandler() CM_OVERRIDE;
virtual int PostProcessHandler(); int PostProcessHandler() CM_OVERRIDE;
virtual void GenerateTestCommand(std::vector<std::string>& args, int test); void GenerateTestCommand(std::vector<std::string>& args,
int test) CM_OVERRIDE;
private: private:
enum enum
@ -125,7 +126,7 @@ private:
/** /**
* Generate the Dart compatible output * Generate the Dart compatible output
*/ */
void GenerateDartOutput(cmXMLWriter& xml); void GenerateDartOutput(cmXMLWriter& xml) CM_OVERRIDE;
std::vector<std::string> CustomPreMemCheck; std::vector<std::string> CustomPreMemCheck;
std::vector<std::string> CustomPostMemCheck; std::vector<std::string> CustomPostMemCheck;

View File

@ -27,7 +27,7 @@ public:
/** Construct with a CTest instance and update log stream. */ /** Construct with a CTest instance and update log stream. */
cmCTestP4(cmCTest* ctest, std::ostream& log); cmCTestP4(cmCTest* ctest, std::ostream& log);
virtual ~cmCTestP4(); ~cmCTestP4() CM_OVERRIDE;
private: private:
std::vector<std::string> ChangeLists; std::vector<std::string> ChangeLists;
@ -54,13 +54,13 @@ private:
void SetP4Options(std::vector<char const*>& options); void SetP4Options(std::vector<char const*>& options);
std::string GetWorkingRevision(); std::string GetWorkingRevision();
virtual void NoteOldRevision(); void NoteOldRevision() CM_OVERRIDE;
virtual void NoteNewRevision(); void NoteNewRevision() CM_OVERRIDE;
virtual bool UpdateImpl(); bool UpdateImpl() CM_OVERRIDE;
bool UpdateCustom(const std::string& custom); bool UpdateCustom(const std::string& custom);
void LoadRevisions(); void LoadRevisions() CM_OVERRIDE;
void LoadModifications(); void LoadModifications() CM_OVERRIDE;
// Parsing helper classes. // Parsing helper classes.
class IdentifyParser; class IdentifyParser;

View File

@ -28,7 +28,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestReadCustomFilesCommand* ni = new cmCTestReadCustomFilesCommand; cmCTestReadCustomFilesCommand* ni = new cmCTestReadCustomFilesCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -39,13 +39,13 @@ public:
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_read_custom_files"; } std::string GetName() const CM_OVERRIDE { return "ctest_read_custom_files"; }
cmTypeMacro(cmCTestReadCustomFilesCommand, cmCTestCommand); cmTypeMacro(cmCTestReadCustomFilesCommand, cmCTestCommand);
}; };

View File

@ -28,7 +28,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestRunScriptCommand* ni = new cmCTestRunScriptCommand; cmCTestRunScriptCommand* ni = new cmCTestRunScriptCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -40,13 +40,13 @@ public:
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_run_script"; } std::string GetName() const CM_OVERRIDE { return "ctest_run_script"; }
cmTypeMacro(cmCTestRunScriptCommand, cmCTestCommand); cmTypeMacro(cmCTestRunScriptCommand, cmCTestCommand);
}; };

View File

@ -311,7 +311,7 @@ public:
{ {
this->InitializeParser(); this->InitializeParser();
} }
~LogParser() { this->CleanupParser(); } ~LogParser() CM_OVERRIDE { this->CleanupParser(); }
private: private:
cmCTestSVN* SVN; cmCTestSVN* SVN;
cmCTestSVN::SVNInfo& SVNRepo; cmCTestSVN::SVNInfo& SVNRepo;

View File

@ -26,14 +26,14 @@ public:
/** Construct with a CTest instance and update log stream. */ /** Construct with a CTest instance and update log stream. */
cmCTestSVN(cmCTest* ctest, std::ostream& log); cmCTestSVN(cmCTest* ctest, std::ostream& log);
virtual ~cmCTestSVN(); ~cmCTestSVN() CM_OVERRIDE;
private: private:
// Implement cmCTestVC internal API. // Implement cmCTestVC internal API.
virtual void CleanupImpl(); void CleanupImpl() CM_OVERRIDE;
virtual void NoteOldRevision(); void NoteOldRevision() CM_OVERRIDE;
virtual void NoteNewRevision(); void NoteNewRevision() CM_OVERRIDE;
virtual bool UpdateImpl(); bool UpdateImpl() CM_OVERRIDE;
bool RunSVNCommand(std::vector<char const*> const& parameters, bool RunSVNCommand(std::vector<char const*> const& parameters,
OutputParser* out, OutputParser* err); OutputParser* out, OutputParser* err);
@ -78,8 +78,8 @@ private:
std::string LoadInfo(SVNInfo& svninfo); std::string LoadInfo(SVNInfo& svninfo);
void LoadExternals(); void LoadExternals();
void LoadModifications(); void LoadModifications() CM_OVERRIDE;
void LoadRevisions(); void LoadRevisions() CM_OVERRIDE;
void LoadRevisions(SVNInfo& svninfo); void LoadRevisions(SVNInfo& svninfo);
void GuessBase(SVNInfo& svninfo, std::vector<Change> const& changes); void GuessBase(SVNInfo& svninfo, std::vector<Change> const& changes);
@ -87,7 +87,7 @@ private:
void DoRevisionSVN(Revision const& revision, void DoRevisionSVN(Revision const& revision,
std::vector<Change> const& changes); std::vector<Change> const& changes);
void WriteXMLGlobal(cmXMLWriter& xml); void WriteXMLGlobal(cmXMLWriter& xml) CM_OVERRIDE;
// Parsing helper classes. // Parsing helper classes.
class InfoParser; class InfoParser;

View File

@ -59,7 +59,7 @@ class cmCTestScriptFunctionBlocker : public cmFunctionBlocker
{ {
public: public:
cmCTestScriptFunctionBlocker() {} cmCTestScriptFunctionBlocker() {}
virtual ~cmCTestScriptFunctionBlocker() {} ~cmCTestScriptFunctionBlocker() CM_OVERRIDE {}
bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf, bool IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile& mf,
cmExecutionStatus&) CM_OVERRIDE; cmExecutionStatus&) CM_OVERRIDE;
// virtual bool ShouldRemove(const cmListFileFunction& lff, cmMakefile &mf); // virtual bool ShouldRemove(const cmListFileFunction& lff, cmMakefile &mf);

View File

@ -71,7 +71,7 @@ public:
/** /**
* Run a dashboard using a specified confiuration script * Run a dashboard using a specified confiuration script
*/ */
int ProcessHandler(); int ProcessHandler() CM_OVERRIDE;
/* /*
* Run a script * Run a script
@ -104,9 +104,9 @@ public:
double GetRemainingTimeAllowed(); double GetRemainingTimeAllowed();
cmCTestScriptHandler(); cmCTestScriptHandler();
~cmCTestScriptHandler(); ~cmCTestScriptHandler() CM_OVERRIDE;
void Initialize(); void Initialize() CM_OVERRIDE;
void CreateCMake(); void CreateCMake();
cmake* GetCMake() { return this->CMake; } cmake* GetCMake() { return this->CMake; }

View File

@ -28,7 +28,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestSleepCommand* ni = new cmCTestSleepCommand; cmCTestSleepCommand* ni = new cmCTestSleepCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -40,13 +40,13 @@ public:
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_sleep"; } std::string GetName() const CM_OVERRIDE { return "ctest_sleep"; }
cmTypeMacro(cmCTestSleepCommand, cmCTestCommand); cmTypeMacro(cmCTestSleepCommand, cmCTestCommand);
}; };

View File

@ -27,7 +27,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestStartCommand* ni = new cmCTestStartCommand; cmCTestStartCommand* ni = new cmCTestStartCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -41,8 +41,8 @@ public:
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* Will this invocation of ctest_start create a new TAG file? * Will this invocation of ctest_start create a new TAG file?
@ -57,7 +57,7 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_start"; } std::string GetName() const CM_OVERRIDE { return "ctest_start"; }
cmTypeMacro(cmCTestStartCommand, cmCTestCommand); cmTypeMacro(cmCTestStartCommand, cmCTestCommand);

View File

@ -38,7 +38,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestSubmitCommand* ni = new cmCTestSubmitCommand; cmCTestSubmitCommand* ni = new cmCTestSubmitCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -46,21 +46,21 @@ public:
return ni; return ni;
} }
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_submit"; } std::string GetName() const CM_OVERRIDE { return "ctest_submit"; }
cmTypeMacro(cmCTestSubmitCommand, cmCTestHandlerCommand); cmTypeMacro(cmCTestSubmitCommand, cmCTestHandlerCommand);
protected: protected:
cmCTestGenericHandler* InitializeHandler(); cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
virtual bool CheckArgumentKeyword(std::string const& arg); bool CheckArgumentKeyword(std::string const& arg) CM_OVERRIDE;
virtual bool CheckArgumentValue(std::string const& arg); bool CheckArgumentValue(std::string const& arg) CM_OVERRIDE;
enum enum
{ {

View File

@ -41,7 +41,7 @@ class cmCTestSubmitHandler::ResponseParser : public cmXMLParser
{ {
public: public:
ResponseParser() { this->Status = STATUS_OK; } ResponseParser() { this->Status = STATUS_OK; }
~ResponseParser() {} ~ResponseParser() CM_OVERRIDE {}
public: public:
enum StatusType enum StatusType

View File

@ -26,14 +26,14 @@ public:
cmTypeMacro(cmCTestSubmitHandler, cmCTestGenericHandler); cmTypeMacro(cmCTestSubmitHandler, cmCTestGenericHandler);
cmCTestSubmitHandler(); cmCTestSubmitHandler();
~cmCTestSubmitHandler() { this->LogFile = 0; } ~cmCTestSubmitHandler() CM_OVERRIDE { this->LogFile = 0; }
/* /*
* The main entry point for this class * The main entry point for this class
*/ */
int ProcessHandler(); int ProcessHandler() CM_OVERRIDE;
void Initialize(); void Initialize() CM_OVERRIDE;
/** Specify a set of parts (by name) to submit. */ /** Specify a set of parts (by name) to submit. */
void SelectParts(std::set<cmCTest::Part> const& parts); void SelectParts(std::set<cmCTest::Part> const& parts);

View File

@ -27,7 +27,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestTestCommand* ni = new cmCTestTestCommand; cmCTestTestCommand* ni = new cmCTestTestCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -38,13 +38,13 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_test"; } std::string GetName() const CM_OVERRIDE { return "ctest_test"; }
cmTypeMacro(cmCTestTestCommand, cmCTestHandlerCommand); cmTypeMacro(cmCTestTestCommand, cmCTestHandlerCommand);
protected: protected:
virtual cmCTestGenericHandler* InitializeActualHandler(); virtual cmCTestGenericHandler* InitializeActualHandler();
cmCTestGenericHandler* InitializeHandler(); cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
enum enum
{ {

View File

@ -36,7 +36,7 @@ public:
/** /**
* The main entry point for this class * The main entry point for this class
*/ */
int ProcessHandler(); int ProcessHandler() CM_OVERRIDE;
/** /**
* When both -R and -I are used should te resulting test list be the * When both -R and -I are used should te resulting test list be the
@ -54,7 +54,7 @@ public:
/** /**
* This method is called when reading CTest custom file * This method is called when reading CTest custom file
*/ */
void PopulateCustomVectors(cmMakefile* mf); void PopulateCustomVectors(cmMakefile* mf) CM_OVERRIDE;
///! Control the use of the regular expresisons, call these methods to turn ///! Control the use of the regular expresisons, call these methods to turn
/// them on /// them on
@ -90,7 +90,7 @@ public:
*/ */
bool SetTestsProperties(const std::vector<std::string>& args); bool SetTestsProperties(const std::vector<std::string>& args);
void Initialize(); void Initialize() CM_OVERRIDE;
// NOTE: This struct is Saved/Restored // NOTE: This struct is Saved/Restored
// in cmCTestTestHandler, if you add to this class // in cmCTestTestHandler, if you add to this class

View File

@ -27,7 +27,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestUpdateCommand* ni = new cmCTestUpdateCommand; cmCTestUpdateCommand* ni = new cmCTestUpdateCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -38,12 +38,12 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_update"; } std::string GetName() const CM_OVERRIDE { return "ctest_update"; }
cmTypeMacro(cmCTestUpdateCommand, cmCTestHandlerCommand); cmTypeMacro(cmCTestUpdateCommand, cmCTestHandlerCommand);
protected: protected:
cmCTestGenericHandler* InitializeHandler(); cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
}; };
#endif #endif

View File

@ -29,7 +29,7 @@ public:
/* /*
* The main entry point for this class * The main entry point for this class
*/ */
int ProcessHandler(); int ProcessHandler() CM_OVERRIDE;
cmCTestUpdateHandler(); cmCTestUpdateHandler();
@ -48,7 +48,7 @@ public:
/** /**
* Initialize handler * Initialize handler
*/ */
virtual void Initialize(); void Initialize() CM_OVERRIDE;
private: private:
// Some structures needed for update // Some structures needed for update

View File

@ -30,7 +30,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
cmCTestUploadCommand* ni = new cmCTestUploadCommand; cmCTestUploadCommand* ni = new cmCTestUploadCommand;
ni->CTest = this->CTest; ni->CTest = this->CTest;
@ -41,15 +41,15 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "ctest_upload"; } std::string GetName() const CM_OVERRIDE { return "ctest_upload"; }
cmTypeMacro(cmCTestUploadCommand, cmCTestHandlerCommand); cmTypeMacro(cmCTestUploadCommand, cmCTestHandlerCommand);
protected: protected:
cmCTestGenericHandler* InitializeHandler(); cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
virtual bool CheckArgumentKeyword(std::string const& arg); bool CheckArgumentKeyword(std::string const& arg) CM_OVERRIDE;
virtual bool CheckArgumentValue(std::string const& arg); bool CheckArgumentValue(std::string const& arg) CM_OVERRIDE;
enum enum
{ {

View File

@ -26,14 +26,14 @@ public:
cmTypeMacro(cmCTestUploadHandler, cmCTestGenericHandler); cmTypeMacro(cmCTestUploadHandler, cmCTestGenericHandler);
cmCTestUploadHandler(); cmCTestUploadHandler();
~cmCTestUploadHandler() {} ~cmCTestUploadHandler() CM_OVERRIDE {}
/* /*
* The main entry point for this class * The main entry point for this class
*/ */
int ProcessHandler(); int ProcessHandler() CM_OVERRIDE;
void Initialize(); void Initialize() CM_OVERRIDE;
/** Specify a set of files to submit. */ /** Specify a set of files to submit. */
void SetFiles(cmCTest::SetOfStrings const& files); void SetFiles(cmCTest::SetOfStrings const& files);

View File

@ -28,7 +28,7 @@ public:
protected: protected:
// implement virtual from parent // implement virtual from parent
bool LoadCoverageData(const char* dir); bool LoadCoverageData(const char* dir) CM_OVERRIDE;
// remove files with no coverage // remove files with no coverage
void RemoveUnCoveredFiles(); void RemoveUnCoveredFiles();
// Read a single mcov file // Read a single mcov file

View File

@ -20,7 +20,7 @@ public:
this->CurFileName = ""; this->CurFileName = "";
} }
virtual ~XMLParser() {} ~XMLParser() CM_OVERRIDE {}
protected: protected:
void EndElement(const std::string& name) CM_OVERRIDE void EndElement(const std::string& name) CM_OVERRIDE

View File

@ -28,7 +28,7 @@ public:
protected: protected:
// implement virtual from parent // implement virtual from parent
bool LoadCoverageData(const char* dir); bool LoadCoverageData(const char* dir) CM_OVERRIDE;
// Read a single mcov file // Read a single mcov file
bool ReadMCovFile(const char* f); bool ReadMCovFile(const char* f);
// find out what line in a mumps file (filepath) the given entry point // find out what line in a mumps file (filepath) the given entry point

View File

@ -20,7 +20,7 @@ public:
this->PackageName = ""; this->PackageName = "";
} }
virtual ~XMLParser() {} ~XMLParser() CM_OVERRIDE {}
protected: protected:
void EndElement(const std::string&) CM_OVERRIDE {} void EndElement(const std::string&) CM_OVERRIDE {}

View File

@ -25,7 +25,7 @@ public:
// Handle user input. Called by the container of this widget // Handle user input. Called by the container of this widget
// when this widget has focus. Returns true if the input was // when this widget has focus. Returns true if the input was
// handled. // handled.
virtual bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w); bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
// Description: // Description:
// Set/Get the value (on/off). // Set/Get the value (on/off).

View File

@ -25,7 +25,7 @@ public:
// Handle user input. Called by the container of this widget // Handle user input. Called by the container of this widget
// when this widget has focus. Returns true if the input was // when this widget has focus. Returns true if the input was
// handled. // handled.
virtual bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w); bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
protected: protected:
cmCursesDummyWidget(const cmCursesDummyWidget& from); cmCursesDummyWidget(const cmCursesDummyWidget& from);

View File

@ -21,13 +21,13 @@ class cmCursesLabelWidget : public cmCursesWidget
public: public:
cmCursesLabelWidget(int width, int height, int left, int top, cmCursesLabelWidget(int width, int height, int left, int top,
const std::string& name); const std::string& name);
virtual ~cmCursesLabelWidget(); ~cmCursesLabelWidget() CM_OVERRIDE;
// Description: // Description:
// Handle user input. Called by the container of this widget // Handle user input. Called by the container of this widget
// when this widget has focus. Returns true if the input was // when this widget has focus. Returns true if the input was
// handled // handled
virtual bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w); bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
protected: protected:
cmCursesLabelWidget(const cmCursesLabelWidget& from); cmCursesLabelWidget(const cmCursesLabelWidget& from);

View File

@ -23,16 +23,16 @@ class cmCursesLongMessageForm : public cmCursesForm
public: public:
cmCursesLongMessageForm(std::vector<std::string> const& messages, cmCursesLongMessageForm(std::vector<std::string> const& messages,
const char* title); const char* title);
virtual ~cmCursesLongMessageForm(); ~cmCursesLongMessageForm() CM_OVERRIDE;
// Description: // Description:
// Handle user input. // Handle user input.
virtual void HandleInput(); void HandleInput() CM_OVERRIDE;
// Description: // Description:
// Display form. Use a window of size width x height, starting // Display form. Use a window of size width x height, starting
// at top, left. // at top, left.
virtual void Render(int left, int top, int width, int height); void Render(int left, int top, int width, int height) CM_OVERRIDE;
// Description: // Description:
// This method should normally called only by the form. // This method should normally called only by the form.
@ -42,7 +42,7 @@ public:
// Description: // Description:
// This method should normally called only by the form. // This method should normally called only by the form.
// The only exception is during a resize. // The only exception is during a resize.
virtual void UpdateStatusBar(); void UpdateStatusBar() CM_OVERRIDE;
protected: protected:
cmCursesLongMessageForm(const cmCursesLongMessageForm& from); cmCursesLongMessageForm(const cmCursesLongMessageForm& from);

View File

@ -30,7 +30,7 @@ class cmCursesMainForm : public cmCursesForm
{ {
public: public:
cmCursesMainForm(std::vector<std::string> const& args, int initwidth); cmCursesMainForm(std::vector<std::string> const& args, int initwidth);
virtual ~cmCursesMainForm(); ~cmCursesMainForm() CM_OVERRIDE;
/** /**
* Set the widgets which represent the cache entries. * Set the widgets which represent the cache entries.
@ -40,13 +40,13 @@ public:
/** /**
* Handle user input. * Handle user input.
*/ */
virtual void HandleInput(); void HandleInput() CM_OVERRIDE;
/** /**
* Display form. Use a window of size width x height, starting * Display form. Use a window of size width x height, starting
* at top, left. * at top, left.
*/ */
virtual void Render(int left, int top, int width, int height); void Render(int left, int top, int width, int height) CM_OVERRIDE;
/** /**
* Returns true if an entry with the given key is in the * Returns true if an entry with the given key is in the
@ -67,7 +67,7 @@ public:
* exception is during a resize. The optional argument specifies the * exception is during a resize. The optional argument specifies the
* string to be displayed in the status bar. * string to be displayed in the status bar.
*/ */
virtual void UpdateStatusBar() { this->UpdateStatusBar(0); } void UpdateStatusBar() CM_OVERRIDE { this->UpdateStatusBar(0); }
virtual void UpdateStatusBar(const char* message); virtual void UpdateStatusBar(const char* message);
/** /**
@ -83,7 +83,7 @@ public:
* During a CMake run, an error handle should add errors * During a CMake run, an error handle should add errors
* to be displayed afterwards. * to be displayed afterwards.
*/ */
virtual void AddError(const char* message, const char* title); void AddError(const char* message, const char* title) CM_OVERRIDE;
/** /**
* Used to do a configure. If argument is specified, it does only the check * Used to do a configure. If argument is specified, it does only the check

View File

@ -25,7 +25,7 @@ public:
// Handle user input. Called by the container of this widget // Handle user input. Called by the container of this widget
// when this widget has focus. Returns true if the input was // when this widget has focus. Returns true if the input was
// handled. // handled.
virtual bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w); bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
void SetOption(const std::string&); void SetOption(const std::string&);
void AddOption(std::string const&); void AddOption(std::string const&);
void NextOption(); void NextOption();

View File

@ -23,9 +23,9 @@ public:
* This method is called when different keys are pressed. The * This method is called when different keys are pressed. The
* subclass can have a special implementation handler for this. * subclass can have a special implementation handler for this.
*/ */
virtual void OnTab(cmCursesMainForm* fm, WINDOW* w); void OnTab(cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
virtual void OnReturn(cmCursesMainForm* fm, WINDOW* w); void OnReturn(cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
virtual void OnType(int& key, cmCursesMainForm* fm, WINDOW* w); void OnType(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
protected: protected:
cmCursesPathWidget(const cmCursesPathWidget& from); cmCursesPathWidget(const cmCursesPathWidget& from);

View File

@ -32,14 +32,14 @@ public:
* when this widget has focus. Returns true if the input was * when this widget has focus. Returns true if the input was
* handled. * handled.
*/ */
virtual bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w); bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) CM_OVERRIDE;
/** /**
* Set/Get the string. * Set/Get the string.
*/ */
void SetString(const std::string& value); void SetString(const std::string& value);
const char* GetString(); const char* GetString();
virtual const char* GetValue(); const char* GetValue() CM_OVERRIDE;
/** /**
* Set/Get InEdit flag. Can be used to tell the widget to leave * Set/Get InEdit flag. Can be used to tell the widget to leave
@ -61,7 +61,7 @@ public:
* in the toolbar and return true. Otherwise, return false * in the toolbar and return true. Otherwise, return false
* and the parent widget will print. * and the parent widget will print.
*/ */
virtual bool PrintKeys(); bool PrintKeys() CM_OVERRIDE;
protected: protected:
cmCursesStringWidget(const cmCursesStringWidget& from); cmCursesStringWidget(const cmCursesStringWidget& from);

View File

@ -20,19 +20,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmAddCompileOptionsCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmAddCompileOptionsCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "add_compile_options"; } std::string GetName() const CM_OVERRIDE { return "add_compile_options"; }
cmTypeMacro(cmAddCompileOptionsCommand, cmCommand); cmTypeMacro(cmAddCompileOptionsCommand, cmCommand);
}; };

View File

@ -26,19 +26,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmAddCustomCommandCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmAddCustomCommandCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "add_custom_command"; } std::string GetName() const CM_OVERRIDE { return "add_custom_command"; }
cmTypeMacro(cmAddCustomCommandCommand, cmCommand); cmTypeMacro(cmAddCustomCommandCommand, cmCommand);

View File

@ -27,19 +27,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmAddCustomTargetCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmAddCustomTargetCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "add_custom_target"; } std::string GetName() const CM_OVERRIDE { return "add_custom_target"; }
cmTypeMacro(cmAddCustomTargetCommand, cmCommand); cmTypeMacro(cmAddCustomTargetCommand, cmCommand);
}; };

View File

@ -26,19 +26,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmAddDefinitionsCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmAddDefinitionsCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "add_definitions"; } std::string GetName() const CM_OVERRIDE { return "add_definitions"; }
cmTypeMacro(cmAddDefinitionsCommand, cmCommand); cmTypeMacro(cmAddDefinitionsCommand, cmCommand);
}; };

View File

@ -25,19 +25,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmAddDependenciesCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmAddDependenciesCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "add_dependencies"; } std::string GetName() const CM_OVERRIDE { return "add_dependencies"; }
cmTypeMacro(cmAddDependenciesCommand, cmCommand); cmTypeMacro(cmAddDependenciesCommand, cmCommand);
}; };

View File

@ -26,19 +26,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmAddExecutableCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmAddExecutableCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "add_executable"; } std::string GetName() const CM_OVERRIDE { return "add_executable"; }
cmTypeMacro(cmAddExecutableCommand, cmCommand); cmTypeMacro(cmAddExecutableCommand, cmCommand);
}; };

View File

@ -26,19 +26,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmAddLibraryCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmAddLibraryCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "add_library"; } std::string GetName() const CM_OVERRIDE { return "add_library"; }
cmTypeMacro(cmAddLibraryCommand, cmCommand); cmTypeMacro(cmAddLibraryCommand, cmCommand);
}; };

View File

@ -27,19 +27,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmAddSubDirectoryCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmAddSubDirectoryCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "add_subdirectory"; } std::string GetName() const CM_OVERRIDE { return "add_subdirectory"; }
cmTypeMacro(cmAddSubDirectoryCommand, cmCommand); cmTypeMacro(cmAddSubDirectoryCommand, cmCommand);
}; };

View File

@ -25,19 +25,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmAddTestCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmAddTestCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "add_test"; } std::string GetName() const CM_OVERRIDE { return "add_test"; }
cmTypeMacro(cmAddTestCommand, cmCommand); cmTypeMacro(cmAddTestCommand, cmCommand);

View File

@ -29,19 +29,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmAuxSourceDirectoryCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmAuxSourceDirectoryCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "aux_source_directory"; } std::string GetName() const CM_OVERRIDE { return "aux_source_directory"; }
cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand); cmTypeMacro(cmAuxSourceDirectoryCommand, cmCommand);
}; };

View File

@ -25,24 +25,24 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmBreakCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmBreakCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "break"; } std::string GetName() const CM_OVERRIDE { return "break"; }
cmTypeMacro(cmBreakCommand, cmCommand); cmTypeMacro(cmBreakCommand, cmCommand);
}; };

View File

@ -25,14 +25,14 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmBuildCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmBuildCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The primary command signature with optional, KEYWORD-based args. * The primary command signature with optional, KEYWORD-based args.
@ -47,7 +47,7 @@ public:
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "build_command"; } std::string GetName() const CM_OVERRIDE { return "build_command"; }
cmTypeMacro(cmBuildCommand, cmCommand); cmTypeMacro(cmBuildCommand, cmCommand);

View File

@ -18,11 +18,11 @@ class cmBuildNameCommand : public cmCommand
{ {
public: public:
cmTypeMacro(cmBuildNameCommand, cmCommand); cmTypeMacro(cmBuildNameCommand, cmCommand);
virtual cmCommand* Clone() { return new cmBuildNameCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmBuildNameCommand; }
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
virtual std::string GetName() const { return "build_name"; } std::string GetName() const CM_OVERRIDE { return "build_name"; }
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
}; };
#endif #endif

View File

@ -28,7 +28,7 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() cmCommand* Clone() CM_OVERRIDE
{ {
return new cmCMakeHostSystemInformationCommand; return new cmCMakeHostSystemInformationCommand;
} }
@ -37,18 +37,18 @@ public:
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const std::string GetName() const CM_OVERRIDE
{ {
return "cmake_host_system_information"; return "cmake_host_system_information";
} }

View File

@ -25,24 +25,24 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmCMakeMinimumRequired; } cmCommand* Clone() CM_OVERRIDE { return new cmCMakeMinimumRequired; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "cmake_minimum_required"; } std::string GetName() const CM_OVERRIDE { return "cmake_minimum_required"; }
cmTypeMacro(cmCMakeMinimumRequired, cmCommand); cmTypeMacro(cmCMakeMinimumRequired, cmCommand);

View File

@ -26,24 +26,24 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmCMakePolicyCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmCMakePolicyCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "cmake_policy"; } std::string GetName() const CM_OVERRIDE { return "cmake_policy"; }
cmTypeMacro(cmCMakePolicyCommand, cmCommand); cmTypeMacro(cmCMakePolicyCommand, cmCommand);

View File

@ -29,9 +29,8 @@ public:
std::vector<std::string> const& configurations); std::vector<std::string> const& configurations);
protected: protected:
virtual void GenerateScriptForConfig(std::ostream& os, void GenerateScriptForConfig(std::ostream& os, const std::string& config,
const std::string& config, Indent const& indent) CM_OVERRIDE;
Indent const& indent);
cmLocalGenerator* LG; cmLocalGenerator* LG;
cmInstalledFile const& InstalledFile; cmInstalledFile const& InstalledFile;

View File

@ -45,7 +45,7 @@ public:
/** /**
* Need virtual destructor to destroy real command type. * Need virtual destructor to destroy real command type.
*/ */
virtual ~cmCommand() {} ~cmCommand() CM_OVERRIDE {}
/** /**
* Specify the makefile. * Specify the makefile.

View File

@ -108,8 +108,8 @@ private:
unsigned int DataStart; unsigned int DataStart;
const char* Ignore; const char* Ignore;
cmCAStringVector(); cmCAStringVector();
virtual bool DoConsume(const std::string& arg, unsigned int index); bool DoConsume(const std::string& arg, unsigned int index) CM_OVERRIDE;
virtual void DoReset(); void DoReset() CM_OVERRIDE;
}; };
/** cmCAString is to be used for arguments which consist of one value, /** cmCAString is to be used for arguments which consist of one value,
@ -126,8 +126,8 @@ public:
private: private:
std::string String; std::string String;
unsigned int DataStart; unsigned int DataStart;
virtual bool DoConsume(const std::string& arg, unsigned int index); bool DoConsume(const std::string& arg, unsigned int index) CM_OVERRIDE;
virtual void DoReset(); void DoReset() CM_OVERRIDE;
cmCAString(); cmCAString();
}; };
@ -143,8 +143,8 @@ public:
bool IsEnabled() const { return this->Enabled; } bool IsEnabled() const { return this->Enabled; }
private: private:
bool Enabled; bool Enabled;
virtual bool DoConsume(const std::string& arg, unsigned int index); bool DoConsume(const std::string& arg, unsigned int index) CM_OVERRIDE;
virtual void DoReset(); void DoReset() CM_OVERRIDE;
cmCAEnabler(); cmCAEnabler();
}; };
@ -160,8 +160,8 @@ public:
bool IsEnabled() const { return this->Enabled; } bool IsEnabled() const { return this->Enabled; }
private: private:
bool Enabled; bool Enabled;
virtual bool DoConsume(const std::string& arg, unsigned int index); bool DoConsume(const std::string& arg, unsigned int index) CM_OVERRIDE;
virtual void DoReset(); void DoReset() CM_OVERRIDE;
cmCADisabler(); cmCADisabler();
}; };

View File

@ -19,24 +19,24 @@ class cmConfigureFileCommand : public cmCommand
public: public:
cmTypeMacro(cmConfigureFileCommand, cmCommand); cmTypeMacro(cmConfigureFileCommand, cmCommand);
virtual cmCommand* Clone() { return new cmConfigureFileCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmConfigureFileCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the input file. * the input file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "configure_file"; } std::string GetName() const CM_OVERRIDE { return "configure_file"; }
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
private: private:
int ConfigureFile(); int ConfigureFile();

View File

@ -25,24 +25,24 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmContinueCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmContinueCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "continue"; } std::string GetName() const CM_OVERRIDE { return "continue"; }
cmTypeMacro(cmContinueCommand, cmCommand); cmTypeMacro(cmContinueCommand, cmCommand);
}; };

View File

@ -25,19 +25,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmCreateTestSourceList; } cmCommand* Clone() CM_OVERRIDE { return new cmCreateTestSourceList; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "create_test_sourcelist"; } std::string GetName() const CM_OVERRIDE { return "create_test_sourcelist"; }
cmTypeMacro(cmCreateTestSourceList, cmCommand); cmTypeMacro(cmCreateTestSourceList, cmCommand);
}; };

View File

@ -36,12 +36,12 @@ class cmCryptoHashMD5 : public cmCryptoHash
public: public:
cmCryptoHashMD5(); cmCryptoHashMD5();
~cmCryptoHashMD5(); ~cmCryptoHashMD5() CM_OVERRIDE;
protected: protected:
virtual void Initialize(); void Initialize() CM_OVERRIDE;
virtual void Append(unsigned char const* buf, int sz); void Append(unsigned char const* buf, int sz) CM_OVERRIDE;
virtual std::string Finalize(); std::string Finalize() CM_OVERRIDE;
}; };
#define cmCryptoHash_SHA_CLASS_DECL(SHA) \ #define cmCryptoHash_SHA_CLASS_DECL(SHA) \

View File

@ -17,19 +17,19 @@
class cmDefinePropertyCommand : public cmCommand class cmDefinePropertyCommand : public cmCommand
{ {
public: public:
virtual cmCommand* Clone() { return new cmDefinePropertyCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmDefinePropertyCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the input file. * the input file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "define_property"; } std::string GetName() const CM_OVERRIDE { return "define_property"; }
cmTypeMacro(cmDefinePropertyCommand, cmCommand); cmTypeMacro(cmDefinePropertyCommand, cmCommand);

View File

@ -31,14 +31,13 @@ public:
const std::map<std::string, DependencyVector>* validDeps); const std::map<std::string, DependencyVector>* validDeps);
/** Virtual destructor to cleanup subclasses properly. */ /** Virtual destructor to cleanup subclasses properly. */
virtual ~cmDependsC(); ~cmDependsC() CM_OVERRIDE;
protected: protected:
// Implement writing/checking methods required by superclass. // Implement writing/checking methods required by superclass.
virtual bool WriteDependencies(const std::set<std::string>& sources, bool WriteDependencies(const std::set<std::string>& sources,
const std::string& obj, const std::string& obj, std::ostream& makeDepends,
std::ostream& makeDepends, std::ostream& internalDepends) CM_OVERRIDE;
std::ostream& internalDepends);
// Method to scan a single file. // Method to scan a single file.
void Scan(std::istream& is, const char* directory, void Scan(std::istream& is, const char* directory,

View File

@ -34,7 +34,7 @@ public:
cmDependsFortran(cmLocalGenerator* lg); cmDependsFortran(cmLocalGenerator* lg);
/** Virtual destructor to cleanup subclasses properly. */ /** Virtual destructor to cleanup subclasses properly. */
virtual ~cmDependsFortran(); ~cmDependsFortran() CM_OVERRIDE;
/** Callback from build system after a .mod file has been generated /** Callback from build system after a .mod file has been generated
by a Fortran90 compiler to copy the .mod file to the by a Fortran90 compiler to copy the .mod file to the
@ -48,8 +48,8 @@ public:
protected: protected:
// Finalize the dependency information for the target. // Finalize the dependency information for the target.
virtual bool Finalize(std::ostream& makeDepends, bool Finalize(std::ostream& makeDepends,
std::ostream& internalDepends); std::ostream& internalDepends) CM_OVERRIDE;
// Find all the modules required by the target. // Find all the modules required by the target.
void LocateModules(); void LocateModules();
@ -59,10 +59,9 @@ protected:
bool FindModule(std::string const& name, std::string& module); bool FindModule(std::string const& name, std::string& module);
// Implement writing/checking methods required by superclass. // Implement writing/checking methods required by superclass.
virtual bool WriteDependencies(const std::set<std::string>& sources, bool WriteDependencies(const std::set<std::string>& sources,
const std::string& file, const std::string& file, std::ostream& makeDepends,
std::ostream& makeDepends, std::ostream& internalDepends) CM_OVERRIDE;
std::ostream& internalDepends);
// Actually write the depenencies to the streams. // Actually write the depenencies to the streams.
bool WriteDependenciesReal(const char* obj, cmFortranSourceInfo const& info, bool WriteDependenciesReal(const char* obj, cmFortranSourceInfo const& info,

View File

@ -25,17 +25,16 @@ public:
cmDependsJava(); cmDependsJava();
/** Virtual destructor to cleanup subclasses properly. */ /** Virtual destructor to cleanup subclasses properly. */
virtual ~cmDependsJava(); ~cmDependsJava() CM_OVERRIDE;
protected: protected:
// Implement writing/checking methods required by superclass. // Implement writing/checking methods required by superclass.
virtual bool WriteDependencies(const std::set<std::string>& sources, bool WriteDependencies(const std::set<std::string>& sources,
const std::string& file, const std::string& file, std::ostream& makeDepends,
std::ostream& makeDepends, std::ostream& internalDepends) CM_OVERRIDE;
std::ostream& internalDepends); bool CheckDependencies(
virtual bool CheckDependencies(
std::istream& internalDepends, const char* internalDependsFileName, std::istream& internalDepends, const char* internalDependsFileName,
std::map<std::string, DependencyVector>& validDeps); std::map<std::string, DependencyVector>& validDeps) CM_OVERRIDE;
private: private:
cmDependsJava(cmDependsJava const&); // Purposely not implemented. cmDependsJava(cmDependsJava const&); // Purposely not implemented.

View File

@ -25,24 +25,24 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmElseCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmElseCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "else"; } std::string GetName() const CM_OVERRIDE { return "else"; }
cmTypeMacro(cmElseCommand, cmCommand); cmTypeMacro(cmElseCommand, cmCommand);
}; };

View File

@ -25,24 +25,24 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmElseIfCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmElseIfCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "elseif"; } std::string GetName() const CM_OVERRIDE { return "elseif"; }
cmTypeMacro(cmElseIfCommand, cmCommand); cmTypeMacro(cmElseIfCommand, cmCommand);
}; };

View File

@ -28,19 +28,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmEnableLanguageCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmEnableLanguageCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "enable_language"; } std::string GetName() const CM_OVERRIDE { return "enable_language"; }
cmTypeMacro(cmEnableLanguageCommand, cmCommand); cmTypeMacro(cmEnableLanguageCommand, cmCommand);
}; };

View File

@ -33,19 +33,19 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmEnableTestingCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmEnableTestingCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const&, bool InitialPass(std::vector<std::string> const&,
cmExecutionStatus&); cmExecutionStatus&) CM_OVERRIDE;
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "enable_testing"; } std::string GetName() const CM_OVERRIDE { return "enable_testing"; }
cmTypeMacro(cmEnableTestingCommand, cmCommand); cmTypeMacro(cmEnableTestingCommand, cmCommand);
}; };

View File

@ -25,20 +25,21 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmEndForEachCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmEndForEachCommand; }
/** /**
* Override cmCommand::InvokeInitialPass to get arguments before * Override cmCommand::InvokeInitialPass to get arguments before
* expansion. * expansion.
*/ */
virtual bool InvokeInitialPass(std::vector<cmListFileArgument> const&, bool InvokeInitialPass(std::vector<cmListFileArgument> const&,
cmExecutionStatus&); cmExecutionStatus&) CM_OVERRIDE;
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const&, cmExecutionStatus&) bool InitialPass(std::vector<std::string> const&,
cmExecutionStatus&) CM_OVERRIDE
{ {
return false; return false;
} }
@ -46,12 +47,12 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "endforeach"; } std::string GetName() const CM_OVERRIDE { return "endforeach"; }
cmTypeMacro(cmEndForEachCommand, cmCommand); cmTypeMacro(cmEndForEachCommand, cmCommand);
}; };

View File

@ -25,20 +25,21 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmEndFunctionCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmEndFunctionCommand; }
/** /**
* Override cmCommand::InvokeInitialPass to get arguments before * Override cmCommand::InvokeInitialPass to get arguments before
* expansion. * expansion.
*/ */
virtual bool InvokeInitialPass(std::vector<cmListFileArgument> const&, bool InvokeInitialPass(std::vector<cmListFileArgument> const&,
cmExecutionStatus&); cmExecutionStatus&) CM_OVERRIDE;
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const&, cmExecutionStatus&) bool InitialPass(std::vector<std::string> const&,
cmExecutionStatus&) CM_OVERRIDE
{ {
return false; return false;
} }
@ -46,12 +47,12 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "endfunction"; } std::string GetName() const CM_OVERRIDE { return "endfunction"; }
cmTypeMacro(cmEndFunctionCommand, cmCommand); cmTypeMacro(cmEndFunctionCommand, cmCommand);
}; };

View File

@ -25,24 +25,24 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmEndIfCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmEndIfCommand; }
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const& args, bool InitialPass(std::vector<std::string> const& args,
cmExecutionStatus& status); cmExecutionStatus& status) CM_OVERRIDE;
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "endif"; } std::string GetName() const CM_OVERRIDE { return "endif"; }
cmTypeMacro(cmEndIfCommand, cmCommand); cmTypeMacro(cmEndIfCommand, cmCommand);
}; };

View File

@ -25,20 +25,21 @@ public:
/** /**
* This is a virtual constructor for the command. * This is a virtual constructor for the command.
*/ */
virtual cmCommand* Clone() { return new cmEndMacroCommand; } cmCommand* Clone() CM_OVERRIDE { return new cmEndMacroCommand; }
/** /**
* Override cmCommand::InvokeInitialPass to get arguments before * Override cmCommand::InvokeInitialPass to get arguments before
* expansion. * expansion.
*/ */
virtual bool InvokeInitialPass(std::vector<cmListFileArgument> const&, bool InvokeInitialPass(std::vector<cmListFileArgument> const&,
cmExecutionStatus&); cmExecutionStatus&) CM_OVERRIDE;
/** /**
* This is called when the command is first encountered in * This is called when the command is first encountered in
* the CMakeLists.txt file. * the CMakeLists.txt file.
*/ */
virtual bool InitialPass(std::vector<std::string> const&, cmExecutionStatus&) bool InitialPass(std::vector<std::string> const&,
cmExecutionStatus&) CM_OVERRIDE
{ {
return false; return false;
} }
@ -46,12 +47,12 @@ public:
/** /**
* This determines if the command is invoked when in script mode. * This determines if the command is invoked when in script mode.
*/ */
virtual bool IsScriptable() const { return true; } bool IsScriptable() const CM_OVERRIDE { return true; }
/** /**
* The name of the command as specified in CMakeList.txt. * The name of the command as specified in CMakeList.txt.
*/ */
virtual std::string GetName() const { return "endmacro"; } std::string GetName() const CM_OVERRIDE { return "endmacro"; }
cmTypeMacro(cmEndMacroCommand, cmCommand); cmTypeMacro(cmEndMacroCommand, cmCommand);
}; };

Some files were not shown because too many files have changed in this diff Show More