[Lldb-commits] [PATCH] D76968: [lldb-vscode] Correctly return source mapped breakpoints for setBreakpoints request

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 30 22:55:07 PDT 2020


clayborg added a comment.

Looks good as long as with we have "llvm::Optional<llvm::StringRef> request_path = {}" in the arguments for a function, that "{}" will turn into llvm::None and not an empty StringRef? Unclear to me. As long as this is what is happening and as long is this coding convention is used elsewhere in llvm (using "{}" instead of "llvm::None") I am ok. Pavel?



================
Comment at: lldb/tools/lldb-vscode/JSONUtils.h:204
+void AppendBreakpoint(lldb::SBBreakpoint &bp, llvm::json::Array &breakpoints,
+                      llvm::Optional<llvm::StringRef> request_path = {});
 
----------------
s/{}/llvm::None/ if {} doesn't construct to llvm::None?


================
Comment at: lldb/tools/lldb-vscode/JSONUtils.h:222
+CreateBreakpoint(lldb::SBBreakpoint &bp,
+                 llvm::Optional<llvm::StringRef> request_path = {});
 
----------------
s/{}/llvm::None/ if {} doesn't construct to llvm::None


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76968/new/

https://reviews.llvm.org/D76968





More information about the lldb-commits mailing list