summaryrefslogtreecommitdiff
path: root/include/clang/Basic/DiagnosticFrontendKinds.td
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-10-23 06:18:24 +0000
committerDouglas Gregor <dgregor@apple.com>2012-10-23 06:18:24 +0000
commit27ffa6caf965ef20fdef5ae23b81cdc3d05e7afb (patch)
tree33fb976c8d68d2007e18cc34f98e6caaf2df927d /include/clang/Basic/DiagnosticFrontendKinds.td
parent84c3b9745f813a784b5d8ce77f2785750523d9eb (diff)
downloadclang-27ffa6caf965ef20fdef5ae23b81cdc3d05e7afb.tar.gz
clang-27ffa6caf965ef20fdef5ae23b81cdc3d05e7afb.tar.bz2
clang-27ffa6caf965ef20fdef5ae23b81cdc3d05e7afb.tar.xz
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
Diffstat (limited to 'include/clang/Basic/DiagnosticFrontendKinds.td')
-rw-r--r--include/clang/Basic/DiagnosticFrontendKinds.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticFrontendKinds.td b/include/clang/Basic/DiagnosticFrontendKinds.td
index c0099310cb..b7a8476439 100644
--- a/include/clang/Basic/DiagnosticFrontendKinds.td
+++ b/include/clang/Basic/DiagnosticFrontendKinds.td
@@ -58,6 +58,8 @@ def warn_fe_cc_print_header_failure : Warning<
"unable to open CC_PRINT_HEADERS file: %0 (using stderr)">;
def warn_fe_cc_log_diagnostics_failure : Warning<
"unable to open CC_LOG_DIAGNOSTICS file: %0 (using stderr)">;
+def err_fe_no_pch_in_dir : Error<
+ "no suitable precompiled header file found in directory '%0'">;
def warn_fe_serialized_diag_failure : Warning<
"unable to open file %0 for serializing diagnostics (%1)">,