]> granicus.if.org Git - clang/commit
[clang-cl, PCH] Support for /Yc and /Yu without filename and #pragma hdrstop
authorMike Rice <michael.p.rice@intel.com>
Tue, 11 Sep 2018 17:10:44 +0000 (17:10 +0000)
committerMike Rice <michael.p.rice@intel.com>
Tue, 11 Sep 2018 17:10:44 +0000 (17:10 +0000)
commit3886719cbbfb304f2eb93fba42b904959a8e77c3
tree9f43b1ea80ad36a744d8179a60271e184b2e043c
parent0a8a76da18b28bea9500c5f4539fe9c65075b4ac
[clang-cl, PCH] Support for /Yc and /Yu without filename and #pragma hdrstop

With clang-cl, when the user specifies /Yc or /Yu without a filename
the compiler uses a #pragma hdrstop in the main source file to
determine the end of the PCH. If a header is specified with /Yc or
/Yu #pragma hdrstop has no effect.

The optional #pragma hdrstop filename argument is not yet supported.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341963 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
docs/ReleaseNotes.rst
include/clang/Basic/DiagnosticDriverKinds.td
include/clang/Basic/DiagnosticLexKinds.td
include/clang/Driver/CC1Options.td
include/clang/Lex/Preprocessor.h
include/clang/Lex/PreprocessorOptions.h
lib/Driver/Driver.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Lex/PPDirectives.cpp
lib/Lex/Pragma.cpp
lib/Lex/Preprocessor.cpp
lib/Parse/ParseAST.cpp
test/Driver/cl-pch.cpp
test/PCH/Inputs/pch-hdrstop-use.cpp [new file with mode: 0644]
test/PCH/Inputs/pch-no-hdrstop-use.cpp [new file with mode: 0644]
test/PCH/pch-hdrstop-err.cpp [new file with mode: 0644]
test/PCH/pch-hdrstop-warn.cpp [new file with mode: 0644]
test/PCH/pch-hdrstop.cpp [new file with mode: 0644]
test/PCH/pch-no-hdrstop.cpp [new file with mode: 0644]