]> granicus.if.org Git - postgresql/commit
Improve coverage of cpluspluscheck.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 May 2019 20:32:07 +0000 (16:32 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 May 2019 20:32:07 +0000 (16:32 -0400)
commit6f54b80edd88abd5665aa12fbcf10f846dd80939
treeff101f52a6e257450003a6c1d00fe57560c02450
parentb1cd7ce23f40e1e443b3f2ab127bbe8348add678
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
src/tools/pginclude/cpluspluscheck