diff options
| author | Christian Kandeler <christian.kandeler@qt.io> | 2022-01-18 12:29:12 +0100 |
|---|---|---|
| committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-01-24 12:46:29 +0000 |
| commit | cfae24a6e5281799abb2e8e01900667005cf30b0 (patch) | |
| tree | d10352a4454e556874dea5d5143c662b7dfa5a31 /src/plugins/cppeditor/cppcodemodelsettings.cpp | |
| parent | 13af635b5ef35096b3bf423a8e120a7e3e2d966a (diff) | |
| download | qt-creator-cfae24a6e5281799abb2e8e01900667005cf30b0.tar.gz | |
ClangCodeModel: Enable clangd's new "dirty headers" flag, if possible
This feature will be availabe with LLVM 14,
see https://reviews.llvm.org/D95046.
Task-number: QTCREATORBUG-26810
Change-Id: I0a6797a836c56f5b72cca34be8f2d3edf8ac7359
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppcodemodelsettings.cpp')
| -rw-r--r-- | src/plugins/cppeditor/cppcodemodelsettings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppcodemodelsettings.cpp b/src/plugins/cppeditor/cppcodemodelsettings.cpp index d0bdb9b184..ef5c5fb10a 100644 --- a/src/plugins/cppeditor/cppcodemodelsettings.cpp +++ b/src/plugins/cppeditor/cppcodemodelsettings.cpp @@ -335,7 +335,7 @@ ClangdSettings::ClangdSettings() bool ClangdSettings::useClangd() const { - return m_data.useClangd && clangdVersion(clangdFilePath()) >= QVersionNumber(13); + return m_data.useClangd && clangdVersion() >= QVersionNumber(13); } void ClangdSettings::setDefaultClangdPath(const FilePath &filePath) |
