clang-tools 20.0.0git
Public Attributes | Static Public Attributes | List of all members
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

SymbolID clang::clangd::ContainedRefsRequest::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::MergedIndex::containedRefs(), clang::clangd::dex::Dex::containedRefs(), clang::clangd::MemIndex::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: