Without this, e.g. "lldb -p $(pidof process)" simply starts if there's no process.
Code pretty much copied from Clang's CompilerInvocation::CreateFromArgs().
Details
Details
- Reviewers
JDevlieghere - Group Reviewers
Restricted Project - Commits
- rG77d5a63c191c: [lldb] report an error if a CLI option lacks an argument
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for fixing this. I do have a few comments but the logic looks good.
lldb/test/Shell/Driver/TestError.test | ||
---|---|---|
2 | Since there's only one prefix to check you can omit --check-prefix ARGMISSING and just use CHECK as the prefix on the next line. | |
lldb/tools/driver/Driver.cpp | ||
873 | Let's move this and the next line out of check here and below the check for unknown options, so that the user gets to see both errors at once. That way we also don't have to duplicate the error message. |
Since there's only one prefix to check you can omit --check-prefix ARGMISSING and just use CHECK as the prefix on the next line.