Skip to content

Commit 1275b88

Browse files
committed
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.
1 parent a4d3a50 commit 1275b88

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tools/pginclude/cpluspluscheck

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ trap 'rm -rf $tmp' 0 1 2 3 15
1818
# regex/regerrs.h is not meant to be included standalone.
1919
# parser/gram.h will be included by parser/gramparse.h.
2020
# parser/kwlist.h is not meant to be included standalone.
21+
# pg_trace.h and utils/probes.h can include sys/sdt.h from SystemTap,
22+
# which itself contains C++ code and so won't compile with a C++
23+
# compiler under extern "C" linkage.
2124

2225
for f in `find src/include src/interfaces/libpq/libpq-fe.h src/interfaces/libpq/libpq-events.h -name '*.h' -print | \
2326
grep -v -e ^src/include/port/ \
2427
-e ^src/include/rusagestub.h -e ^src/include/regex/regerrs.h \
2528
-e ^src/include/access/rmgrlist.h \
26-
-e ^src/include/parser/gram.h -e ^src/include/parser/kwlist.h`
29+
-e ^src/include/parser/gram.h -e ^src/include/parser/kwlist.h \
30+
-e ^src/include/pg_trace.h -e ^src/include/utils/probes.h`
2731
do
2832
{
2933
echo ' extern "C" {'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy