llvm-project/clang-tools-extra/clangd/tool
Sam McCall 127a1492d7 [clangd] Add command-line flag to set background indexing thread priority.
This is a followup to D124715, which changed the default, and it anticipates
future patches raising the priority of Low (which is currently equal to
Background on Windows & Linux).
The main point is to allow users to restore the old behavior, which e.g.
allows efficiency cores to remain idle.

I did consider making this a config setting, this is a more complicated change:
 - needs to touch queue priorities as well as thread priorities
 - we don't know the priority until evaluating the config inside the task
 - users would want the ability to prioritize background indexing tasks relative
   to each other without necessarily affecting thread priority, so using one
   option for both may be confusing
I don't really have a use case, so I prefer the simpler thing.

Differential Revision: https://reviews.llvm.org/D125673
2022-05-17 20:17:07 +02:00
..
CMakeLists.txt [clangd] CMake: express -Iclangd/ at top level and inherit 2021-07-02 09:52:36 +02:00
Check.cpp Add documentHighlight in clangd check for performance measurements. 2022-05-16 20:22:36 +02:00
ClangdMain.cpp [clangd] Add command-line flag to set background indexing thread priority. 2022-05-17 20:17:07 +02:00