]> granicus.if.org Git - clang/commit
[modules] If we import a module, and we've seen a module map that describes the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 6 Dec 2014 03:21:08 +0000 (03:21 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 6 Dec 2014 03:21:08 +0000 (03:21 +0000)
commit7b316696cffa952d8fdf8291021f470c38adf797
tree1a1899a4575687cb44ad4144e4242f553989e6ba
parent2fb9480c2e7382956724d9f6255db075a2134609
[modules] If we import a module, and we've seen a module map that describes the
module, use the path from the module map file in preference to the path from
the .pcm file when resolving relative paths in the .pcm file. This allows
diagnostics (and .d output) to give relative paths if the module was found via
a relative path.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223577 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSerializationKinds.td
lib/Serialization/ASTReader.cpp
test/Modules/Inputs/malformed/c.h [new file with mode: 0644]
test/Modules/Inputs/malformed/module.map
test/Modules/Inputs/relative-dep-gen-1.h [new file with mode: 0644]
test/Modules/Inputs/relative-dep-gen-2.h [new file with mode: 0644]
test/Modules/Inputs/relative-dep-gen.modulemap [new file with mode: 0644]
test/Modules/malformed.cpp
test/Modules/relative-dep-gen.cpp [new file with mode: 0644]
test/Modules/resolution-change.m