diff options
author | David Schulz <david.schulz@qt.io> | 2020-07-22 14:52:06 +0200 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2020-08-28 07:20:32 +0000 |
commit | e176958da112984a634b355142cdd5d59a748efc (patch) | |
tree | 388d14991d0bc58ddbf4d6bfe7bd528d95869caa /src/plugins/clangtools/clangtool.cpp | |
parent | 7f562c4d33a042fe51946c273581b2e9ad64159f (diff) | |
download | qt-creator-e176958da112984a634b355142cdd5d59a748efc.tar.gz |
ClangTools: Add automatic clang tool runner for open documents
Fixes: QTCREATORBUG-23349
Change-Id: I81197180c9d69c7df6184f8fcbf05f2256eaf7f6
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/clangtools/clangtool.cpp')
-rw-r--r-- | src/plugins/clangtools/clangtool.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/plugins/clangtools/clangtool.cpp b/src/plugins/clangtools/clangtool.cpp index 49f389b4f2..fde54fe130 100644 --- a/src/plugins/clangtools/clangtool.cpp +++ b/src/plugins/clangtools/clangtool.cpp @@ -376,13 +376,6 @@ static RunSettings runSettings() return ClangToolsSettings::instance()->runSettings(); } -static ClangDiagnosticConfig diagnosticConfig(const Utils::Id &diagConfigId) -{ - const ClangDiagnosticConfigsModel configs = diagnosticConfigsModel(); - QTC_ASSERT(configs.hasConfigWithId(diagConfigId), return ClangDiagnosticConfig()); - return configs.configWithId(diagConfigId); -} - ClangTool *ClangTool::instance() { return s_instance; |