Solves this issue: https://github.com/clangd/clangd/issues/157
This is my first contribution to an llvm project, so I hope I'm doing it right!
Differential D73453
Preserve -nostdinc and --sysroot when calling query driver topisani on Jan 27 2020, 2:14 AM. Authored by
Details Solves this issue: https://github.com/clangd/clangd/issues/157 This is my first contribution to an llvm project, so I hope I'm doing it right!
Diff Detail Event TimelineComment Actions Hi @topisani, thanks for working on clangd! Yes that bug fell through the cracks since the logs proposed in the comments were not making use of -query-driver option. Do you mind adding some logs to the bug report, without your patch so that we can clearly see its effect. Initially we left it out, because it is always hairy to parse command line options textually, and also kind of unclear why clang wouldn't pick it up itself once you have isysroot or sysroot set, with extra logs we can be sure there are We also need some tests, could you add some to test/system-include-extractor.test ?
Comment Actions Addressed CR comments I'm not sure about the tests, I basically just added to the one test that already exists that it passes one of each "type" of preservable argument. Comment Actions tests look good, but please upload the logs to the bug report for investigation.
Comment Actions Address CR Comments I couldn't think of a good way to check for --sysroot /my/sysroot in the test in posix shell, so i hope the grep usage is OK.
Comment Actions it seems like the last diff is same as the previous one, maybe you've uploaded the wrong diff ? |
s/auto/llvm::StringRef
same for the other two lambdas below