clang-tools 22.0.0git
clang::clangd::config::Fragment::IndexBlock Struct Reference

Controls how clangd understands code outside the current file. More...

#include <ConfigFragment.h>

Classes

struct  ExternalBlock
 An external index uses data source outside of clangd itself. More...

Public Attributes

std::optional< Located< std::string > > Background
 Whether files are built in the background to produce a project index.
std::optional< Located< ExternalBlock > > External
std::optional< Located< bool > > StandardLibrary

Detailed Description

Controls how clangd understands code outside the current file.

clangd's indexes provide information about symbols that isn't available to clang's parser, such as incoming references.

Definition at line 187 of file ConfigFragment.h.

Member Data Documentation

◆ Background

std::optional<Located<std::string> > clang::clangd::config::Fragment::IndexBlock::Background

Whether files are built in the background to produce a project index.

This is checked for translation units only, not headers they include. Legal values are "Build" or "Skip".

Definition at line 191 of file ConfigFragment.h.

◆ External

std::optional<Located<ExternalBlock> > clang::clangd::config::Fragment::IndexBlock::External

Definition at line 210 of file ConfigFragment.h.

◆ StandardLibrary

std::optional<Located<bool> > clang::clangd::config::Fragment::IndexBlock::StandardLibrary

Definition at line 213 of file ConfigFragment.h.


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