pgsql: Improve coverage of cpluspluscheck.

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

pgsql: Improve coverage of cpluspluscheck.

Tom Lane-2
Improve coverage of cpluspluscheck.

Formerly, cpluspluscheck was only meant to examine headers that
we thought of as exported --- but its notion of what we export
was well behind the times.  Let's just make it check *all* .h
files, except for a well-defined blacklist, instead.

While at it, improve its ability to use a C++ compiler other than g++,
by scraping the CXX setting from and making it possible
to override the warning options used (per suggestion from Andres Freund).




Modified Files
src/tools/pginclude/cpluspluscheck | 144 +++++++++++++++++++++++++++++--------
1 file changed, 116 insertions(+), 28 deletions(-)