| 1 |
// REQUIRES: case-insensitive-filesystem |
| 2 |
|
| 3 |
// RUN: rm -rf %t |
| 4 |
// RUN: %clang_cc1 -fsyntax-only -fmodules -fapinotes-modules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs/Frameworks -I %S/Inputs/Headers %s 2>&1 | FileCheck %s |
| 5 |
|
| 6 |
// RUN: rm -rf %t |
| 7 |
// RUN: %clang_cc1 -fsyntax-only -fmodules -fapinotes-modules -fimplicit-module-maps -fmodules-cache-path=%t -iframework %S/Inputs/Frameworks -isystem %S/Inputs/Headers %s -Werror |
| 8 |
|
| 9 |
// RUN: rm -rf %t |
| 10 |
// RUN: %clang_cc1 -fsyntax-only -fmodules -fapinotes-modules -fimplicit-module-maps -fmodules-cache-path=%t -iframework %S/Inputs/Frameworks -isystem %S/Inputs/Headers %s -Wnonportable-private-system-apinotes-path 2>&1 | FileCheck %s |
| 11 |
|
| 12 |
#include <ModuleWithWrongCase.h> |
| 13 |
#include <ModuleWithWrongCasePrivate.h> |
| 14 |
#include <FrameworkWithWrongCase/FrameworkWithWrongCase.h> |
| 15 |
#include <FrameworkWithWrongCasePrivate/FrameworkWithWrongCasePrivate.h> |
| 16 |
#include <FrameworkWithActualPrivateModule/FrameworkWithActualPrivateModule_Private.h> |
| 17 |
|
| 18 |
// CHECK-NOT: warning: |
| 19 |
// CHECK: warning: private API notes file for module 'ModuleWithWrongCasePrivate' should be named 'ModuleWithWrongCasePrivate_private.apinotes', not 'ModuleWithWrongCasePrivate_Private.apinotes' |
| 20 |
// CHECK-NOT: warning: |
| 21 |
// CHECK: warning: private API notes file for module 'FrameworkWithWrongCasePrivate' should be named 'FrameworkWithWrongCasePrivate_private.apinotes', not 'FrameworkWithWrongCasePrivate_Private.apinotes' |
| 22 |
// CHECK-NOT: warning: |