forked from qt-creator/qt-creator
Clang: Don't analyze same file multiple times
Diagnostics do not depend much on project parts. But having the same file twice can result in duplicated diagnostics which later can cause the same fix-it being applied twice and getting corrupted code. Change-Id: Ie2809af7a54034b05df9383875f7c3123aea58e8 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -333,7 +333,7 @@ void ClangTidyClazyTool::startTool(bool askUserForFileSelection)
|
||||
QTC_ASSERT(project, return);
|
||||
|
||||
const FileInfos fileInfos = collectFileInfos(project, askUserForFileSelection);
|
||||
if (fileInfos.isEmpty())
|
||||
if (fileInfos.empty())
|
||||
return;
|
||||
|
||||
auto clangTool = new ClangTidyClazyRunControl(runControl,
|
||||
|
||||
Reference in New Issue
Block a user