]> granicus.if.org Git - clang/commit
Improve the error message when a PCH dependency is modified
authorBen Langmuir <blangmuir@apple.com>
Fri, 17 Jan 2014 00:19:09 +0000 (00:19 +0000)
committerBen Langmuir <blangmuir@apple.com>
Fri, 17 Jan 2014 00:19:09 +0000 (00:19 +0000)
commit6dcb0eb4ef117927890fa09e1100c85ad0ace72b
treec6fbd5990983ba859b4cf3eac916db6eadba095c
parent7095c767d444b4444563213f6882b28014c2e60e
Improve the error message when a PCH dependency is modified

Show the top-level pch file as the culprit, rather than the immediate
dependency when a pch file imports a pcm from a module. To clarify the
relationship, the pch import stack is printed as notes. The old behaviour was
misleading when a pch imported a pcm (from a module), since removing the pcm
would not fix the problem, whereas rebuilding the pch would.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199446 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSerializationKinds.td
lib/Serialization/ASTReader.cpp
test/PCH/modified-module-dependency.m [new file with mode: 0644]
test/PCH/modified-module-dependency.module.map [new file with mode: 0644]