[modules] When constructing paths relative to a module, strip out /./ directory
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 11 Dec 2014 20:50:24 +0000 (20:50 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 11 Dec 2014 20:50:24 +0000 (20:50 +0000)
commit54cc3c2f231846e110dcfbc04ff52f266aa6dfb9
tree40917c9ba0ce4b23b2f98595f012d5ab5d50a332
parent72b05aa59c0268f3404af9c3e61c706d1661fd03
[modules] When constructing paths relative to a module, strip out /./ directory
components. These sometimes get synthetically added, and we don't want -Ifoo
and -I./foo to be treated fundamentally differently here.

llvm-svn: 224055
12 files changed:
clang/include/clang/Basic/FileManager.h
clang/lib/Basic/FileManager.cpp
clang/lib/Frontend/ModuleDependencyCollector.cpp
clang/lib/Lex/HeaderSearch.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/test/Modules/Inputs/dependency-gen-base.modulemap [new file with mode: 0644]
clang/test/Modules/Inputs/dependency-gen-base2.modulemap [new file with mode: 0644]
clang/test/Modules/Inputs/dependency-gen-included.h [new file with mode: 0644]
clang/test/Modules/Inputs/dependency-gen-included2.h [new file with mode: 0644]
clang/test/Modules/Inputs/dependency-gen.h [new file with mode: 0644]
clang/test/Modules/dependency-gen.modulemap.cpp [new file with mode: 0644]
clang/test/Modules/modular_maps.cpp