class Clangc::CompletionResult
CXCompletionResult class and method
Public Instance Methods
Clangc::CompletionResult#completion_string → Clangc::CompetionString
click to toggle source
The code-completion string that describes how to insert this code-completion result into the editing buffer.
VALUE c_CompletionResult_get_completion_string(VALUE self) { CompletionResult_t *c; Data_Get_Struct(self, CompletionResult_t, c); CompletionString_t *cs; VALUE completion_string; R_GET_CLASS_DATA("Clangc", CompletionString, completion_string, cs); cs->data = c->data->CompletionString; cs->parent = self; return completion_string; }
Clangc::CompletionResult#cursor_kind → Clangc::CursorKind
click to toggle source
brief The kind of entity that this completion refers to.
The cursor kind will be a macro, keyword, or a declaration (one of the *Decl cursor kinds), describing the entity that the completion is referring to.
In the future, we would like to provide a full cursor, to allow the client to extract additional information from declaration.
Get
VALUE c_CompletionResult_get_cursor_kind(VALUE self) { CompletionResult_t *c; Data_Get_Struct(self, CompletionResult_t, c); return CUINT_2_NUM(c->data->CursorKind); }