[PATCH] D71953: [Tooling] Infer driver mode and target for FixedCompilationDatabase
Hanjiang Yu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 28 19:56:46 PST 2019
de1acr0ix updated this revision to Diff 235496.
de1acr0ix added a comment.
Check if argv[0] is an option before inferring - anything starting with dash or slash (but without a second slash) will be treated as compiler option.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71953/new/
https://reviews.llvm.org/D71953
Files:
clang/lib/Tooling/CompilationDatabase.cpp
clang/unittests/Tooling/CompilationDatabaseTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71953.235496.patch
Type: text/x-patch
Size: 4201 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191229/559a4e3c/attachment.bin>
More information about the cfe-commits
mailing list