Add final specifies to classes

Warning -Wfinal-dtor-non-final-class in clang trunk

Change-Id: I2bf17064bf8898eab10b82b69583a283157766d0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Igor Sidorov
2020-01-29 04:15:25 +03:00
parent aeb7ef6b37
commit a9e40ad14c
65 changed files with 67 additions and 67 deletions

View File

@@ -51,7 +51,7 @@ class CMakeBuildConfiguration;
class CMakeBuildSystem;
class CMakeProjectNode;
class BuildDirManager : public QObject
class BuildDirManager final : public QObject
{
Q_OBJECT

View File

@@ -42,7 +42,7 @@ class BuildDirManager;
class CMakeBuildSystem;
class CMakeBuildSettingsWidget;
class CMakeBuildConfiguration : public ProjectExplorer::BuildConfiguration
class CMakeBuildConfiguration final : public ProjectExplorer::BuildConfiguration
{
Q_OBJECT

View File

@@ -46,7 +46,7 @@ class CMakeBuildConfiguration;
// CMakeBuildSystem:
// --------------------------------------------------------------------
class CMakeBuildSystem : public ProjectExplorer::BuildSystem
class CMakeBuildSystem final : public ProjectExplorer::BuildSystem
{
Q_OBJECT

View File

@@ -111,7 +111,7 @@ void CMakeEditor::contextHelp(const HelpCallback &callback) const
// CMakeEditorWidget
//
class CMakeEditorWidget : public TextEditorWidget
class CMakeEditorWidget final : public TextEditorWidget
{
public:
~CMakeEditorWidget() final = default;

View File

@@ -39,7 +39,7 @@
namespace CMakeProjectManager {
class CMAKE_EXPORT CMakeProject : public ProjectExplorer::Project
class CMAKE_EXPORT CMakeProject final : public ProjectExplorer::Project
{
Q_OBJECT

View File

@@ -237,7 +237,7 @@ public:
std::vector<FileApiDetails::TargetDetails> targetDetails;
};
class FileApiParser : public QObject
class FileApiParser final : public QObject
{
Q_OBJECT

View File

@@ -45,7 +45,7 @@ namespace Internal {
class FileApiQtcData;
class FileApiReader : public BuildDirReader
class FileApiReader final : public BuildDirReader
{
Q_OBJECT

View File

@@ -41,7 +41,7 @@ namespace Utils { class QtcProcess; }
namespace CMakeProjectManager {
namespace Internal {
class ServerMode : public QObject
class ServerMode final : public QObject
{
Q_OBJECT

View File

@@ -38,7 +38,7 @@ namespace ProjectExplorer { class ProjectNode; }
namespace CMakeProjectManager {
namespace Internal {
class ServerModeReader : public BuildDirReader
class ServerModeReader final : public BuildDirReader
{
Q_OBJECT

View File

@@ -37,7 +37,7 @@ namespace Utils { class QtcProcess; }
namespace CMakeProjectManager {
namespace Internal {
class TeaLeafReader : public BuildDirReader
class TeaLeafReader final : public BuildDirReader
{
Q_OBJECT