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

#include <Index.h>

Public Attributes

llvm::DenseSet< SymbolIDIDs
RefKind Filter = RefKind::All
std::optional< uint32_t > Limit
 If set, limit the number of refers returned from the index.
bool WantContainer = false
 If set, populates the container of the reference.

Detailed Description

Definition at line 68 of file Index.h.

Member Data Documentation

◆ Filter

◆ IDs

◆ Limit

std::optional<uint32_t> clang::clangd::RefsRequest::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 74 of file Index.h.

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

◆ WantContainer

bool clang::clangd::RefsRequest::WantContainer = false

If set, populates the container of the reference.

Index implementations may chose to populate containers no matter what.

Definition at line 77 of file Index.h.

Referenced by clang::clangd::remote::Marshaller::fromProtobuf(), clang::clangd::incomingCalls(), and clang::clangd::remote::Marshaller::toProtobuf().


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