clang-tools 20.0.0git
|
#include <CodeComplete.h>
Classes | |
struct | IncludeCandidate |
struct | Scores |
Public Member Functions | |
CompletionItem | render (const CodeCompleteOptions &) const |
Public Attributes | |
std::string | Name |
std::string | FilterText |
std::string | Scope |
std::string | RequiredQualifier |
std::string | Signature |
std::string | SnippetSuffix |
std::string | ReturnType |
std::optional< markup::Document > | Documentation |
CompletionItemKind | Kind = CompletionItemKind::Missing |
unsigned | BundleSize = 1 |
SymbolOrigin | Origin = SymbolOrigin::Unknown |
llvm::SmallVector< IncludeCandidate, 1 > | Includes |
std::vector< TextEdit > | FixIts |
Holds information about small corrections that needs to be done. | |
Range | CompletionTokenRange |
Holds the range of the token we are going to replace with this completion. | |
Scores | Score |
bool | Deprecated = false |
Indicates if this item is deprecated. | |
Definition at line 162 of file CodeComplete.h.
CompletionItem clang::clangd::CodeCompletion::render | ( | const CodeCompleteOptions & | Opts | ) | const |
Definition at line 2316 of file CodeComplete.cpp.
References clang::clangd::CompletionItem::additionalTextEdits, clang::clangd::markup::Document::addParagraph(), clang::clangd::markup::Document::append(), clang::clangd::markup::Paragraph::appendCode(), clang::clangd::markup::Paragraph::appendText(), clang::clangd::Deprecated, clang::clangd::CompletionItem::deprecated, clang::clangd::CompletionItem::detail, clang::clangd::CompletionItem::documentation, clang::clangd::CompletionItem::filterText, FixIt, clang::clangd::CompletionItem::insertText, clang::clangd::CompletionItem::insertTextFormat, Kind, clang::clangd::CompletionItem::kind, clang::clangd::CompletionItem::label, clang::clangd::CompletionItem::labelDetails, Name, ReturnType, clang::clangd::CompletionItem::score, Score, Signature, SnippetSuffix, clang::clangd::CompletionItem::sortText, clang::clangd::sortText(), and clang::clangd::CompletionItem::textEdit.
unsigned clang::clangd::CodeCompletion::BundleSize = 1 |
Definition at line 191 of file CodeComplete.h.
Range clang::clangd::CodeCompletion::CompletionTokenRange |
Holds the range of the token we are going to replace with this completion.
Definition at line 213 of file CodeComplete.h.
Referenced by clang::clangd::codeCompleteComment().
bool clang::clangd::CodeCompletion::Deprecated = false |
Indicates if this item is deprecated.
Definition at line 239 of file CodeComplete.h.
std::optional<markup::Document> clang::clangd::CodeCompletion::Documentation |
Definition at line 181 of file CodeComplete.h.
std::string clang::clangd::CodeCompletion::FilterText |
Definition at line 168 of file CodeComplete.h.
Referenced by clang::clangd::codeCompleteComment().
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 210 of file CodeComplete.h.
llvm::SmallVector<IncludeCandidate, 1> clang::clangd::CodeCompletion::Includes |
Definition at line 206 of file CodeComplete.h.
CompletionItemKind clang::clangd::CodeCompletion::Kind = CompletionItemKind::Missing |
Definition at line 182 of file CodeComplete.h.
Referenced by clang::clangd::codeCompleteComment().
std::string clang::clangd::CodeCompletion::Name |
Definition at line 164 of file CodeComplete.h.
Referenced by clang::clangd::codeCompleteComment().
SymbolOrigin clang::clangd::CodeCompletion::Origin = SymbolOrigin::Unknown |
Definition at line 192 of file CodeComplete.h.
Referenced by clang::clangd::codeCompleteComment().
std::string clang::clangd::CodeCompletion::RequiredQualifier |
Definition at line 173 of file CodeComplete.h.
std::string clang::clangd::CodeCompletion::ReturnType |
Definition at line 179 of file CodeComplete.h.
std::string clang::clangd::CodeCompletion::Scope |
Definition at line 171 of file CodeComplete.h.
Scores clang::clangd::CodeCompletion::Score |
Definition at line 236 of file CodeComplete.h.
std::string clang::clangd::CodeCompletion::Signature |
Definition at line 175 of file CodeComplete.h.
std::string clang::clangd::CodeCompletion::SnippetSuffix |
Definition at line 177 of file CodeComplete.h.