clang-tools 20.0.0git
Public Attributes | List of all members
clang::clangd::TUScheduler::Options Struct Reference

#include <TUScheduler.h>

Public Attributes

unsigned AsyncThreadsCount = getDefaultAsyncThreadsCount()
 Number of concurrent actions.
 
bool StorePreamblesInMemory = false
 Cache (large) preamble data in RAM rather than temporary files on disk.
 
DebouncePolicy UpdateDebounce
 Time to wait after an update to see if another one comes along.
 
ASTRetentionPolicy RetentionPolicy
 Determines when to keep idle ASTs in memory for future use.
 
clangd::PreambleThrottlerPreambleThrottler = nullptr
 This throttler controls which preambles may be built at a given time.
 
std::function< Context(PathRef)> ContextProvider
 Used to create a context that wraps each single operation.
 

Detailed Description

Definition at line 215 of file TUScheduler.h.

Member Data Documentation

◆ AsyncThreadsCount

unsigned clang::clangd::TUScheduler::Options::AsyncThreadsCount = getDefaultAsyncThreadsCount()

Number of concurrent actions.

Governs per-file worker threads and threads spawned for other tasks. (This does not prevent threads being spawned, but rather blocks them). If 0, executes actions synchronously on the calling thread.

Definition at line 220 of file TUScheduler.h.

◆ ContextProvider

std::function<Context(PathRef)> clang::clangd::TUScheduler::Options::ContextProvider

Used to create a context that wraps each single operation.

Typically to inject per-file configuration. If the path is empty, context sholud be "generic".

Definition at line 238 of file TUScheduler.h.

Referenced by clang::clangd::TUScheduler::TUScheduler().

◆ PreambleThrottler

clangd::PreambleThrottler* clang::clangd::TUScheduler::Options::PreambleThrottler = nullptr

This throttler controls which preambles may be built at a given time.

Definition at line 233 of file TUScheduler.h.

◆ RetentionPolicy

ASTRetentionPolicy clang::clangd::TUScheduler::Options::RetentionPolicy

Determines when to keep idle ASTs in memory for future use.

Definition at line 230 of file TUScheduler.h.

◆ StorePreamblesInMemory

bool clang::clangd::TUScheduler::Options::StorePreamblesInMemory = false

Cache (large) preamble data in RAM rather than temporary files on disk.

Definition at line 223 of file TUScheduler.h.

◆ UpdateDebounce

DebouncePolicy clang::clangd::TUScheduler::Options::UpdateDebounce

Time to wait after an update to see if another one comes along.

This tries to ensure we rebuild once the user stops typing.

Definition at line 227 of file TUScheduler.h.


The documentation for this struct was generated from the following file: