[PATCH] D51391: [clang-cl,PCH] Add support for #pragma hdrstop

Mike Rice via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 28 16:56:36 PDT 2018


mikerice created this revision.
mikerice added reviewers: thakis, hans.

With clang-cl, when the user specifies /Yc or /Yu without a header
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 filename argument is not yet supported.


https://reviews.llvm.org/D51391

Files:
  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
  test/PCH/Inputs/pch-no-hdrstop-use.cpp
  test/PCH/pch-hdrstop-err.cpp
  test/PCH/pch-hdrstop-warn.cpp
  test/PCH/pch-hdrstop.cpp
  test/PCH/pch-no-hdrstop.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51391.162987.patch
Type: text/x-patch
Size: 25625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180828/871cae47/attachment-0001.bin>


More information about the cfe-commits mailing list