summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-23 00:23:59 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-23 00:23:59 +0000
commitfe76cfd89c37d53ce3e207b61003638522440eae (patch)
treecfc2ad2c2b53229f33dd17bc717ac20776e28e92 /clang/test
parent1a74de95040808c0063fe3a73cd78ca5ba6c815c (diff)
downloadbcm5719-llvm-fe76cfd89c37d53ce3e207b61003638522440eae.tar.gz
bcm5719-llvm-fe76cfd89c37d53ce3e207b61003638522440eae.zip
When building a module with an umbrella header, warn about any headers
found within that umbrella directory that were not actually included by the umbrella header. They should either be referenced in the module map or included by the umbrella header. llvm-svn: 147207
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Modules/Inputs/Module.framework/Headers/Module.h2
-rw-r--r--clang/test/Modules/on-demand-build.m8
2 files changed, 7 insertions, 3 deletions
diff --git a/clang/test/Modules/Inputs/Module.framework/Headers/Module.h b/clang/test/Modules/Inputs/Module.framework/Headers/Module.h
index be88bb5adc2..3d10112e554 100644
--- a/clang/test/Modules/Inputs/Module.framework/Headers/Module.h
+++ b/clang/test/Modules/Inputs/Module.framework/Headers/Module.h
@@ -1,3 +1,5 @@
+// expected-warning{{umbrella header}}
+
#ifndef MODULE_H
#define MODULE_H
const char *getModuleVersion(void);
diff --git a/clang/test/Modules/on-demand-build.m b/clang/test/Modules/on-demand-build.m
index 7843014453b..644519b9728 100644
--- a/clang/test/Modules/on-demand-build.m
+++ b/clang/test/Modules/on-demand-build.m
@@ -1,13 +1,15 @@
// RUN: rm -rf %t
-// RUN: %clang_cc1 -fno-objc-infer-related-result-type -Werror -fmodule-cache-path %t -F %S/Inputs -verify %s
-// RUN: %clang_cc1 -fno-objc-infer-related-result-type -Werror -x objective-c++ -fmodule-cache-path %t -F %S/Inputs -verify %s
-// RUN: %clang_cc1 -fno-objc-infer-related-result-type -Werror -fmodule-cache-path %t -F %S/Inputs -verify %s
+// RUN: %clang_cc1 -fno-objc-infer-related-result-type -Werror -Wno-error=incomplete-umbrella -fmodule-cache-path %t -F %S/Inputs -verify %s
+// RUN: %clang_cc1 -fno-objc-infer-related-result-type -Werror -Wno-error=incomplete-umbrella -x objective-c++ -fmodule-cache-path %t -F %S/Inputs -verify %s
+// RUN: %clang_cc1 -fno-objc-infer-related-result-type -Werror -Wno-error=incomplete-umbrella -fmodule-cache-path %t -F %S/Inputs -verify %s
#define FOO
__import_module__ Module;
@interface OtherClass
@end
+
+
// in module: expected-note{{class method 'alloc' is assumed to return an instance of its receiver type ('Module *')}}
void test_getModuleVersion() {
const char *version = getModuleVersion();
OpenPOWER on IntegriCloud