mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-27 15:28:53 -04:00

One of the -Wincomplete-umbrella warnings diagnoses when a header is present in the directory but it's not present in the umbrella header. Currently, this warning only happens on top level modules; any submodule using an umbrella header does not get this warning. Fix that by also considering the submodules. Differential Revision: https://reviews.llvm.org/D32576 rdar://problem/22623686 llvm-svn: 301597
16 lines
497 B
Objective-C
16 lines
497 B
Objective-C
// RUN: rm -rf %t
|
|
// RUN: not %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F%S/Inputs/incomplete-umbrella -fsyntax-only %s 2>&1 | FileCheck %s
|
|
|
|
#import <Foo/Foo.h>
|
|
#import <Foo/Bar.h>
|
|
#import <Foo/Baz.h>
|
|
@import Foo.Private;
|
|
|
|
// CHECK: warning: umbrella header for module 'Foo' does not include header 'Bar.h'
|
|
// CHECK: warning: umbrella header for module 'Foo.Private' does not include header 'Baz.h'
|
|
int foo() {
|
|
int a = BAR_PUBLIC;
|
|
int b = BAZ_PRIVATE;
|
|
return 0;
|
|
}
|