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

Describes the context used to evaluate configuration fragments. More...

#include <ConfigProvider.h>

Collaboration diagram for clang::clangd::config::Params:
Collaboration graph
[legend]

Public Attributes

llvm::StringRef Path
 Absolute path to a source file we're applying the config to. More...
 
std::chrono::steady_clock::time_point FreshTime
 Hint that stale data is OK to improve performance (e.g. More...
 

Detailed Description

Describes the context used to evaluate configuration fragments.

Definition at line 35 of file ConfigProvider.h.

Member Data Documentation

◆ FreshTime

std::chrono::steady_clock::time_point clang::clangd::config::Params::FreshTime
Initial value:
=
std::chrono::steady_clock::time_point::max()

Hint that stale data is OK to improve performance (e.g.

avoid IO). FreshTime sets a bound for how old the data can be. By default, providers should validate caches against the data source.

Definition at line 42 of file ConfigProvider.h.

◆ Path

llvm::StringRef clang::clangd::config::Params::Path

Absolute path to a source file we're applying the config to.

Unix slashes. Empty if not configuring a particular file.

Definition at line 38 of file ConfigProvider.h.

Referenced by clang::clangd::config::Provider::getConfig().


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