================
@@ -72,6 +73,19 @@ static std::optional<size_t> GetCursorPos(StringRef text, 
uint32_t line,
   return cursor_pos;
 }
 
+static size_t GetPartialTokenCodeUnits(StringRef line, size_t cursor_pos) {
+  line = line.substr(0, cursor_pos);
+  const size_t idx = line.rfind(' ');
+
+  const size_t byte_offset = (idx == StringRef::npos) ? 0 : idx + 1;
+  const StringRef byte_token = line.substr(byte_offset);
+  llvm::SmallVector<UTF16, 20> utf16_token;
----------------
ashgti wrote:

nit: we can drop `llvm::`

https://github.com/llvm/llvm-project/pull/177151
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to