clang-tools 22.0.0git
clang::clangd::ContainedRefsRequest Struct Reference

#include <Index.h>

Public Attributes

SymbolID ID
std::optional< uint32_t > Limit
 If set, limit the number of refers returned from the index.

Static Public Attributes

static const RefKind SupportedRefKinds = RefKind::Call
 Note that RefKind::Call just restricts the matched SymbolKind to functions, not the form of the reference (e.g.

Detailed Description

Definition at line 80 of file Index.h.

Member Data Documentation

◆ ID

◆ Limit

std::optional<uint32_t> clang::clangd::ContainedRefsRequest::Limit

If set, limit the number of refers returned from the index.

The index may choose to return less than this, e.g. it tries to avoid returning stale results.

Definition at line 90 of file Index.h.

Referenced by clang::clangd::dex::Dex::containedRefs(), clang::clangd::MemIndex::containedRefs(), clang::clangd::MergedIndex::containedRefs(), clang::clangd::remote::Marshaller::fromProtobuf(), and clang::clangd::remote::Marshaller::toProtobuf().

◆ SupportedRefKinds

const RefKind clang::clangd::ContainedRefsRequest::SupportedRefKinds = RefKind::Call
static

Note that RefKind::Call just restricts the matched SymbolKind to functions, not the form of the reference (e.g.

address-of-function, which can indicate an indirect call, should still be caught).

Definition at line 84 of file Index.h.

Referenced by clang::clangd::MemIndex::containedRefs().


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