[Lldb-commits] [PATCH] D73506: Bug fix

Héctor Luis Díaz Aceves via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 27 13:57:29 PST 2020


diazhector98 created this revision.
diazhector98 added a reviewer: wallace.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
diazhector98 planned changes to this revision.
diazhector98 marked 5 inline comments as done.
diazhector98 added inline comments.


================
Comment at: lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/completions/TestVSCode_completions.py:122
+        self.verify_completions(
+            self.vscode.get_completions("foo1.v"),
+            [
----------------
also test this

foo.var1 + var2

foo.var1 + va
  var2
  var1


================
Comment at: lldb/tools/lldb-vscode/lldb-vscode.cpp:956
+
+    std::vector<std::string> breakpoints = {".", "->"};
+    int max_breakpoint_position = -1;
----------------
commit_points


================
Comment at: lldb/tools/lldb-vscode/lldb-vscode.cpp:958
+    int max_breakpoint_position = -1;
+    std::string breakpoint_string = "";
+    for (std::string breakpoint : breakpoints){
----------------
int breakpoint_index = -1


================
Comment at: lldb/tools/lldb-vscode/lldb-vscode.cpp:959
+    std::string breakpoint_string = "";
+    for (std::string breakpoint : breakpoints){
+      int breakpoint_position = match.rfind(breakpoint);
----------------
space before {


================
Comment at: lldb/tools/lldb-vscode/lldb-vscode.cpp:966
+    }
+    if (max_breakpoint_position != -1){
+      std::string cut_match = match.substr(max_breakpoint_position + breakpoint_string.length(), match.length() - max_breakpoint_position);
----------------
space before {




TODO


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73506

Files:
  lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/completions/TestVSCode_completions.py
  lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/completions/main.cpp
  lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
  lldb/tools/lldb-vscode/lldb-vscode.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73506.240677.patch
Type: text/x-patch
Size: 4401 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200127/312602d4/attachment.bin>


More information about the lldb-commits mailing list