Home
last modified time | relevance | path

Searched refs:cursor_pos (Results 1 – 10 of 10) sorted by relevance

/external/llvm-project/lldb/unittests/Utility/
DCompletionRequestTest.cpp16 const unsigned cursor_pos = 3; in TEST() local
21 CompletionRequest request(command, cursor_pos, result); in TEST()
26 EXPECT_EQ(request.GetRawCursorPos(), cursor_pos); in TEST()
37 const unsigned cursor_pos = command.size(); in TEST() local
40 CompletionRequest request(command, cursor_pos, result); in TEST()
44 EXPECT_EQ(request.GetRawCursorPos(), cursor_pos); in TEST()
90 const unsigned cursor_pos = 3; in TEST() local
95 CompletionRequest request(command, cursor_pos, result); in TEST()
100 EXPECT_EQ(request.GetRawCursorPos(), cursor_pos); in TEST()
112 EXPECT_EQ(request.GetRawCursorPos(), cursor_pos); in TEST()
[all …]
/external/llvm-project/lldb/source/Core/
DHighlighter.cpp30 llvm::Optional<size_t> cursor_pos, in Highlight() argument
34 if (!cursor_pos || *cursor_pos >= line.size()) { in Highlight()
43 size_t column = *cursor_pos; in Highlight()
75 llvm::Optional<size_t> cursor_pos, in Highlight() argument
78 Highlight(options, line, cursor_pos, previous_lines, s); in Highlight()
/external/llvm-project/lldb/test/API/commands/expression/completion/
DTestExprCompletion.py225 def assume_no_completions(self, str_input, cursor_pos = None): argument
228 if cursor_pos is None:
229 cursor_pos = len(str_input)
230 num_matches = interp.HandleCompletion(str_input, cursor_pos, 0, -1, match_strings)
/external/llvm-project/lldb/include/lldb/Core/
DHighlighter.h115 llvm::Optional<size_t> cursor_pos,
120 llvm::Optional<size_t> cursor_pos,
131 llvm::Optional<size_t> cursor_pos,
/external/llvm-project/lldb/bindings/interface/
DSBCommandInterpreter.i152 uint32_t cursor_pos,
159 uint32_t cursor_pos,
/external/llvm-project/lldb/source/Plugins/Language/ClangCommon/
DClangHighlighter.cpp134 llvm::Optional<size_t> cursor_pos, in Highlight() argument
234 if (cursor_pos && end > *cursor_pos && !highlighted_cursor) { in Highlight()
DClangHighlighter.h27 llvm::Optional<size_t> cursor_pos,
/external/llvm-project/lldb/source/Commands/
DCommandObjectExpression.cpp310 unsigned cursor_pos = request.GetRawCursorPos(); in HandleCompletion() local
332 if (cursor_pos < raw_start) in HandleCompletion()
336 assert(cursor_pos >= raw_start); in HandleCompletion()
337 cursor_pos -= raw_start; in HandleCompletion()
348 expr->Complete(exe_ctx, request, cursor_pos); in HandleCompletion()
/external/llvm-project/lldb/include/lldb/API/
DSBCommandInterpreter.h190 int HandleCompletion(const char *current_line, uint32_t cursor_pos,
202 uint32_t cursor_pos,
/external/llvm-project/lldb/source/API/
DSBCommandInterpreter.cpp319 const char *current_line, uint32_t cursor_pos, int match_start_point, in HandleCompletionWithDescriptions() argument
326 current_line, cursor_pos, match_start_point, in HandleCompletionWithDescriptions()
329 const char *cursor = current_line + cursor_pos; in HandleCompletionWithDescriptions()
337 uint32_t cursor_pos, in HandleCompletion() argument
343 current_line, cursor_pos, match_start_point, in HandleCompletion()
346 const char *cursor = current_line + cursor_pos; in HandleCompletion()