]> granicus.if.org Git - clang/commit
If the precompiled header named by "-include" is actually a directory,
authorDouglas Gregor <dgregor@apple.com>
Tue, 23 Oct 2012 06:18:24 +0000 (06:18 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 23 Oct 2012 06:18:24 +0000 (06:18 +0000)
commit27ffa6caf965ef20fdef5ae23b81cdc3d05e7afb
tree33fb976c8d68d2007e18cc34f98e6caaf2df927d
parent84c3b9745f813a784b5d8ce77f2785750523d9eb
If the precompiled header named by "-include" is actually a directory,
check each of the files within that directory to determine if any of
them is an AST file that matches the language and target options. If
so, the first matching AST file is loaded. This fixes a longstanding
discrepency with GCC's precompiled header implementation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166469 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticFrontendKinds.td
include/clang/Serialization/ASTReader.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/FrontendAction.cpp
lib/Serialization/ASTReader.cpp
test/PCH/badpch.c
test/PCH/pch-dir.c [new file with mode: 0644]
test/PCH/pch-dir.h [new file with mode: 0644]