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