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

#include <Index.h>

Public Member Functions

bool operator== (const FuzzyFindRequest &Req) const
bool operator!= (const FuzzyFindRequest &Req) const

Public Attributes

std::string Query
 A query string for the fuzzy find.
std::vector< std::string > Scopes
 If this is non-empty, symbols must be in at least one of the scopes (e.g.
bool AnyScope = false
 If set to true, allow symbols from any scope.
std::optional< uint32_t > Limit
 The number of top candidates to return.
bool RestrictForCodeCompletion = false
 If set to true, only symbols for completion support will be considered.
std::vector< std::string > ProximityPaths
 Contextually relevant files (e.g.
std::vector< std::string > PreferredTypes
 Preferred types of symbols. These are raw representation of OpaqueType.

Detailed Description

Definition at line 26 of file Index.h.

Member Function Documentation

◆ operator!=()

bool clang::clangd::FuzzyFindRequest::operator!= ( const FuzzyFindRequest & Req) const
inline

Definition at line 58 of file Index.h.

◆ operator==()

bool clang::clangd::FuzzyFindRequest::operator== ( const FuzzyFindRequest & Req) const
inline

Definition at line 51 of file Index.h.

References Limit, PreferredTypes, ProximityPaths, Query, RestrictForCodeCompletion, and Scopes.

Member Data Documentation

◆ AnyScope

◆ Limit

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

◆ PreferredTypes

std::vector<std::string> clang::clangd::FuzzyFindRequest::PreferredTypes

Preferred types of symbols. These are raw representation of OpaqueType.

Definition at line 49 of file Index.h.

Referenced by clang::clangd::fromJSON(), clang::clangd::dex::Dex::fuzzyFind(), operator==(), clang::clangd::toJSON(), and clang::clangd::remote::Marshaller::toProtobuf().

◆ ProximityPaths

std::vector<std::string> clang::clangd::FuzzyFindRequest::ProximityPaths

◆ Query

std::string clang::clangd::FuzzyFindRequest::Query

◆ RestrictForCodeCompletion

bool clang::clangd::FuzzyFindRequest::RestrictForCodeCompletion = false

◆ Scopes

std::vector<std::string> clang::clangd::FuzzyFindRequest::Scopes

If this is non-empty, symbols must be in at least one of the scopes (e.g.

namespaces) excluding nested scopes. For example, if a scope "xyz::" is provided, the matched symbols must be defined in namespace xyz but not namespace xyz::abc.

The global scope is "", a top level scope is "foo::", etc.

Definition at line 36 of file Index.h.

Referenced by clang::clangd::fromJSON(), clang::clangd::remote::Marshaller::fromProtobuf(), clang::clangd::dex::Dex::fuzzyFind(), clang::clangd::MemIndex::fuzzyFind(), clang::clangd::getWorkspaceSymbols(), clang::clangd::locateSymbolTextually(), operator==(), clang::clangd::toJSON(), and clang::clangd::remote::Marshaller::toProtobuf().


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