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

#include <CodeComplete.h>

Collaboration diagram for clang::clangd::CodeCompletion:
Collaboration graph


struct  IncludeCandidate
struct  Scores

Public Member Functions

CompletionItem render (const CodeCompleteOptions &) const

Public Attributes

std::string Name
std::string Scope
std::string RequiredQualifier
std::string Signature
std::string SnippetSuffix
std::string ReturnType
llvm::Optional< markup::DocumentDocumentation
CompletionItemKind Kind = CompletionItemKind::Missing
unsigned BundleSize = 1
SymbolOrigin Origin = SymbolOrigin::Unknown
llvm::SmallVector< IncludeCandidate, 1 > Includes
std::vector< TextEditFixIts
 Holds information about small corrections that needs to be done. More...
Range CompletionTokenRange
 Holds the range of the token we are going to replace with this completion. More...
Scores Score
bool Deprecated = false
 Indicates if this item is deprecated. More...

Detailed Description

Definition at line 159 of file CodeComplete.h.

Member Function Documentation

◆ render()

CompletionItem clang::clangd::CodeCompletion::render ( const CodeCompleteOptions Opts) const

Definition at line 2093 of file CodeComplete.cpp.

Member Data Documentation

◆ BundleSize

unsigned clang::clangd::CodeCompletion::BundleSize = 1

Definition at line 184 of file CodeComplete.h.

◆ CompletionTokenRange

Range clang::clangd::CodeCompletion::CompletionTokenRange

Holds the range of the token we are going to replace with this completion.

Definition at line 206 of file CodeComplete.h.

◆ Deprecated

bool clang::clangd::CodeCompletion::Deprecated = false

Indicates if this item is deprecated.

Definition at line 232 of file CodeComplete.h.

◆ Documentation

llvm::Optional<markup::Document> clang::clangd::CodeCompletion::Documentation

Definition at line 174 of file CodeComplete.h.

◆ FixIts

std::vector<TextEdit> clang::clangd::CodeCompletion::FixIts

Holds information about small corrections that needs to be done.

Like converting '->' to '.' on member access.

Definition at line 203 of file CodeComplete.h.

◆ Includes

llvm::SmallVector<IncludeCandidate, 1> clang::clangd::CodeCompletion::Includes

Definition at line 199 of file CodeComplete.h.

◆ Kind

CompletionItemKind clang::clangd::CodeCompletion::Kind = CompletionItemKind::Missing

Definition at line 175 of file CodeComplete.h.

◆ Name

std::string clang::clangd::CodeCompletion::Name

Definition at line 161 of file CodeComplete.h.

◆ Origin

SymbolOrigin clang::clangd::CodeCompletion::Origin = SymbolOrigin::Unknown

Definition at line 185 of file CodeComplete.h.

◆ RequiredQualifier

std::string clang::clangd::CodeCompletion::RequiredQualifier

Definition at line 166 of file CodeComplete.h.

◆ ReturnType

std::string clang::clangd::CodeCompletion::ReturnType

Definition at line 172 of file CodeComplete.h.

◆ Scope

std::string clang::clangd::CodeCompletion::Scope

Definition at line 164 of file CodeComplete.h.

◆ Score

Scores clang::clangd::CodeCompletion::Score

Definition at line 229 of file CodeComplete.h.

◆ Signature

std::string clang::clangd::CodeCompletion::Signature

Definition at line 168 of file CodeComplete.h.

◆ SnippetSuffix

std::string clang::clangd::CodeCompletion::SnippetSuffix

Definition at line 170 of file CodeComplete.h.

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