]> granicus.if.org Git - clang/commit
Support -fno-delayed-template-parsing in clang-cl.exe
authorReid Kleckner <rnk@google.com>
Wed, 4 Jan 2017 19:15:53 +0000 (19:15 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 4 Jan 2017 19:15:53 +0000 (19:15 +0000)
commit05ecdd8f6d4e81cbaba629f51d0524a5f6abcdc1
tree5bda479dc3fef1c448741d12217672179ff77850
parente56476ec9f6434799e170ac6c0b242dbd67fce89
Support -fno-delayed-template-parsing in clang-cl.exe

Summary:
This change adds support for the -fno-delayed-template-parsing option in
clang-cl.exe. This allows developers using clang-cl.exe to opt out of
emulation of MSVC's non-conformant template instantiation implementation
while continuing to use clang-cl.exe for its emulation of cl.exe
command-line options. The default behavior of clang-cl.exe
(-fdelayed-template-parsing) is unchanged.

The MSVC Standard Library implementation uses clang-cl.exe with this
switch in its tests to ensure that the library headers work on compilers
with the conformant two-phase-lookup behavior.

Reviewers: majnemer, cfe-commits, DaveBartolomeo

Differential Revision: https://reviews.llvm.org/D22275

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290990 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
test/Driver/cl-options.c