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

RefKind clang::clangd::RefsRequest::Filter = RefKind::All

◆ IDs

llvm::DenseSet<SymbolID> clang::clangd::RefsRequest::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::MergedIndex::refs(), clang::clangd::dex::Dex::refs(), clang::clangd::MemIndex::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: