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)
commitd1728f0e5f5f4ab236febf2ae96949a974dca83a
tree75dd4c477c268a22f3537325040402ea2ca734c2
parentc35c10593bacf534ed93081733dddf2c5396b767
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.)

llvm-svn: 264178
clang/lib/Driver/Tools.cpp
clang/test/Driver/Inputs/header0.h [new file with mode: 0644]
clang/test/Driver/Inputs/header4.h [new file with mode: 0644]
clang/test/Driver/cl-pch-showincludes.cpp