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. Make this argument output to stdout instead of stderr to
avoid needing 2>&1 in all the driver tests.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 36289 Build 36288: arc lint + arc unit
Event Timeline
Comment Actions
I'm not tied to the name -###-verbatim and am open to suggestions if anyone can think of something better.
My troll suggestion was -####, but @compnerd didn't like that for some reason...
clang/include/clang/Driver/Options.td | ||
---|---|---|
333 | What about -print-raw-commands? |
Comment Actions
One thing I (a zsh user) feel inconvenient about -### is that.......
% echo -### zsh: bad pattern: -### % echo '-###' -###
What about -print-raw-commands?