clang-tools 20.0.0git
Public Attributes | List of all members
clang::clangd::SymbolRelevanceSignals::DerivedSignals Struct Reference

Set of derived signals computed by calculateDerivedSignals(). More...

#include <Quality.h>

Public Attributes

bool NameMatchesContext = false
 Whether Name contains some word from context.
 
unsigned FileProximityDistance = FileDistance::Unreachable
 Min distance between SymbolURI and all the headers included by the TU.
 
unsigned ScopeProximityDistance = FileDistance::Unreachable
 Min distance between SymbolScope and all the available scopes.
 

Detailed Description

Set of derived signals computed by calculateDerivedSignals().

Must not be set explicitly.

Definition at line 152 of file Quality.h.

Member Data Documentation

◆ FileProximityDistance

unsigned clang::clangd::SymbolRelevanceSignals::DerivedSignals::FileProximityDistance = FileDistance::Unreachable

Min distance between SymbolURI and all the headers included by the TU.

Definition at line 156 of file Quality.h.

Referenced by clang::clangd::SymbolRelevanceSignals::calculateDerivedSignals(), clang::clangd::SymbolRelevanceSignals::evaluateHeuristics(), and clang::clangd::operator<<().

◆ NameMatchesContext

bool clang::clangd::SymbolRelevanceSignals::DerivedSignals::NameMatchesContext = false

Whether Name contains some word from context.

Definition at line 154 of file Quality.h.

Referenced by clang::clangd::SymbolRelevanceSignals::calculateDerivedSignals(), and clang::clangd::SymbolRelevanceSignals::evaluateHeuristics().

◆ ScopeProximityDistance

unsigned clang::clangd::SymbolRelevanceSignals::DerivedSignals::ScopeProximityDistance = FileDistance::Unreachable

Min distance between SymbolScope and all the available scopes.

Definition at line 158 of file Quality.h.

Referenced by clang::clangd::SymbolRelevanceSignals::calculateDerivedSignals(), clang::clangd::SymbolRelevanceSignals::evaluateHeuristics(), and clang::clangd::operator<<().


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