]> granicus.if.org Git - clang/commit
clang-cl: Add more tests for the interaction of /FI and /Yc /Yu.
authorNico Weber <nicolasweber@gmx.de>
Wed, 23 Mar 2016 18:17:02 +0000 (18:17 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 23 Mar 2016 18:17:02 +0000 (18:17 +0000)
commitdbb97986fbe4d3f7b1589000fc0d42ffa2ee663f
tree4a8a2f9b31dea273e0cfb10c9152a0b8e9b899d8
parenta47aafa1c126d70005fbacc63daafbc75251d22b
clang-cl: Add more tests for the interaction of /FI and /Yc /Yu.

Most things even work; see the included FIXMEs for things that need polishing.

Also don't warn about unused flags for the `/Yuh2.h /FIh1.h /FIh2.h`.  The
common case is that the pch was built with `/Ych2.h /FIh1.h /FIh2.h`, so h1.h
is in the PCH, and we shouldn't warn about /FIh1.h not having an effect.
(If we wanted to get fancy, we could store the list of -include flags in the
pch and then check that it matches later on.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264178 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/Inputs/header0.h [new file with mode: 0644]
test/Driver/Inputs/header4.h [new file with mode: 0644]
test/Driver/cl-pch-showincludes.cpp