forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcea258b
committed
Teach pgindent to skip files generated by bison or flex automatically.
If a .c or .h file corresponds to a .y or .l file, skip indenting it.There's no point in reindenting derived files, and these files tend toconfuse pgindent. (Which probably indicates a bug in BSD indent, butI can't get excited about trying to fix it.)For the same reasons, add src/backend/utils/fmgrtab.c to the set offiles excluded by src/tools/pgindent/exclude_file_patterns.The point of doing this is that it makes it safe to run pgindent overthe tree without doing "make maintainer-clean" first. While these arenot the only derived .c/.h files in the tree, they are the only onespgindent fails on. Removing that prerequisite step results in one lessway to mess up a pgindent run, and it's necessary if we ever hope to getto the ease of running pgindent via "make indent".1 parent57fb1d6 commitcea258b
3 files changed
+25
-16
lines changedLines changed: 13 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
| 25 | + | |
33 | 26 |
| |
34 | 27 |
| |
35 | 28 |
| |
36 | 29 |
| |
37 | 30 |
| |
38 | 31 |
| |
39 |
| - | |
| 32 | + | |
40 | 33 |
| |
41 | 34 |
| |
42 | 35 |
| |
43 | 36 |
| |
44 | 37 |
| |
45 | 38 |
| |
46 |
| - | |
| 39 | + | |
47 | 40 |
| |
48 | 41 |
| |
49 | 42 |
| |
| |||
53 | 46 |
| |
54 | 47 |
| |
55 | 48 |
| |
56 |
| - | |
| 49 | + | |
| 50 | + | |
57 | 51 |
| |
58 | 52 |
| |
59 | 53 |
| |
60 |
| - | |
| 54 | + | |
61 | 55 |
| |
62 | 56 |
| |
63 | 57 |
| |
| |||
127 | 121 |
| |
128 | 122 |
| |
129 | 123 |
| |
130 |
| - | |
| 124 | + | |
| 125 | + | |
131 | 126 |
| |
132 | 127 |
| |
133 | 128 |
| |
134 | 129 |
| |
135 | 130 |
| |
| 131 | + | |
| 132 | + | |
| 133 | + | |
136 | 134 |
| |
137 | 135 |
| |
138 |
| - | |
| 136 | + | |
139 | 137 |
| |
140 | 138 |
| |
141 | 139 |
| |
142 | 140 |
| |
143 | 141 |
| |
144 | 142 |
| |
| 143 | + | |
145 | 144 |
| |
146 | 145 |
| |
147 | 146 |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 |
| - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
534 | 534 |
| |
535 | 535 |
| |
536 | 536 |
| |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
537 | 546 |
| |
538 | 547 |
| |
539 | 548 |
| |
|
0 commit comments
Comments
(0)