forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit785941c
committed
Tweak __attribute__-wrapping macros for better pgindent results.
This improves on commitbbfd7ed bymaking two simple changes:* pg_attribute_noreturn now takes parentheses, ie pg_attribute_noreturn().Likewise pg_attribute_unused(), pg_attribute_packed(). This reducespgindent's tendency to misformat declarations involving them.* attributes are now always attached to function declarations, notdefinitions. Previously some places were taking creative shortcuts,which were not merely candidates for bad misformatting by pgindentbut often were outright wrong anyway. (It does little good to put anoreturn annotation where callers can't see it.) In any case, ifwe would like to believe that these macros can be used with non-gcccompilers, we should avoid gratuitous variance in usage patterns.I also went through and manually improved the formatting of a lot ofdeclarations, and got rid of excessively repetitive (and now obsoleteanyway) comments informing the reader what pg_attribute_printf is for.1 parentd04c8ed commit785941c
File tree
71 files changed
+168
-356
lines changed- contrib
- cube
- pg_upgrade
- pg_xlogdump
- pgcrypto
- seg
- src
- backend
- access/transam
- postmaster
- replication
- utils
- error
- misc
- bin
- pg_ctl
- pg_dump
- pg_rewind
- psql
- include
- bootstrap
- common
- lib
- mb
- parser
- postmaster
- replication
- storage
- tcop
- utils
- interfaces
- ecpg
- include
- preproc
- libpq
- pl
- plperl
- plpgsql/src
- plpython
- test
- modules
- test_shm_mq
- worker_spi
- regress
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
71 files changed
+168
-356
lines changedLines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 | 29 |
| |
35 | 30 |
| |
36 | 31 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + |
Lines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
26 |
| - | |
27 | 25 |
| |
28 | 26 |
| |
29 | 27 |
| |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 | 28 |
| |
34 | 29 |
| |
35 | 30 |
| |
|
Lines changed: 1 addition & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
8 |
| - | |
9 | 7 |
| |
10 | 8 |
| |
11 | 9 |
| |
| |||
24 | 22 |
| |
25 | 23 |
| |
26 | 24 |
| |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 | 25 |
| |
34 | 26 |
| |
35 | 27 |
| |
| |||
60 | 52 |
| |
61 | 53 |
| |
62 | 54 |
| |
63 |
| - | |
| 55 | + | |
64 | 56 |
| |
65 | 57 |
| |
66 | 58 |
| |
|
Lines changed: 10 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
356 | 356 |
| |
357 | 357 |
| |
358 | 358 |
| |
359 |
| - | |
360 |
| - | |
361 |
| - | |
362 |
| - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
363 | 362 |
| |
364 | 363 |
| |
365 | 364 |
| |
| |||
443 | 442 |
| |
444 | 443 |
| |
445 | 444 |
| |
446 |
| - | |
447 |
| - | |
448 |
| - | |
| 445 | + | |
449 | 446 |
| |
450 | 447 |
| |
451 | 448 |
| |
| |||
460 | 457 |
| |
461 | 458 |
| |
462 | 459 |
| |
463 |
| - | |
464 |
| - | |
465 |
| - | |
466 |
| - | |
467 |
| - | |
468 |
| - | |
469 |
| - | |
470 |
| - | |
471 |
| - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
472 | 463 |
| |
473 |
| - | |
474 |
| - | |
475 |
| - | |
| 464 | + | |
476 | 465 |
| |
477 | 466 |
| |
478 | 467 |
| |
| |||
486 | 475 |
| |
487 | 476 |
| |
488 | 477 |
| |
489 |
| - | |
490 |
| - | |
491 |
| - | |
492 |
| - | |
| 478 | + | |
| 479 | + | |
493 | 480 |
| |
494 | 481 |
| |
495 | 482 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 |
| |
21 | 24 |
| |
22 | 25 |
| |
| |||
81 | 84 |
| |
82 | 85 |
| |
83 | 86 |
| |
84 |
| - | |
85 |
| - | |
86 |
| - | |
| 87 | + | |
87 | 88 |
| |
88 | 89 |
| |
89 | 90 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
70 |
| - | |
71 |
| - | |
72 |
| - | |
| 70 | + | |
73 | 71 |
| |
74 | 72 |
| |
75 | 73 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
206 | 206 |
| |
207 | 207 |
| |
208 | 208 |
| |
209 |
| - | |
210 |
| - | |
211 |
| - | |
| 209 | + | |
212 | 210 |
| |
213 | 211 |
| |
214 | 212 |
| |
|
Lines changed: 0 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 | 26 |
| |
36 | 27 |
| |
37 | 28 |
| |
| |||
103 | 94 |
| |
104 | 95 |
| |
105 | 96 |
| |
106 |
| - | |
107 | 97 |
| |
108 | 98 |
| |
109 | 99 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + |
Lines changed: 1 addition & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| 10 | + | |
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
| |||
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 | 24 |
| |
31 | 25 |
| |
32 | 26 |
| |
|
Lines changed: 1 addition & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
7 |
| - | |
8 | 6 |
| |
9 | 7 |
| |
10 | 8 |
| |
| |||
22 | 20 |
| |
23 | 21 |
| |
24 | 22 |
| |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 | 23 |
| |
32 | 24 |
| |
33 | 25 |
| |
| |||
59 | 51 |
| |
60 | 52 |
| |
61 | 53 |
| |
62 |
| - | |
| 54 | + | |
63 | 55 |
| |
64 | 56 |
| |
65 | 57 |
| |
|
Lines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
| 35 | + | |
40 | 36 |
| |
41 | 37 |
| |
42 | 38 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
281 | 281 |
| |
282 | 282 |
| |
283 | 283 |
| |
284 |
| - | |
285 |
| - | |
| 284 | + | |
| 285 | + | |
286 | 286 |
| |
287 | 287 |
| |
288 | 288 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 |
| - | |
| 89 | + | |
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
254 |
| - | |
| 254 | + | |
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
380 | 380 |
| |
381 | 381 |
| |
382 | 382 |
| |
383 |
| - | |
384 |
| - | |
| 383 | + | |
| 384 | + | |
385 | 385 |
| |
386 | 386 |
| |
387 | 387 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
133 |
| - | |
| 133 | + | |
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
208 |
| - | |
| 208 | + | |
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
193 | 193 |
| |
194 | 194 |
| |
195 | 195 |
| |
196 |
| - | |
| 196 | + | |
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
|
Lines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
| 85 | + | |
90 | 86 |
| |
91 | 87 |
| |
92 | 88 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
| 132 | + | |
136 | 133 |
| |
137 | 134 |
| |
138 | 135 |
| |
|
Lines changed: 1 addition & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
119 |
| - | |
120 |
| - | |
121 |
| - | |
122 |
| - | |
123 |
| - | |
| 119 | + | |
124 | 120 |
| |
125 | 121 |
| |
126 | 122 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
| 81 | + | |
| 82 | + | |
85 | 83 |
| |
86 | 84 |
| |
87 | 85 |
| |
|
0 commit comments
Comments
(0)