File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
- This can format all PostgreSQL *.c and *.h files, excluding libpq++,
2
- *.y, and *.l files.
1
+ This can format all PostgreSQL *.c and *.h files, but excludes *.y, and *.l
2
+ files.
3
3
4
- Get the list of typedef's included in pgindent by running this on the
4
+ Get the list of typedef's included in pgindent by running this on the
5
5
pgsql/bin directory:
6
6
7
7
/src/tools/find_typedef
8
8
9
- and update the list in pgindent. This requires debug symbols.
9
+ and update the list in pgindent. This requires the binaries have debug
10
+ symbols.
10
11
11
12
From the top directory, run:
12
13
13
14
find . -name '*.[ch]' -type f -print | egrep -v '\+\+|s_lock.h' | xargs -n100 pgindent
14
15
15
- The stock BSD indent has two bugs. First, a comment after the word 'else'
16
+ The stock BSD indent has two bugs. First, a comment after the word 'else'
16
17
causes the rest of the file to be ignored. Second, it silently ignores
17
18
typedefs after getting the first 100.
18
19
@@ -38,6 +39,7 @@ following options:
38
39
39
40
find . \( -name '*.java' -o -name '*.java.in' \) -print |
40
41
xargs -n100 pgjindent
42
+
41
43
---------------------------------------------------------------------------
42
44
43
45
For cpp, we use astyle, http://astyle.sourceforge.net/, with the
You can’t perform that action at this time.
0 commit comments