diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2022-12-07 14:49:35 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-12-15 14:22:30 +0000 |
commit | 8b49b091f7148a077e291e0bd65801870ed74d53 (patch) | |
tree | d69b039ed538549777abf3792416b68e44603ba9 /src/plugins/clangtools/clangtoolruncontrol.h | |
parent | ca6b14cf01dbe180faf89f23fd35578de8387557 (diff) |
ClangTools: Run clang-tidy and clazy separately
They are two different tools and should not have been merged into a
single runner in the first place.
People can now actively decide to run clazy if they really want to,
rather than getting confronted with its increasingly irrelevant
complaints by default.
We keep the common settings widget for now.
Change-Id: I3c2b1db8c07ff5c128700d4a1deefd710967568a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/clangtools/clangtoolruncontrol.h')
-rw-r--r-- | src/plugins/clangtools/clangtoolruncontrol.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/clangtools/clangtoolruncontrol.h b/src/plugins/clangtools/clangtoolruncontrol.h index 549e901e90..68bfffb932 100644 --- a/src/plugins/clangtools/clangtoolruncontrol.h +++ b/src/plugins/clangtools/clangtoolruncontrol.h @@ -19,7 +19,7 @@ namespace ClangTools { namespace Internal { - +class ClangTool; class ClangToolRunner; class ProjectBuilder; @@ -46,7 +46,8 @@ class ClangToolRunWorker : public ProjectExplorer::RunWorker Q_OBJECT public: - ClangToolRunWorker(ProjectExplorer::RunControl *runControl, + ClangToolRunWorker(ClangTool *tool, + ProjectExplorer::RunControl *runControl, const RunSettings &runSettings, const CppEditor::ClangDiagnosticConfig &diagnosticConfig, const FileInfos &fileInfos, @@ -85,6 +86,7 @@ private: void finalize(); private: + ClangTool * const m_tool; RunSettings m_runSettings; CppEditor::ClangDiagnosticConfig m_diagnosticConfig; FileInfos m_fileInfos; |