Lines Matching full:file
4 // RUN: not %clang_cc1 -fmodules -fmodule-name=file -I%S/Inputs/preprocess -x c++-module-map %S/Inp…
10 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -I%S/Inputs/preprocess -x …
11 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -I%S/Inputs/preprocess -x …
13 // RUN: FileCheck %s --input-file %t/no-rewrite.ii --check-prefix=CHECK --check-prefix=NO-REWRITE
14 // RUN: FileCheck %s --input-file %t/rewrite.ii --check-prefix=CHECK --check-prefix=REWRITE
17 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -x c++-module-map-cpp-outp…
18 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -x c++-module-map-cpp-outp…
21 // could happen if we had a redundant -fmodule-map-file= in the original
23 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -fmodule-map-file=%S/Input…
26 // RUN: %clang_cc1 -fmodules -fmodule-file=%t/no-rewrite.pcm %s -I%t -verify -fno-modules-error-rec…
27 // RUN: %clang_cc1 -fmodules -fmodule-file=%t/rewrite.pcm %s -I%t -verify -fno-modules-error-recove…
28 // RUN: %clang_cc1 -fmodules -fmodule-file=%t/no-rewrite.pcm %s -I%t -verify -fno-modules-error-rec…
29 // RUN: %clang_cc1 -fmodules -fmodule-file=%t/rewrite.pcm %s -I%t -verify -fno-modules-error-recove…
32 // RUN: cp %S/Inputs/preprocess/fwd.h %S/Inputs/preprocess/file.h %S/Inputs/preprocess/file2.h %S/I…
33 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -I%t -x c++-module-map %t/…
34 // RUN: rm %t/fwd.h %t/file.h %t/file2.h %t/other.h %t/module.modulemap
35 // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -x c++-module-map-cpp-outp…
38 // RUN: cp %S/Inputs/preprocess/fwd.h %S/Inputs/preprocess/file.h %S/Inputs/preprocess/file2.h %S/I…
39 // RUN: %clang_cc1 -fmodules -fmodule-file=%t/copy.pcm %s -I%t -verify -fno-modules-error-recovery …
40 // RUN: rm %t/fwd.h %t/file.h %t/file2.h %t/other.h %t/module.modulemap
42 // Check that we can preprocess from a .pcm file and that we get the same result as preprocessing f…
43 …dule-name=file -fmodule-file=%t/fwd.pcm -I%S/Inputs/preprocess -x c++-module-map %S/Inputs/preproc…
44 …cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -I%S/Inputs/preprocess %t/file.pcm -E -f…
46 // FIXME: cmp %t/rewrite.ii %t/file.rewrite.ii
48 // RUN: FileCheck %s --input-file %t/file.rewrite.ii --check-prefix=CHECK --check-prefix=REWRITE
49 …1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -x c++-module-map-cpp-output %t/file.rewri…
50 // RUN: %clang_cc1 -fmodules -fmodule-file=%t/file.rewrite.pcm %s -I%t -verify -fno-modules-error-r…
51 // RUN: %clang_cc1 -fmodules -fmodule-file=%t/file.rewrite.pcm %s -I%t -verify -fno-modules-error-r…
53 // Check that we can preprocess this user of the .pcm file.
54 // RUN: %clang_cc1 -fmodules -fmodule-file=%t/file.pcm %s -I%t -E -frewrite-imports -DFILE_REWRITE_…
57 // Check that language / header search options are ignored when preprocessing from a .pcm file.
58 // RUN: %clang_cc1 %t/file.pcm -E -frewrite-includes -o %t/file.rewrite.ii.2
59 // RUN: cmp %t/file.rewrite.ii %t/file.rewrite.ii.2
61 …: %clang_cc1 -fmodules -fmodule-name=file -fmodule-file=%t/fwd.pcm -I%S/Inputs/preprocess %t/file.…
62 // RUN: %clang_cc1 %t/file.pcm -E -o %t/file.no-rewrite.ii.2 -Dstruct=error
63 // RUN: cmp %t/file.no-rewrite.ii %t/file.no-rewrite.ii.2
67 // CHECK: module file {
68 // CHECK: header "file.h" { size
72 // == file.h
75 // REWRITE: #include "file.h"
76 // REWRITE: #else /* file.h expanded by -frewrite-includes
79 // the same file, but the relative ordering of PP callbacks and module
82 // REWRITE: #pragma clang module begin file
83 // CHECK: # 1 "{{.*}}file.h" 1
84 // NO-REWRITE: #pragma clang module begin file
90 // CHECK: typedef struct __FILE FILE;
103 // REWRITE: #pragma clang module begin file
105 // NO-REWRITE: #pragma clang module begin file
107 // ==== recursively re-enter file.h
109 // REWRITE: #include "file.h"
110 // REWRITE: #else /* file.h expanded
112 // REWRITE: #pragma clang module begin file
113 // CHECK: # 1 "{{.*}}file.h" 1
114 // NO-REWRITE: #pragma clang module begin file
141 // expected-note@file.rewrite.ii:* {{here}}
143 // No note diagnostic at all in this case: we've built the 'file' module but not loaded it into thi…
153 #include "file.h"
155 #pragma clang module import file
158 FILE *b;