Skip to content

Add C++ API surface checking - #756

Merged
PandaeDo merged 1 commit into
eclipse-score:mainfrom
umaucher:um_cpp_api_surface
Dec 4, 2026
Merged

PandaeDo merged 1 commit into
eclipse-score:mainfrom
umaucher:um_cpp_api_surface

Conversation

@umaucher

Copy link
Copy Markdown
Contributor

Start with a non-blocking Linux x86-64 API check so its output can be evaluated before enforcement. Product and coverage toolchains remain unchanged; Rust and QNX API checking are out of scope.

Closes #755

Validation

  • API baseline and C++ unit tests; signature/removal mutations rejected and private-only changes accepted.
  • Formatting, changed-file copyright, Bazel lockfile consistency and commit-message checks.
  • C++ and Rust product builds for Linux x86-64, QNX x86-64 and QNX aarch64.

@github-actions

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-756: https://eclipse-score.github.io/persistency/pr-756/

@umaucher
umaucher marked this pull request as ready for review November 23, 2026 17:14
PandaeDo
PandaeDo previously approved these changes Nov 24, 2026

@PandaeDo PandaeDo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One point to resolve before merge, or as a follow-up issue:

Second LLVM toolchain / ToDo in MODULE.bazel
api_surface_llvm is the same LLVM 22.1.7 as the existing llvm_toolchain, differing only in stdlib = libc++ vs. stdc++. The checker README uses @llvm_toolchain//:cc-clang-x86_64-linux as default.
Could you try cc_toolchain = "@llvm_toolchain//:cc-clang-x86_64-linux" and run //tools/api_surface:check?

  • If it passes with an unchanged lock file → drop api_surface_llvm and the ToDo.
  • If not → keep it, but replace the ToDo with a short rationale (hermetic parsing independent of host GCC headers).

This review was prepared with AI support (Claude Code) and checked by me.

Make unintended declaration changes visible without blocking the initial rollout.

Closes eclipse-score#755

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@umaucher

umaucher commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

One point to resolve before merge, or as a follow-up issue:

Second LLVM toolchain / ToDo in MODULE.bazel api_surface_llvm is the same LLVM 22.1.7 as the existing llvm_toolchain, differing only in stdlib = libc++ vs. stdc++. The checker README uses @llvm_toolchain//:cc-clang-x86_64-linux as default. Could you try cc_toolchain = "@llvm_toolchain//:cc-clang-x86_64-linux" and run //tools/api_surface:check?

  • If it passes with an unchanged lock file → drop api_surface_llvm and the ToDo.
  • If not → keep it, but replace the ToDo with a short rationale (hermetic parsing independent of host GCC headers).

This review was prepared with AI support (Claude Code) and checked by me.

for now "own" toolchain will be kept ... will start the discussion if there is a solution to provide one via eclipse-score/bazel_cpp_toolchains

@umaucher

umaucher commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

@PandaeDo PandaeDo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PandaeDo
PandaeDo added this pull request to the merge queue Dec 4, 2026
Merged via the queue into eclipse-score:main with commit e419846 Dec 4, 2026
35 checks passed

This branch was previously deployed

1 inactive deployment
workflow-approval — 759feef8 Deployed Dec 4, 2026 by umaucher via Build and Test run-under-qnx-aarch64 / approval #252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add C++ API surface checking

2 participants