Files
qt-creator/src/plugins/clangcodemodel/clangeditordocumentprocessor.h
Christian Kandeler b33b99e2d9 ClangCodeModel: Take changes from header files into account immediately
... in the dependent sources. That's also how the built-in code model
behaves, but clangd itself only does this when a document is saved.

Change-Id: I52d6badb0b7f063e5924c05dbf83a6e9849c9f6f
Reviewed-by: David Schulz <david.schulz@qt.io>
2023-08-22 13:59:04 +00:00

39 lines
1.1 KiB
C++

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <cppeditor/builtineditordocumentprocessor.h>
#include <utils/id.h>
namespace ClangCodeModel {
namespace Internal {
class ClangEditorDocumentProcessor : public CppEditor::BuiltinEditorDocumentProcessor
{
Q_OBJECT
public:
ClangEditorDocumentProcessor(TextEditor::TextDocument *document);
void semanticRehighlight() override;
void setParserConfig(const CppEditor::BaseEditorDocumentParser::Configuration &config) override;
CppEditor::BaseEditorDocumentParser::Configuration parserConfig();
static ClangEditorDocumentProcessor *get(const Utils::FilePath &filePath);
signals:
void parserConfigChanged(const Utils::FilePath &filePath,
const CppEditor::BaseEditorDocumentParser::Configuration &config);
private:
void forceUpdate(TextEditor::TextDocument *doc) override;
TextEditor::TextDocument &m_document;
};
} // namespace Internal
} // namespace ClangCodeModel