Peter Eisentraut
1275b88f71
Exclude utils/probes.h and pg_trace.h from cpluspluscheck
...
They can include sys/sdt.h from SystemTap, which itself contains C++
code and so won't compile with a C++ compiler under extern "C" linkage.
2013-03-01 22:46:11 -05:00
Peter Eisentraut
cf4d67e819
Exclude access/rmgrlist.h from cpluspluscheck
...
It is not meant to be included standalone.
2013-02-08 07:01:21 -05:00
Andrew Dunstan
9ac749ceb5
Don't include postgres.h in postgres_fe.h for cpluspluscheck.
...
Error exposed by recent Assert changes.
Complaint from Peter Eisentraut.
2012-12-18 16:30:14 -05:00
Bruce Momjian
86d0d16f8a
Add URL for include file visualization tool.
2012-08-16 18:52:08 -04:00
Bruce Momjian
c04b9c1f3d
Add possible alternate tool for pgrminclude, from Peter Geoghegan
2012-08-16 11:56:00 -04:00
Peter Eisentraut
c8e086795a
Remove whitespace from end of lines
...
pgindent and perltidy should clean up the rest.
2012-05-15 22:19:41 +03:00
Robert Haas
5d4b60f2f2
Lots of doc corrections.
...
Josh Kupershmidt
2012-04-23 22:43:09 -04:00
Robert Haas
3b86b4653c
Make pgcompinclude/pgrminclude less tied to Bruce's personal machine.
...
Not everyone has /pg linked to the src subdirectory of their PostgreSQL
tree. Also, cc isn't the way to invoke the compiler everywhere.
2011-12-01 14:44:32 -05:00
Bruce Momjian
2594ad7436
In pgrminclude, document requirement to use pgcompinclude, and sort
...
files so include removal is more predictable.
2011-09-25 16:58:16 -04:00
Bruce Momjian
84bbe57dc1
Document pgrminclude limitations.
2011-09-24 19:38:41 -04:00
Bruce Momjian
337c0b0361
Expand pgrminclude to exclude use of macros CppAsString and CppConcat.
2011-09-24 09:24:14 -04:00
Bruce Momjian
f19593754a
Have pgrminclude skip files that use CppAsString2 because CppAsString2
...
will expaned undefined identifiers.
2011-09-07 12:59:17 -04:00
Bruce Momjian
418d04ea73
Improve method of avoiding fcinfo compile errors.
...
Fix pgrminclude C comment marker.
2011-09-01 14:16:13 -04:00
Bruce Momjian
94db6664e2
Modify pgrminclude -v to report include files that can't be compiled on
...
their own.
Avoid compile problems with defines being redefined after the removal of
the #if blocks.
Change script to use shell functions for simplicity.
2011-08-28 13:04:01 -04:00
Bruce Momjian
4bd7333b14
Allow more include files to be compiled in their own by adding missing
...
include dependencies.
Modify pgcompinclude to skip a common fcinfo error.
2011-08-27 11:05:33 -04:00
Bruce Momjian
d010391ac8
Add support for #elif to pgrminclude.
2011-08-27 09:25:19 -04:00
Bruce Momjian
68c019a538
Add another pgdefine path check, and a cvs-git change.
2011-08-26 21:52:35 -04:00
Bruce Momjian
e7088713cd
Change references of CVS to .git.
2011-08-26 21:43:34 -04:00
Bruce Momjian
8b0f0822fd
Fix missing pgdefine detection in pgrminclude.
2011-08-26 18:21:32 -04:00
Bruce Momjian
f8e41abd8a
Modify pgrminclude to include all code, even in #if blocks. Process
...
.h include files before .c files.
Mark some includes as needed to be ignored by pgrminclude.
2011-08-26 18:15:15 -04:00
Bruce Momjian
c6e9da17a1
Cleanup of script.
2011-08-26 18:15:15 -04:00
Bruce Momjian
987214b4d5
do include files first
2011-08-26 18:15:14 -04:00
Bruce Momjian
ac5f11e0ec
Fix #if blocks.
2011-08-26 18:15:13 -04:00
Bruce Momjian
910725b49d
Fix pgrminclude regex pattern.
2011-08-26 10:33:18 -04:00
Bruce Momjian
6f9afc351b
In pgrminclude, add code to skip includes with a marker comment.
2011-08-26 10:08:39 -04:00
Bruce Momjian
4399e81749
In pgrminclude, make skipped include names constent and skip files with
...
#if/#ifdefs.
2011-08-26 10:06:01 -04:00
Bruce Momjian
034dda61dd
Mark cpluspluscheck as excutable in git.
2011-08-22 22:14:58 -04:00
Tom Lane
f79136439f
Remove -fno-operator-names switch from cpluspluscheck.
...
No longer needed now that bitand() and bitor() have been renamed.
2010-12-27 15:03:24 -05:00
Tom Lane
8c61f81b31
Rearrange cpluspluscheck to check just one .h file at a time.
...
This is slower than the original coding but avoids the problem of
including files in an unpredictable order. Aside from being more
trustworthy, we can get rid of some exclusions that were formerly
made for what turn out to be ordering or re-inclusion problems.
I also modified it to include libpq's exported files in the check.
ecpg should be included as well, but I'm unclear on which ecpg .h
files are meant to be included by clients.
2010-12-27 12:51:44 -05:00
Tom Lane
a977db6f1c
Tweak cpluspluscheck to avoid directly #include'ing gram.h.
...
gram.h has ordering dependencies, which are satisfied when it's included
from gramparse.h, but might not be if it's pulled in directly.
2010-12-27 11:36:52 -05:00
Peter Eisentraut
fc946c39ae
Remove useless whitespace at end of lines
2010-11-23 22:34:55 +02:00
Magnus Hagander
9f2e211386
Remove cvs keywords from all files.
2010-09-20 22:08:53 +02:00
Peter Eisentraut
de160e2c00
Make backend header files C++ safe
...
This alters various incidental uses of C++ key words to use other similar
identifiers, so that a C++ compiler won't choke outright. You still
(probably) need extern "C" { }; around the inclusion of backend headers.
based on a patch by Kurt Harriman <harriman@acm.org>
Also add a script cpluspluscheck to check for C++ compatibility in the
future. As of right now, this passes without error for me.
2009-07-16 06:33:46 +00:00
Bruce Momjian
fca9fff41b
More README src cleanups.
2008-03-21 13:23:29 +00:00
Bruce Momjian
9d9a65bfa7
Add WIN32 compile suggestion to pginclude README.
2006-07-19 15:06:06 +00:00
Bruce Momjian
5ca68299be
Add pginclude testing ideas.
2006-07-18 19:19:59 +00:00
Bruce Momjian
2256d299bb
Mention dependency problems caused by pgrminclude on include files.
2006-07-17 19:37:21 +00:00
Tom Lane
2d11d26113
Create a tool to catch #include omissions that might not result in any
...
compiler warning, specifically #ifdef or #if defined tests on symbols
that are defined in a file not included. The results are a bit noisy
and require care to interpret, but it's a lot better than no tool at all.
2006-07-15 03:27:42 +00:00
Bruce Momjian
06bed485b0
Move CFLAGS for pginclude to the end of the command line.
2006-07-14 01:05:14 +00:00
Bruce Momjian
10157d4e6f
Skip stripping postgres_fe.h include file.
2006-07-13 18:25:09 +00:00
Bruce Momjian
70e2e3d8b1
Improve pginclude tools to process include file usage by other include files.
2006-07-13 16:39:20 +00:00
Bruce Momjian
99ac1e69ba
Fix pgrminclude to work for stripping include files.
2006-07-12 16:28:27 +00:00
Bruce Momjian
1be8f80288
Improve pginclude tests.
2006-07-11 20:51:25 +00:00
Bruce Momjian
4084681546
Improve pginclude compile flags.
2006-07-11 20:12:29 +00:00
Bruce Momjian
8230fbf964
Update pginclude documentation.
2006-07-11 19:52:12 +00:00
Bruce Momjian
6d57ed7797
Have pgrminclude process include files too.
2006-07-11 19:45:16 +00:00
Bruce Momjian
22269434a6
Add $CFLAGS support to pgrminclude.
2006-07-11 19:34:34 +00:00
Bruce Momjian
1ddbfa16a8
Move pgrminclude debug code to be more effective.
2006-07-11 19:31:29 +00:00
Bruce Momjian
108fe524a9
Improve shell script wrapping.
2006-07-11 19:30:05 +00:00
Bruce Momjian
01835c495c
Add comments to pgrminclude.
2006-07-11 19:25:41 +00:00