[PATCH] D46652: [clang-cl, PCH] Implement support for MS-style PCH through headers
Mike Rice via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 9 11:12:47 PDT 2018
mikerice created this revision.
mikerice added reviewers: rnk, thakis, erichkeane, cfe-commits.
Implement support for MS-style PCH through headers.
This enables support for /Yc and /Yu where the through header is either
on the command line or included in the source. It replaces the current
support the requires the header also be specified with /FI.
This change adds a -cc1 option -pch-through-header that is used to either
start or stop compilation during PCH create or use.
When creating a PCH, the compilation ends after compilation of the through
header.
When using a PCH, tokens are skipped until after the through header is seen.
Repository:
rC Clang
https://reviews.llvm.org/D46652
Files:
include/clang/Basic/DiagnosticLexKinds.td
include/clang/Driver/CC1Options.td
include/clang/Frontend/FrontendOptions.h
include/clang/Lex/Preprocessor.h
include/clang/Lex/PreprocessorOptions.h
lib/Driver/Driver.cpp
lib/Driver/ToolChains/Clang.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Lex/PPDirectives.cpp
lib/Lex/PPLexerChange.cpp
lib/Lex/Preprocessor.cpp
lib/Parse/ParseAST.cpp
lib/Serialization/ASTReader.cpp
test/Driver/cl-pch-search.cpp
test/Driver/cl-pch.cpp
test/PCH/Inputs/pch-through-use0.cpp
test/PCH/Inputs/pch-through-use1.cpp
test/PCH/Inputs/pch-through-use2.cpp
test/PCH/Inputs/pch-through1.h
test/PCH/Inputs/pch-through2.h
test/PCH/Inputs/pch-through3.h
test/PCH/Inputs/pch-through4.h
test/PCH/pch-through.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46652.145956.patch
Type: text/x-patch
Size: 32446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180509/db4a3403/attachment-0001.bin>
More information about the cfe-commits
mailing list