ClangToolsUtils: Add isVFSOverlaySupported()

Remove ClangToolRunner::supportsVFSOverlay().
Move check for modified document and vfsOverlay into
runner creator method, as it's called in the same cycle just
before the runner is about to be started.

Change-Id: I7a5df71bfa73c350862e4c7f9eae49773b6206b7
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Jarek Kobus
2023-01-11 20:15:33 +01:00
parent 5dec97ea41
commit 64b9728a68
6 changed files with 31 additions and 42 deletions

View File

@@ -7,22 +7,19 @@
#include "clangtoolsdiagnostic.h"
#include "clangtoolsprojectsettings.h"
#include <utils/fileutils.h>
#include <utils/filepath.h>
#include <utils/temporarydirectory.h>
#include <QObject>
#include <QTimer>
namespace Core { class IDocument; }
namespace CppEditor { class ClangDiagnosticConfig; }
namespace TextEditor { class TextEditorWidget; }
namespace ClangTools {
namespace Internal {
class AnalyzeOutputData;
class AnalyzeUnit;
class ClangToolRunner;
class DiagnosticMark;
@@ -49,10 +46,6 @@ private:
bool isSuppressed(const Diagnostic &diagnostic) const;
ClangToolRunner *createRunner(CppEditor::ClangToolType tool, const AnalyzeUnit &unit,
const CppEditor::ClangDiagnosticConfig &config,
const Utils::Environment &env);
QTimer m_runTimer;
Core::IDocument *m_document = nullptr;
Utils::TemporaryDirectory m_temporaryDir;