]> granicus.if.org Git - clang/commit
When suggesting a module import for a #include or #import, suggest the
authorDouglas Gregor <dgregor@apple.com>
Tue, 6 Dec 2011 17:31:28 +0000 (17:31 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 6 Dec 2011 17:31:28 +0000 (17:31 +0000)
commit09833925a3ac68065565e9556d06e9576ec6eaa9
tree7b9df1ff2c7260e6d5139fcec0cbfa2255d6d1d7
parentd620a84a01cc232a9449dbcc2c40bd43ca314fc9
When suggesting a module import for a #include or #import, suggest the
most specific (sub)module based on the actual file we find, rather
than always importing the top-level module. This means
that #include'ing <Foo/Blah.h> should give us the submodule Foo.Blah.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145942 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/HeaderSearch.cpp
test/Modules/auto-module-import.c