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>
This commit is contained in:
Christian Kandeler
2023-08-22 14:10:22 +02:00
parent 73c5cf29c4
commit b33b99e2d9
13 changed files with 82 additions and 1 deletions

View File

@@ -22,7 +22,6 @@ public:
void setParserConfig(const CppEditor::BaseEditorDocumentParser::Configuration &config) override;
CppEditor::BaseEditorDocumentParser::Configuration parserConfig();
public:
static ClangEditorDocumentProcessor *get(const Utils::FilePath &filePath);
signals:
@@ -30,6 +29,8 @@ signals:
const CppEditor::BaseEditorDocumentParser::Configuration &config);
private:
void forceUpdate(TextEditor::TextDocument *doc) override;
TextEditor::TextDocument &m_document;
};