[Lldb-commits] [PATCH] D74798: [lldb-vscode] Use libOption with tablegen to parse command line options.

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 19 10:38:08 PST 2020


clayborg added a comment.

In D74798#1883015 <https://reviews.llvm.org/D74798#1883015>, @JDevlieghere wrote:

> In D74798#1882994 <https://reviews.llvm.org/D74798#1882994>, @ivanhernandez13 wrote:
>
> > I added the test file but atm the two existing arguments (--wait-for-debugger and --port) will cause lldb-vscode to hang and await some sort of action from an external process causing the test runner to hang. I added a single test case for handling an invalid port since that will cause the process to exit immediately but not certain on how to handle the other cases.
>
>
> I think for these particular cases it's sufficient to check the help output and make sure the flags are there.


yeah just test for the options themselves in the help output. --wait-for-debugger is only when you need to debug lldb-vscode's initial packets with a debugger, so it is not a user facing argument. We might choose to hide this option by default. I know LLVM option parsing can do this.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74798





More information about the lldb-commits mailing list