]> granicus.if.org Git - clang/commit
Rather than rejecting attempts to run preprocessor-only actions on AST files,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 5 Jun 2017 18:10:11 +0000 (18:10 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 5 Jun 2017 18:10:11 +0000 (18:10 +0000)
commit1a6f43b655762d6b70594e47013ad8f14a12480d
tree7896058bd19ac7d824a1e20992fc6a9e8adb3b9d
parentffdad0d2b5776a6741ca9d26401e7f72c99949b3
Rather than rejecting attempts to run preprocessor-only actions on AST files,
replay the steps taken to create the AST file with the preprocessor-only action
installed to produce preprocessed output.

This can be used to produce the preprocessed text for an existing .pch or .pcm
file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304726 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.h
include/clang/Basic/SourceManager.h
include/clang/Frontend/ASTUnit.h
include/clang/Frontend/FrontendAction.h
lib/Basic/SourceManager.cpp
lib/Frontend/ASTUnit.cpp
lib/Frontend/FrontendAction.cpp
lib/Serialization/ASTReader.cpp
test/Modules/preprocess-module.cpp