28 lines · c
1// RUN: rm -rf %t2// RUN: split-file %s %t3// 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.h6 7//--- input.h8#define IGNORED_1 19#define IGNORED_2 210#define IGNORED_3 311#define IGNORED_4 412typedef int Ignored;13typedef float NonIgnored;14 15// CHECK-NOT: IGNORED_116// CHECK-NOT: IGNORED_217// CHECK-NOT: IGNORED_318// CHECK: NonIgnored19 20// expected-no-diagnostics21 22//--- ignores-list23Ignored24IGNORED_425IGNORED_3 26IGNORED_227IGNORED_128