]> granicus.if.org Git - clang/commit
[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)
commit87d8b2e8044fee827b6799d5ad7266f3a5112a38
treec59716ccc6494ab4acac25224b070ff3090b7754
parentd43a004bc92af49358d0b21f8fe01f57c607e147
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346822 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/HeaderSearch.cpp
test/Modules/Inputs/subdirectory-module-maps-working-dir/subdir_module/h1.h [new file with mode: 0644]
test/Modules/Inputs/subdirectory-module-maps-working-dir/subdir_module/module.map [new file with mode: 0644]
test/Modules/subdirectory-module-maps-working-dir.m [new file with mode: 0644]