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

#include <TUScheduler.h>

Collaboration diagram for clang::clangd::TUScheduler::Options:
Collaboration graph
[legend]

Public Attributes

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

Detailed Description

Definition at line 188 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 193 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 208 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 203 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 196 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 200 of file TUScheduler.h.


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