Make module use diagnostics refer to the top-level module
authorDaniel Jasper <djasper@google.com>
Sat, 24 Feb 2018 06:54:09 +0000 (06:54 +0000)
committerDaniel Jasper <djasper@google.com>
Sat, 24 Feb 2018 06:54:09 +0000 (06:54 +0000)
commit4ea330c8c37ca1cd7f1c60332452e252e335511c
tree9bbebae0183eba771cf6592229d849800d3871a3
parent5dc6ca8e5bdc5552349989349718dd0fe7b05d6a
Make module use diagnostics refer to the top-level module

All use declarations need to be directly placed in the top-level module
anyway, knowing the submodule doesn't really help. The header that has
the offending #include can easily be seen in the diagnostics source
location.

Review: https://reviews.llvm.org/D43673
llvm-svn: 326023
clang/lib/Lex/ModuleMap.cpp
clang/test/Modules/Inputs/declare-use/h.h