Skip to content

Verify C++ compatibility of public headers

Bruce Richardson dpdk-dev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 1 replyIn review
  2. v47 patches 6 repliesSuperseded
  3. v37 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v27 patches3 repliesSuperseded
v17 patches6 repliesSuperseded

Changes in v5 from the cover letter

* Dropped first 6 patches which contained fixes now already applied.
* Added new patch to slim-down the linkage of existing chkincs binary
* New patch to add CPP checks also only does mimimal linkage

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2buildtools/chkincs: remove unnecesary linkagebuildtools/chkincs/meson.build+1 -20 replies
2/2buildtools/chkincs: test headers for C++ compatibility.ci/linux-build.sh .github/workflows/build.yml buildtools/chkincs/main.cpp +2 more+26 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 0/2] Verify C++ compatibility of public headers

NOTE: despite significant differences in patchset, submitting this as v5 to keep history and threading rather than as new v1

This patchset expands upon the exiting chkincs infrastructure to build a C++ test application as well as the existing C test app, which helps catch any build errors when the public DPDK headers are included in C++ code.

V5:
* Dropped first 6 patches which contained fixes now already applied.
* Added new patch to slim-down the linkage of existing chkincs binary
* New patch to add CPP checks also only does mimimal linkage

V4:
* add g++-multilib to packages to install for github checks to ensure 32-bit builds work
* correct the fixline for patch 1
* add extra cpp_args and cpp_link_args for 32-bit builds in test-meson-builds so that includes checks can pass there if enabled.

V3:
* update linux-build script to have cpp_args=-m32 for 32-bit builds

V2:
* Changed patch 6 to have a minimally-invasive fix for C++ without affecting existing C code.
* Added fixlines and Cc stable for all patches which are fixes

Bruce Richardson (2):
buildtools/chkincs: remove unnecesary linkage buildtools/chkincs: test headers for C++ compatibility

 .ci/linux-build.sh             |  1 +
 .github/workflows/build.yml    |  2 +-
 buildtools/chkincs/main.cpp    |  4 ++++
 buildtools/chkincs/meson.build | 21 +++++++++++++++++++--
 devtools/test-meson-builds.sh  |  3 ++-
 5 files changed, 27 insertions(+), 4 deletions(-)
 create mode 100644 buildtools/chkincs/main.cpp

--
2.32.0