[HeaderSearch] loadSubdirectoryModuleMaps should respect -working-directory
authorAlex Lorenz <arphaman@gmail.com>
Wed, 14 Nov 2018 01:08:03 +0000 (01:08 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 14 Nov 2018 01:08:03 +0000 (01:08 +0000)
commit7d76ef9b3d3e0aacd3bc5d067d29a09a1ceb8fdf
treefba1c139a935174711d2c0125a41e899cf295380
parent6bdabcf368f4c6526cfb3af49c03a98d680b8e8f
[HeaderSearch] loadSubdirectoryModuleMaps should respect -working-directory

Include search paths can be relative paths. The loadSubdirectoryModuleMaps function
should account for that and respect the -working-directory parameter given to Clang.

rdar://46045849

Differential Revision: https://reviews.llvm.org/D54503

llvm-svn: 346822
clang/lib/Lex/HeaderSearch.cpp
clang/test/Modules/Inputs/subdirectory-module-maps-working-dir/subdir_module/h1.h [new file with mode: 0644]
clang/test/Modules/Inputs/subdirectory-module-maps-working-dir/subdir_module/module.map [new file with mode: 0644]
clang/test/Modules/subdirectory-module-maps-working-dir.m [new file with mode: 0644]