clang-tools 20.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>

Public Attributes

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

Detailed Description

Describes the context used to evaluate configuration fragments.

Definition at line 33 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 40 of file ConfigProvider.h.

Referenced by clang::clangd::ClangdServer::createConfiguredContextProvider(), clang::clangd::config::Provider::fromAncestorRelativeYAMLFiles(), and clang::clangd::config::Provider::fromYAMLFile().

◆ 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 36 of file ConfigProvider.h.

Referenced by clang::clangd::ClangdServer::createConfiguredContextProvider(), clang::clangd::config::Provider::fromAncestorRelativeYAMLFiles(), and clang::clangd::config::Provider::getConfig().


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