xref: /petsc/src/sys/tests/linter/output/testValidPointers.out (revision bcd3bd92eda2d5998e2f14c4bbfb33bd936bdc3e)
1<--- FIXED --->
2--------------------------------------------------------------------------------------------
3./src/sys/tests/linter/testValidPointers.c:6:25: error: Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]:
4  4: {
5  5:   /* incorrect */
6> 6:   PetscAssertPointer(a, 2);
7                             ^
8  7:   PetscAssertPointer(b, 3);
9  8:   PetscAssertPointer(c, 4);
10
11./src/sys/tests/linter/testValidPointers.c:3:34 Note: 'a' is traceable to argument #1 'a' in enclosing function here:
12  1: #include <petsc/private/petscimpl.h>
13  2:
14> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
15                                      ^^^^^^^
16  4: {
17  5:   /* incorrect */
18./src/sys/tests/linter/testValidPointers.c:7:25: error: Argument number doesn't match for 'b'. Expected '2', found '3' [-fmatching-arg-num]:
19  5: /* incorrect */
20  6: PetscAssertPointer(a, 2);
21> 7: PetscAssertPointer(b, 3);
22                           ^
23  8: PetscAssertPointer(c, 4);
24  9: PetscAssertPointer(d, 5);
25
26./src/sys/tests/linter/testValidPointers.c:3:43 Note: 'b' is traceable to argument #2 'b' in enclosing function here:
27  1: #include <petsc/private/petscimpl.h>
28  2:
29> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
30                                               ^^^^^^^
31  4: {
32  5:   /* incorrect */
33./src/sys/tests/linter/testValidPointers.c:8:25: error: Argument number doesn't match for 'c'. Expected '3', found '4' [-fmatching-arg-num]:
34  6 : PetscAssertPointer(a, 2);
35  7 : PetscAssertPointer(b, 3);
36> 8 : PetscAssertPointer(c, 4);
37                            ^
38  9 : PetscAssertPointer(d, 5);
39  10: PetscAssertPointer(e, 6);
40
41./src/sys/tests/linter/testValidPointers.c:3:52 Note: 'c' is traceable to argument #3 'c' in enclosing function here:
42  1: #include <petsc/private/petscimpl.h>
43  2:
44> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
45                                                        ^^^^^^^^^^^
46  4: {
47  5:   /* incorrect */
48./src/sys/tests/linter/testValidPointers.c:9:25: error: Argument number doesn't match for 'd'. Expected '4', found '5' [-fmatching-arg-num]:
49  7 : PetscAssertPointer(b, 3);
50  8 : PetscAssertPointer(c, 4);
51> 9 : PetscAssertPointer(d, 5);
52                            ^
53  10: PetscAssertPointer(e, 6);
54  11: PetscAssertPointer(f, 7);
55
56./src/sys/tests/linter/testValidPointers.c:3:65 Note: 'd' is traceable to argument #4 'd' in enclosing function here:
57  1: #include <petsc/private/petscimpl.h>
58  2:
59> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
60                                                                     ^^^^^^^^^^^^^^
61  4: {
62  5:   /* incorrect */
63./src/sys/tests/linter/testValidPointers.c:10:25: error: Argument number doesn't match for 'e'. Expected '5', found '6' [-fmatching-arg-num]:
64  8 : PetscAssertPointer(c, 4);
65  9 : PetscAssertPointer(d, 5);
66> 10: PetscAssertPointer(e, 6);
67                            ^
68  11: PetscAssertPointer(f, 7);
69  12: PetscAssertPointer(g, 8);
70
71./src/sys/tests/linter/testValidPointers.c:3:81 Note: 'e' is traceable to argument #5 'e' in enclosing function here:
72  1: #include <petsc/private/petscimpl.h>
73  2:
74> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
75                                                                                     ^^^^^^^^^^^
76  4: {
77  5:   /* incorrect */
78./src/sys/tests/linter/testValidPointers.c:11:25: error: Argument number doesn't match for 'f'. Expected '6', found '7' [-fmatching-arg-num]:
79  9 : PetscAssertPointer(d, 5);
80  10: PetscAssertPointer(e, 6);
81> 11: PetscAssertPointer(f, 7);
82                            ^
83  12: PetscAssertPointer(g, 8);
84  13: PetscAssertPointer(h, 9);
85
86./src/sys/tests/linter/testValidPointers.c:3:94 Note: 'f' is traceable to argument #6 'f' in enclosing function here:
87  1: #include <petsc/private/petscimpl.h>
88  2:
89> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
90                                                                                                  ^^^^^^^^^^^^
91  4: {
92  5:   /* incorrect */
93./src/sys/tests/linter/testValidPointers.c:12:25: error: Argument number doesn't match for 'g'. Expected '7', found '8' [-fmatching-arg-num]:
94  10: PetscAssertPointer(e, 6);
95  11: PetscAssertPointer(f, 7);
96> 12: PetscAssertPointer(g, 8);
97                            ^
98  13: PetscAssertPointer(h, 9);
99  14:
100
101./src/sys/tests/linter/testValidPointers.c:3:108 Note: 'g' is traceable to argument #7 'g' in enclosing function here:
102  1: #include <petsc/private/petscimpl.h>
103  2:
104> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
105                                                                                                                ^^^^^^^^^^^^^^
106  4: {
107  5:   /* incorrect */
108./src/sys/tests/linter/testValidPointers.c:13:25: error: Argument number doesn't match for 'h'. Expected '8', found '9' [-fmatching-arg-num]:
109  11: PetscAssertPointer(f, 7);
110  12: PetscAssertPointer(g, 8);
111> 13: PetscAssertPointer(h, 9);
112                            ^
113  14:
114  15: /* correct */
115
116./src/sys/tests/linter/testValidPointers.c:3:124 Note: 'h' is traceable to argument #8 'h' in enclosing function here:
117  1: #include <petsc/private/petscimpl.h>
118  2:
119> 3: PetscErrorCode testValidPointers(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
120                                                                                                                                ^^^^^^^^^^^^
121  4: {
122  5:   /* incorrect */
123./src/sys/tests/linter/testValidPointers.c:30:25: error: Argument number doesn't match for 'a'. Expected '1', found '2' [-fmatching-arg-num]:
124  28: {
125  29:   /* incorrect */
126> 30:   PetscAssertPointer(a, 2);
127                              ^
128  31:   PetscAssertPointer(b, 3);
129  32:   PetscAssertPointer(c, 4);
130
131./src/sys/tests/linter/testValidPointers.c:27:25 Note: 'a' is traceable to argument #1 'a' in enclosing function here:
132  25: }
133  26:
134> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
135                              ^^^^^^^
136  28: {
137  29:   /* incorrect */
138./src/sys/tests/linter/testValidPointers.c:31:25: error: Argument number doesn't match for 'b'. Expected '2', found '3' [-fmatching-arg-num]:
139  29: /* incorrect */
140  30: PetscAssertPointer(a, 2);
141> 31: PetscAssertPointer(b, 3);
142                            ^
143  32: PetscAssertPointer(c, 4);
144  33: PetscAssertPointer(d, 5);
145
146./src/sys/tests/linter/testValidPointers.c:27:34 Note: 'b' is traceable to argument #2 'b' in enclosing function here:
147  25: }
148  26:
149> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
150                                       ^^^^^^^
151  28: {
152  29:   /* incorrect */
153./src/sys/tests/linter/testValidPointers.c:32:25: error: Argument number doesn't match for 'c'. Expected '3', found '4' [-fmatching-arg-num]:
154  30: PetscAssertPointer(a, 2);
155  31: PetscAssertPointer(b, 3);
156> 32: PetscAssertPointer(c, 4);
157                            ^
158  33: PetscAssertPointer(d, 5);
159  34: PetscAssertPointer(e, 6);
160
161./src/sys/tests/linter/testValidPointers.c:27:43 Note: 'c' is traceable to argument #3 'c' in enclosing function here:
162  25: }
163  26:
164> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
165                                                ^^^^^^^^^^^
166  28: {
167  29:   /* incorrect */
168./src/sys/tests/linter/testValidPointers.c:33:25: error: Argument number doesn't match for 'd'. Expected '4', found '5' [-fmatching-arg-num]:
169  31: PetscAssertPointer(b, 3);
170  32: PetscAssertPointer(c, 4);
171> 33: PetscAssertPointer(d, 5);
172                            ^
173  34: PetscAssertPointer(e, 6);
174  35: PetscAssertPointer(f, 7);
175
176./src/sys/tests/linter/testValidPointers.c:27:56 Note: 'd' is traceable to argument #4 'd' in enclosing function here:
177  25: }
178  26:
179> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
180                                                             ^^^^^^^^^^^^^^
181  28: {
182  29:   /* incorrect */
183./src/sys/tests/linter/testValidPointers.c:34:25: error: Argument number doesn't match for 'e'. Expected '5', found '6' [-fmatching-arg-num]:
184  32: PetscAssertPointer(c, 4);
185  33: PetscAssertPointer(d, 5);
186> 34: PetscAssertPointer(e, 6);
187                            ^
188  35: PetscAssertPointer(f, 7);
189  36: PetscAssertPointer(g, 8);
190
191./src/sys/tests/linter/testValidPointers.c:27:72 Note: 'e' is traceable to argument #5 'e' in enclosing function here:
192  25: }
193  26:
194> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
195                                                                             ^^^^^^^^^^^
196  28: {
197  29:   /* incorrect */
198./src/sys/tests/linter/testValidPointers.c:35:25: error: Argument number doesn't match for 'f'. Expected '6', found '7' [-fmatching-arg-num]:
199  33: PetscAssertPointer(d, 5);
200  34: PetscAssertPointer(e, 6);
201> 35: PetscAssertPointer(f, 7);
202                            ^
203  36: PetscAssertPointer(g, 8);
204  37: PetscAssertPointer(h, 9);
205
206./src/sys/tests/linter/testValidPointers.c:27:85 Note: 'f' is traceable to argument #6 'f' in enclosing function here:
207  25: }
208  26:
209> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
210                                                                                          ^^^^^^^^^^^^
211  28: {
212  29:   /* incorrect */
213./src/sys/tests/linter/testValidPointers.c:36:25: error: Argument number doesn't match for 'g'. Expected '7', found '8' [-fmatching-arg-num]:
214  34: PetscAssertPointer(e, 6);
215  35: PetscAssertPointer(f, 7);
216> 36: PetscAssertPointer(g, 8);
217                            ^
218  37: PetscAssertPointer(h, 9);
219  38:
220
221./src/sys/tests/linter/testValidPointers.c:27:99 Note: 'g' is traceable to argument #7 'g' in enclosing function here:
222  25: }
223  26:
224> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
225                                                                                                        ^^^^^^^^^^^^^^
226  28: {
227  29:   /* incorrect */
228./src/sys/tests/linter/testValidPointers.c:37:25: error: Argument number doesn't match for 'h'. Expected '8', found '9' [-fmatching-arg-num]:
229  35: PetscAssertPointer(f, 7);
230  36: PetscAssertPointer(g, 8);
231> 37: PetscAssertPointer(h, 9);
232                            ^
233  38:
234  39: /* correct */
235
236./src/sys/tests/linter/testValidPointers.c:27:115 Note: 'h' is traceable to argument #8 'h' in enclosing function here:
237  25: }
238  26:
239> 27: void testValidPointers2(void *a, char *b, PetscInt *c, PetscMPIInt *d, PetscInt *e, PetscBool *f, PetscScalar *g, PetscReal *h)
240                                                                                                                        ^^^^^^^^^^^^
241  28: {
242  29:   /* incorrect */
243./src/sys/tests/linter/testValidPointers.c:64:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
244  52: {
245  53:   /* incorrect */
246> 54:   PetscAssertPointer(a, 1);
247        ^^^^^^^^^^^^^^^^^^^^^^^^
248  55:   PetscAssertPointer(b, 2);
249  56:   PetscAssertPointer(c, 3);
250  57:   PetscAssertPointer(d, 4);
251  58:   PetscAssertPointer(e, 5);
252  59:   PetscAssertPointer(f, 6);
253  60:   PetscAssertPointer(g, 7);
254  61:   PetscAssertPointer(h, 8);
255  62:
256  63:   /* correct */
257  64:   PetscAssertPointer(a, 1);
258./src/sys/tests/linter/testValidPointers.c:65:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
259  53: /* incorrect */
260  54: PetscAssertPointer(a, 1);
261> 55: PetscAssertPointer(b, 2);
262      ^^^^^^^^^^^^^^^^^^^^^^^^
263  56: PetscAssertPointer(c, 3);
264  57: PetscAssertPointer(d, 4);
265  58: PetscAssertPointer(e, 5);
266  59: PetscAssertPointer(f, 6);
267  60: PetscAssertPointer(g, 7);
268  61: PetscAssertPointer(h, 8);
269  62:
270  63: /* correct */
271  64: PetscAssertPointer(a, 1);
272  65: PetscAssertPointer(b, 2);
273./src/sys/tests/linter/testValidPointers.c:66:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
274  54: PetscAssertPointer(a, 1);
275  55: PetscAssertPointer(b, 2);
276> 56: PetscAssertPointer(c, 3);
277      ^^^^^^^^^^^^^^^^^^^^^^^^
278  57: PetscAssertPointer(d, 4);
279  58: PetscAssertPointer(e, 5);
280  59: PetscAssertPointer(f, 6);
281  60: PetscAssertPointer(g, 7);
282  61: PetscAssertPointer(h, 8);
283  62:
284  63: /* correct */
285  64: PetscAssertPointer(a, 1);
286  65: PetscAssertPointer(b, 2);
287  66: PetscAssertPointer(c, 3);
288./src/sys/tests/linter/testValidPointers.c:67:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
289  55: PetscAssertPointer(b, 2);
290  56: PetscAssertPointer(c, 3);
291> 57: PetscAssertPointer(d, 4);
292      ^^^^^^^^^^^^^^^^^^^^^^^^
293  58: PetscAssertPointer(e, 5);
294  59: PetscAssertPointer(f, 6);
295  60: PetscAssertPointer(g, 7);
296  61: PetscAssertPointer(h, 8);
297  62:
298  63: /* correct */
299  64: PetscAssertPointer(a, 1);
300  65: PetscAssertPointer(b, 2);
301  66: PetscAssertPointer(c, 3);
302  67: PetscAssertPointer(d, 4);
303./src/sys/tests/linter/testValidPointers.c:68:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
304  56: PetscAssertPointer(c, 3);
305  57: PetscAssertPointer(d, 4);
306> 58: PetscAssertPointer(e, 5);
307      ^^^^^^^^^^^^^^^^^^^^^^^^
308  59: PetscAssertPointer(f, 6);
309  60: PetscAssertPointer(g, 7);
310  61: PetscAssertPointer(h, 8);
311  62:
312  63: /* correct */
313  64: PetscAssertPointer(a, 1);
314  65: PetscAssertPointer(b, 2);
315  66: PetscAssertPointer(c, 3);
316  67: PetscAssertPointer(d, 4);
317  68: PetscAssertPointer(e, 5);
318./src/sys/tests/linter/testValidPointers.c:69:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
319  57: PetscAssertPointer(d, 4);
320  58: PetscAssertPointer(e, 5);
321> 59: PetscAssertPointer(f, 6);
322      ^^^^^^^^^^^^^^^^^^^^^^^^
323  60: PetscAssertPointer(g, 7);
324  61: PetscAssertPointer(h, 8);
325  62:
326  63: /* correct */
327  64: PetscAssertPointer(a, 1);
328  65: PetscAssertPointer(b, 2);
329  66: PetscAssertPointer(c, 3);
330  67: PetscAssertPointer(d, 4);
331  68: PetscAssertPointer(e, 5);
332  69: PetscAssertPointer(f, 6);
333./src/sys/tests/linter/testValidPointers.c:70:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
334  58: PetscAssertPointer(e, 5);
335  59: PetscAssertPointer(f, 6);
336> 60: PetscAssertPointer(g, 7);
337      ^^^^^^^^^^^^^^^^^^^^^^^^
338  61: PetscAssertPointer(h, 8);
339  62:
340  63: /* correct */
341  64: PetscAssertPointer(a, 1);
342  65: PetscAssertPointer(b, 2);
343  66: PetscAssertPointer(c, 3);
344  67: PetscAssertPointer(d, 4);
345  68: PetscAssertPointer(e, 5);
346  69: PetscAssertPointer(f, 6);
347  70: PetscAssertPointer(g, 7);
348./src/sys/tests/linter/testValidPointers.c:71:3: error: Duplicate function found previous identical usage [-fduplicate-function]:
349  59: PetscAssertPointer(f, 6);
350  60: PetscAssertPointer(g, 7);
351> 61: PetscAssertPointer(h, 8);
352      ^^^^^^^^^^^^^^^^^^^^^^^^
353  62:
354  63: /* correct */
355  64: PetscAssertPointer(a, 1);
356  65: PetscAssertPointer(b, 2);
357  66: PetscAssertPointer(c, 3);
358  67: PetscAssertPointer(d, 4);
359  68: PetscAssertPointer(e, 5);
360  69: PetscAssertPointer(f, 6);
361  70: PetscAssertPointer(g, 7);
362  71: PetscAssertPointer(h, 8);
363--------------------------------------------------------------------------------------------
364<--- LEFT --->
365