| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: split-file %s %t |
| 3 |
// RUN: %clang_cc1 -extract-api -triple arm64-apple-macosx \ |
| 4 |
// RUN: --extract-api-ignores=%t/ignores-list \ |
| 5 |
// RUN: -x c-header %t/input.h -verify -o - | FileCheck %t/input.h |
| 6 |
|
| 7 |
//--- input.h |
| 8 |
#define IGNORED_1 1 |
| 9 |
#define IGNORED_2 2 |
| 10 |
#define IGNORED_3 3 |
| 11 |
#define IGNORED_4 4 |
| 12 |
typedef int Ignored; |
| 13 |
typedef float NonIgnored; |
| 14 |
|
| 15 |
// CHECK-NOT: IGNORED_1 |
| 16 |
// CHECK-NOT: IGNORED_2 |
| 17 |
// CHECK-NOT: IGNORED_3 |
| 18 |
// CHECK: NonIgnored |
| 19 |
|
| 20 |
// expected-no-diagnostics |
| 21 |
|
| 22 |
//--- ignores-list |
| 23 |
Ignored |
| 24 |
IGNORED_4 |
| 25 |
IGNORED_3 |
| 26 |
IGNORED_2 |
| 27 |
IGNORED_1 |