[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)
commit223d3f2e4d49c52b0b5516f001d1827c6e55d44b
tree6dd167c06ef5d45dfde2115046f74e9f3c353d5b
parente7633631e1f10de34484d65a009256217bbb5cc8
[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.

llvm-svn: 223577
clang/include/clang/Basic/DiagnosticSerializationKinds.td
clang/lib/Serialization/ASTReader.cpp
clang/test/Modules/Inputs/malformed/c.h [new file with mode: 0644]
clang/test/Modules/Inputs/malformed/module.map
clang/test/Modules/Inputs/relative-dep-gen-1.h [new file with mode: 0644]
clang/test/Modules/Inputs/relative-dep-gen-2.h [new file with mode: 0644]
clang/test/Modules/Inputs/relative-dep-gen.modulemap [new file with mode: 0644]
clang/test/Modules/malformed.cpp
clang/test/Modules/relative-dep-gen.cpp [new file with mode: 0644]
clang/test/Modules/resolution-change.m