]> granicus.if.org Git - clang/blob - test/Format/inplace.cpp
clang/test/Format/inplace.cpp: Avoid using wildcard.
[clang] / test / Format / inplace.cpp
1 // Regression test to check that clang-format does not leave behind temporary
2 // files on Windows when doing in-place formatting.
3 // RUN: rm -rf %t.dir
4 // RUN: mkdir %t.dir
5 // RUN: cp %s %t.dir/inplace.cpp
6 // RUN: clang-format -style=LLVM -i %t.dir/inplace.cpp
7 // RUN: ls %t.dir > %t.dir/files.txt
8 // RUN: FileCheck -strict-whitespace -input-file=%t.dir/files.txt %s
9
10 // CHECK-NOT: RF{{.*}}.TMP
11
12 // The file needs to be larger than 16kiB so that Windows creates a real file
13 // mapping object for it.
14  int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
15 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
16 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
17 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
18 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
19 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
20 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
21 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
22 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
23 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
24 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
25 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
26 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
27 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
28 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
29 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
30 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
31 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
32 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
33 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
34 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
35 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
36 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
37 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
38 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
39 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
40 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
41 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
42 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
43 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
44 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
45 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
46 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
47 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
48 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
49 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
50 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
51 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
52 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
53 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
54 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
55 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
56 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
57 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
58 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
59 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
60 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
61 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
62 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
63 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
64 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
65 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
66 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
67 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
68 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
69 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
70 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
71 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
72 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
73 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
74 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
75 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
76 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
77 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
78 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
79 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
80 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
81 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
82 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
83 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
84 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
85 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
86 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
87 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
88 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
89 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
90 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
91 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
92 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
93 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
94 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
95 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
96 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
97 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
98 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
99 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
100 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
101 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
102 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
103 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
104 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
105 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
106 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
107 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
108 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
109 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
110 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
111 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
112 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
113 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
114 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
115 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
116 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
117 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
118 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
119 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
120 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
121 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
122 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
123 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
124 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
125 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
126 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
127 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
128 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
129 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
130 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
131 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
132 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
133 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
134 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
135 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
136 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
137 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
138 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
139 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
140 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
141 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
142 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
143 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
144 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
145 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
146 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
147 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
148 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
149 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
150 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
151 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
152 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
153 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
154 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
155 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
156 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
157 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
158 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
159 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
160 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
161 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
162 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
163 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
164 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
165 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
166 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
167 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
168 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
169 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
170 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
171 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
172 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
173 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
174 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
175 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
176 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
177 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
178 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
179 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
180 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
181 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
182 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
183 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
184 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
185 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
186 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
187 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
188 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
189 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
190 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
191 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
192 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
193 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
194 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
195 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
196 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
197 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
198 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
199 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
200 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
201 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
202 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
203 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
204 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
205 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
206 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
207 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
208 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
209 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
210 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
211 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
212 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
213 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
214 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
215 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
216 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
217 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
218 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
219 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
220 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
221 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
222 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
223 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
224 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
225 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
226 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
227 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
228 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
229 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
230 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
231 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
232 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
233 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
234 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
235 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
236 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
237 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
238 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
239 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
240 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
241 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
242 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
243 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
244 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
245 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
246 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
247 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
248 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
249 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
250 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
251 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
252 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
253 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
254 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
255 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
256 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
257 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
258 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
259 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
260 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
261 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
262 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
263 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;
264 int this_is_my_int_there_are_many_like_it_but_this_one_is_mine;