diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-12-20 00:28:52 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-12-20 00:28:52 +0000 |
commit | 305dc3ebaa0bea5f3b789e4b54afc79c25907615 (patch) | |
tree | dfe626b56bee645cfac86bdb52d0c63bcd2bdb47 /include/clang/Basic/DiagnosticFrontendKinds.td | |
parent | 6446c3e3600032c5f17ca2324a4581b9301afa59 (diff) | |
download | clang-305dc3ebaa0bea5f3b789e4b54afc79c25907615.tar.gz clang-305dc3ebaa0bea5f3b789e4b54afc79c25907615.tar.bz2 clang-305dc3ebaa0bea5f3b789e4b54afc79c25907615.tar.xz |
Detect when mapping a #include/#import over to a submodule ends up
hitting a submodule that was never actually created, e.g., because
that header wasn't parsed. In such cases, complain (because the
module's umbrella headers don't cover everything) and fall back to
including the header.
Later, we'll add a warning at module-build time to catch all such
cases. However, this fallback is important to eliminate assertions in
the ASTWriter when this happens.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/DiagnosticFrontendKinds.td')
-rw-r--r-- | include/clang/Basic/DiagnosticFrontendKinds.td | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticFrontendKinds.td b/include/clang/Basic/DiagnosticFrontendKinds.td index ceef843409..5efba22529 100644 --- a/include/clang/Basic/DiagnosticFrontendKinds.td +++ b/include/clang/Basic/DiagnosticFrontendKinds.td @@ -139,6 +139,8 @@ def err_missing_umbrella_header : Error< def err_no_submodule : Error<"no submodule named %0 in module '%1'">; def err_no_submodule_suggest : Error< "no submodule named %0 in module '%1'; did you mean '%2'?">; +def warn_missing_submodule : Warning<"missing submodule '%0'">, + InGroup<IncompleteUmbrella>; def err_module_map_temp_file : Error< "unable to write temporary module map file '%0'">, DefaultFatal; } |