diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-06-16 23:14:27 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-06-16 23:14:40 -0400 |
commit | cea258b63d9c7a6d0a7c5e91e539bb89df4bc078 (patch) | |
tree | d3218290d41cbc5a35d5228e7b649b0153886e8a /src/tools/pgindent/exclude_file_patterns | |
parent | 57fb1d677d98d9c02565e47afdbf5e887b095c9f (diff) |
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 to
confuse pgindent. (Which probably indicates a bug in BSD indent, but
I can't get excited about trying to fix it.)
For the same reasons, add src/backend/utils/fmgrtab.c to the set of
files excluded by src/tools/pgindent/exclude_file_patterns.
The point of doing this is that it makes it safe to run pgindent over
the tree without doing "make maintainer-clean" first. While these are
not the only derived .c/.h files in the tree, they are the only ones
pgindent fails on. Removing that prerequisite step results in one less
way to mess up a pgindent run, and it's necessary if we ever hope to get
to the ease of running pgindent via "make indent".
Diffstat (limited to 'src/tools/pgindent/exclude_file_patterns')
-rw-r--r-- | src/tools/pgindent/exclude_file_patterns | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/pgindent/exclude_file_patterns b/src/tools/pgindent/exclude_file_patterns index 97ba092658e..cb2f902a90f 100644 --- a/src/tools/pgindent/exclude_file_patterns +++ b/src/tools/pgindent/exclude_file_patterns @@ -1,6 +1,7 @@ #list of file patterns to exclude from pgindent runs, see notes in README -/s_lock\.h$ -/atomics/ +/storage/s_lock\.h$ +/port/atomics/ +/utils/fmgrtab\.c$ /ecpg/test/expected/ /snowball/libstemmer/ /pl/plperl/ppport\.h$ |