summaryrefslogtreecommitdiffstats
path: root/Source/cmELF.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-06-22 23:02:39 (GMT)
committerBrad King <brad.king@kitware.com>2016-06-27 14:37:41 (GMT)
commit7647f6afa46b6b5020cc1d93b3f75d3358a28f8a (patch)
treedfd7acf9932285277a56c39462d80d8fda0d8655 /Source/cmELF.cxx
parent5286110d6f106e03ee6c5bdeea48d62674656c9f (diff)
downloadCMake-7647f6afa46b6b5020cc1d93b3f75d3358a28f8a.zip
CMake-7647f6afa46b6b5020cc1d93b3f75d3358a28f8a.tar.gz
CMake-7647f6afa46b6b5020cc1d93b3f75d3358a28f8a.tar.bz2
Add CM_OVERRIDE to some functions
Run clang-tidy's modernize-use-override checker. This checker must have issues in version 3.8. It has way too little matches. And it adds override to destructors. Revert the changes on the destructors and change override to CM_OVERRIDE.
Diffstat (limited to 'Source/cmELF.cxx')
-rw-r--r--Source/cmELF.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmELF.cxx b/Source/cmELF.cxx
index c7f8a2d..16294ea 100644
--- a/Source/cmELF.cxx
+++ b/Source/cmELF.cxx
@@ -241,20 +241,20 @@ public:
ByteOrderType order);
// Return the number of sections as specified by the ELF header.
- virtual unsigned int GetNumberOfSections() const
+ unsigned int GetNumberOfSections() const CM_OVERRIDE
{
return static_cast<unsigned int>(this->ELFHeader.e_shnum);
}
// Get the file position and size of a dynamic section entry.
- virtual unsigned int GetDynamicEntryCount();
- virtual unsigned long GetDynamicEntryPosition(int j);
+ unsigned int GetDynamicEntryCount() CM_OVERRIDE;
+ unsigned long GetDynamicEntryPosition(int j) CM_OVERRIDE;
// Lookup a string from the dynamic section with the given tag.
- virtual StringEntry const* GetDynamicSectionString(unsigned int tag);
+ StringEntry const* GetDynamicSectionString(unsigned int tag) CM_OVERRIDE;
// Print information about the ELF file.
- virtual void PrintInfo(std::ostream& os) const
+ void PrintInfo(std::ostream& os) const CM_OVERRIDE
{
os << "ELF " << Types::GetName();
if (this->ByteOrder == ByteOrderMSB) {