forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user