Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1275b88

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 parenta4d3a50 commit1275b88

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
forfin`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)

[8]ページ先頭

©2009-2025 Movatter.jp