ClangToolsUtils: Reuse ClangToolType enum

Change-Id: Iee95a014d634a99c6e10582f8e942a12ebf1bd74
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Jarek Kobus
2023-01-10 16:36:59 +01:00
parent 0ba3dbf1be
commit c4882a5a7a
8 changed files with 46 additions and 69 deletions

View File

@@ -203,12 +203,13 @@ static VersionAndSuffix getVersionNumber(VersionAndSuffix &version, const FilePa
VersionAndSuffix ClangToolsSettings::clangTidyVersion()
{
return getVersionNumber(instance()->m_clangTidyVersion, Internal::clangTidyExecutable());
return getVersionNumber(instance()->m_clangTidyVersion,
Internal::toolExecutable(ClangToolType::Tidy));
}
QVersionNumber ClangToolsSettings::clazyVersion()
{
return ClazyStandaloneInfo::getInfo(Internal::clazyStandaloneExecutable()).version;
return ClazyStandaloneInfo::getInfo(Internal::toolExecutable(ClangToolType::Clazy)).version;
}
} // namespace Internal