Skip to content

Add C++ API surface checking - #756

Open
umaucher wants to merge 1 commit into
eclipse-score:mainfrom
umaucher:um_cpp_api_surface
Open

umaucher wants to merge 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.

Make unintended declaration changes visible without blocking the initial rollout.

Closes eclipse-score#755

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@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 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.

This branch has not been deployed

No deployments
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