]> granicus.if.org Git - clang/commit
clang-cl: Various changes to /Zc: handling.
authorNico Weber <nicolasweber@gmx.de>
Tue, 23 Dec 2014 22:55:34 +0000 (22:55 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 23 Dec 2014 22:55:34 +0000 (22:55 +0000)
commit44095a1ae2a99af088f12fa7bfc259ff5abeb03b
treedffd966e2d9cbfcab04aa3ef0648f53db748f1de
parentf370b840369678a94800b417db3dd44d6c5bdf69
clang-cl: Various changes to /Zc: handling.

* /Zc:trigraphs and /Zc:trigraphs- are now honored
* /Zc:strictStrings is now honored
* /Zc:auto is now honored/ignored (clang does the Right Thing for this already)

Also add a dedicated test for the various /Zc: flags.
clang-cl doesn't always agree with cl.exe on the default values for /Zc flags.
For example, I think clang always behaves as if /Zc:inline is passed, and
warns if the user explicitly passes /Zc:inline-

Fixes PR21974.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224791 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/CLCompatOptions.td
test/Driver/cl-options.c
test/Driver/cl-zc.cpp [new file with mode: 0644]