diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-06-25 17:40:20 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-06-28 10:35:06 +0000 |
commit | 876cd8e9755aff5bb69264f9aa0c5210b23b3920 (patch) | |
tree | 200ad6fb4b424afd4eb63de581ec5696c355e831 /src/plugins/cpptools/cppcodemodelsettings.h | |
parent | ba138a185534269f6a6f32088965b12cbb898337 (diff) | |
download | qt-creator-876cd8e9755aff5bb69264f9aa0c5210b23b3920.tar.gz |
Clangd: Allow to switch off background indexing
It is conceivable that users don't want to spend the extra CPU time on
this.
Change-Id: Ic3611c8d17d201ae986fad08b344369a8728ce1b
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppcodemodelsettings.h')
-rw-r--r-- | src/plugins/cpptools/cppcodemodelsettings.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppcodemodelsettings.h b/src/plugins/cpptools/cppcodemodelsettings.h index a84d20186f..4cc37a0dcb 100644 --- a/src/plugins/cpptools/cppcodemodelsettings.h +++ b/src/plugins/cpptools/cppcodemodelsettings.h @@ -103,6 +103,7 @@ public: { public: bool useClangd = false; + bool enableIndexing = true; Utils::FilePath executableFilePath; }; @@ -110,6 +111,7 @@ public: static void setDefaultClangdPath(const Utils::FilePath &filePath); static Utils::FilePath clangdFilePath(); + static bool indexingEnabled() { return instance().m_data.enableIndexing; } static void setData(const Data &data); static Data data() { return instance().m_data; } |