clang-tools  12.0.0git
Public Member Functions | Public Attributes | List of all members
clang::clangd::FuzzyFindRequest Struct Reference

#include <Index.h>

Collaboration diagram for clang::clangd::FuzzyFindRequest:
Collaboration graph
[legend]

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

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.

References clang::clangd::fromJSON().

◆ 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

bool clang::clangd::FuzzyFindRequest::AnyScope = false

If set to true, allow symbols from any scope.

Scopes explicitly listed above will be ranked higher.

Definition at line 39 of file Index.h.

Referenced by clang::clangd::locateSymbolTextually(), clang::clangd::remote::toProtobuf(), and clang::clangd::IncludeFixer::unresolvedNameRecorder().

◆ Limit

llvm::Optional<uint32_t> clang::clangd::FuzzyFindRequest::Limit

The number of top candidates to return.

The index may choose to return more than this, e.g. if it doesn't know which candidates are best.

Definition at line 42 of file Index.h.

Referenced by clang::clangd::MemIndex::fuzzyFind(), clang::clangd::locateSymbolTextually(), operator==(), clang::clangd::remote::toProtobuf(), and clang::clangd::IncludeFixer::unresolvedNameRecorder().

◆ 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 operator==(), and clang::clangd::remote::toProtobuf().

◆ ProximityPaths

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

Contextually relevant files (e.g.

the file we're code-completing in). Paths should be absolute.

Definition at line 47 of file Index.h.

Referenced by clang::clangd::locateSymbolTextually(), operator==(), and clang::clangd::remote::toProtobuf().

◆ Query

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

A query string for the fuzzy find.

This is matched against symbols' un-qualified identifiers and should not contain qualifiers like "::".

Definition at line 29 of file Index.h.

Referenced by clang::clangd::MemIndex::fuzzyFind(), clang::clangd::dex::Dex::fuzzyFind(), clang::clangd::locateSymbolTextually(), operator==(), clang::clangd::remote::toProtobuf(), and clang::clangd::IncludeFixer::unresolvedNameRecorder().

◆ RestrictForCodeCompletion

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

If set to true, only symbols for completion support will be considered.

Definition at line 44 of file Index.h.

Referenced by operator==(), clang::clangd::remote::toProtobuf(), and clang::clangd::IncludeFixer::unresolvedNameRecorder().

◆ 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::locateSymbolTextually(), operator==(), clang::clangd::remote::toProtobuf(), and clang::clangd::IncludeFixer::unresolvedNameRecorder().


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