ClangTools: Use resource dir from tool instead of hard-coded one

This makes it more likely that using other clang-tidy and clazy binaries
than the ones shipped with Qt Creator will work.

Done-with: Nikolai Kosjar
Fixes: QTCREATORBUG-23672
Change-Id: I8c44e037ca8d50505fe10032034edaf4f408d52c
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Nikolai Kosjar
2020-05-29 15:46:26 +02:00
committed by Christian Kandeler
parent 119a3c1ce9
commit 8cb74f88f9
4 changed files with 72 additions and 10 deletions

View File

@@ -93,7 +93,8 @@ private:
QList<RunnerCreator> runnerCreators();
template <class T> ClangToolRunner *createRunner();
AnalyzeUnits unitsToAnalyze();
AnalyzeUnits unitsToAnalyze(const Utils::FilePath &clangResourceDir,
const QString &clangVersion);
void analyzeNextFile();
void handleFinished();