pgsql: Improve coverage of cpluspluscheck.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve coverage of cpluspluscheck.
Date: 2019-05-31 20:32:13
Message-ID: E1hWoCD-0000wC-A9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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 Makefile.global and making it possible
to override the warning options used (per suggestion from Andres Freund).

Discussion: https://postgr.es/m/b517ec3918d645eb950505eac8dd434e@gaz-is.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6f54b80edd88abd5665aa12fbcf10f846dd80939

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

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-06-01 19:35:24 pgsql: Fix documentation of check_option in information_schema.views
Previous Message Andres Freund 2019-05-31 19:38:03 pgsql: Integrate cpluspluscheck into build system.