[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / ExtractAPI / ignored-symbols-multifile.c
blobd4a4c3dde12522994e251771810065e9c41cbc91
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-list1,%t/ignores-list2,%t/ignores-list3 \
5 // RUN: -x c-header %t/input.h -verify -o - | FileCheck %t/input.h
7 //--- input.h
8 #define IGNORED_6_FILE1 6
9 #define IGNORED_2_FILE1 2
10 #define IGNORED_5_FILE1 5
12 #define IGNORED_4_FILE2 4
13 #define IGNORED_3_FILE2 3
15 typedef double IGNORED_1_FILE3;
16 typedef int IGNORED_7_FILE3;
18 typedef float NonIgnored;
20 // CHECK-NOT: IGNORED_6_FILE1
21 // CHECK-NOT: IGNORED_2_FILE1
22 // CHECK-NOT: IGNORED_5_FILE1
24 // CHECK-NOT: IGNORED_4_FILE2
25 // CHECK-NOT: IGNORED_3_FILE2
27 // CHECK-NOT: IGNORED_1_FILE3
28 // CHECK-NOT: IGNORED_7_FILE3
29 // CHECK: NonIgnored
31 // expected-no-diagnostics
33 //--- ignores-list1
34 IGNORED_6_FILE1
35 IGNORED_2_FILE1
36 IGNORED_5_FILE1
38 //--- ignores-list2
39 IGNORED_4_FILE2
40 IGNORED_3_FILE2
42 //--- ignores-list3
43 IGNORED_1_FILE3
44 IGNORED_7_FILE3