clang-tools  14.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
clang::clangd::SymbolQualitySignals Struct Reference

Attributes of a symbol that affect how much we like it. More...

#include <Quality.h>

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

Public Types

enum  SymbolCategory {
  Unknown = 0, Variable, Macro, Type,
  Function, Constructor, Destructor, Namespace,
  Keyword, Operator
}
 

Public Member Functions

void merge (const CodeCompletionResult &SemaCCResult)
 
void merge (const Symbol &IndexResult)
 
float evaluateHeuristics () const
 

Public Attributes

bool Deprecated = false
 
bool ReservedName = false
 
bool ImplementationDetail = false
 
unsigned References = 0
 
enum clang::clangd::SymbolQualitySignals::SymbolCategory Category = Unknown
 

Detailed Description

Attributes of a symbol that affect how much we like it.

Definition at line 58 of file Quality.h.

Member Enumeration Documentation

◆ SymbolCategory

Enumerator
Unknown 
Variable 
Macro 
Type 
Function 
Constructor 
Destructor 
Namespace 
Keyword 
Operator 

Definition at line 65 of file Quality.h.

Member Function Documentation

◆ evaluateHeuristics()

float clang::clangd::SymbolQualitySignals::evaluateHeuristics ( ) const

◆ merge() [1/2]

void clang::clangd::SymbolQualitySignals::merge ( const CodeCompletionResult &  SemaCCResult)

◆ merge() [2/2]

void clang::clangd::SymbolQualitySignals::merge ( const Symbol IndexResult)

Member Data Documentation

◆ Category

enum clang::clangd::SymbolQualitySignals::SymbolCategory clang::clangd::SymbolQualitySignals::Category = Unknown

◆ Deprecated

bool clang::clangd::SymbolQualitySignals::Deprecated = false

Definition at line 59 of file Quality.h.

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

◆ ImplementationDetail

bool clang::clangd::SymbolQualitySignals::ImplementationDetail = false

Definition at line 62 of file Quality.h.

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

◆ References

unsigned clang::clangd::SymbolQualitySignals::References = 0

Definition at line 63 of file Quality.h.

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

◆ ReservedName

bool clang::clangd::SymbolQualitySignals::ReservedName = false

Definition at line 60 of file Quality.h.

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


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