]> granicus.if.org Git - clang/commit
If the headermap maps the filename to a framework include ("Foo.h" -> "Foo/Foo.h"),
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 14 Feb 2014 14:58:28 +0000 (14:58 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 14 Feb 2014 14:58:28 +0000 (14:58 +0000)
commit27203f6279b667044d6d2ec648c5f0392f874893
treef1631a9285bde71869720c53d23283afb79df45d
parenta9352713ff4992a9c9f0f0bb349005ad08196142
If the headermap maps the filename to a framework include ("Foo.h" -> "Foo/Foo.h"),
continue header lookup using the framework include as filename.

This allows us to conveniently treat
  #import "Foo.h"
as an implicit module import if we can resolve "Foo/Foo.h" as such.

rdar://16042979

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201419 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/DirectoryLookup.h
include/clang/Lex/HeaderMap.h
lib/Lex/HeaderMap.cpp
lib/Lex/HeaderSearch.cpp
test/Preprocessor/headermap-rel/Foo.framework/Headers/Foo.h [new file with mode: 0644]
test/Preprocessor/headermap-rel/foo.hmap [new file with mode: 0644]
test/Preprocessor/headermap-rel/headermap-rel.c [new file with mode: 0644]