Preparing for the cl::opt reset fix proposed on D115433 this patch fixes the dexp tool to preserve its three command line options (IndexLocation, ExecCommand, ProjectRoot) from reset that is done before parsing query options.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I took your names from https://reviews.llvm.org/D105959 which affected Dexp.cpp and was related to cl::opt.
Ok, I will shoot in the dark once more :)
Comment Actions
Thank you!
clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp | ||
---|---|---|
417 | nit: comment echoes the code, say why instead? Preserve global options when flag parser is reset, so commands can use them. |
clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp | ||
---|---|---|
418 | also nit: /*initial=*/ true. same below |
nit: comment echoes the code, say why instead?
Preserve global options when flag parser is reset, so commands can use them.