From 876cd8e9755aff5bb69264f9aa0c5210b23b3920 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 25 Jun 2021 17:40:20 +0200 Subject: 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 --- src/plugins/cpptools/cppcodemodelsettings.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/cpptools/cppcodemodelsettings.h') 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; } -- cgit v1.2.1