[PATCH] D65839: [Driver] Add verbatim dry run option
Shoaib Meenai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 6 18:02:37 PDT 2019
smeenai created this revision.
smeenai added reviewers: compnerd, phosek, rnk.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
smeenai added a parent revision: D65838: [Driver] Use enumeration for quoting mode. NFC.
When writing driver tests, it's useful to have a way to output arguments
verbatim (i.e. without any quoting and escaping). For example, on
Windows today, the installation directory is output without backslashes
being escaped, but any -internal-isystem arguments passed by the driver
to the frontend will have backslashes escaped in the -### output, making
it impossible to write a FileCheck match against the installation
directory. Add a new argument to avoid any quoting and escaping to ease
driver testing.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D65839
Files:
clang/include/clang/Driver/Job.h
clang/include/clang/Driver/Options.td
clang/lib/Driver/Driver.cpp
clang/lib/Driver/Job.cpp
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65839.213768.patch
Type: text/x-patch
Size: 5987 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190807/efd113e0/attachment.bin>
More information about the cfe-commits
mailing list