clang-tools  11.0.0
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:
[legend]

Public Attributes

llvm::StringRef Path
 Absolute path to a source file we're applying the config to. More...
 
llvm::Optional< 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 34 of file ConfigProvider.h.

Member Data Documentation

◆ FreshTime

llvm::Optional<std::chrono::steady_clock::time_point> clang::clangd::config::Params::FreshTime

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

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

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

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


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