Skip to content

fix(bindings): clang-format + dart format the provenance accessors (unbreak main C++ & Dart CI) - #897

Merged
yfedoseev merged 2 commits into
mainfrom
fix/cpp-clang-format-provenance
Jul 18, 2026
Merged

fix(bindings): clang-format + dart format the provenance accessors (unbreak main C++ & Dart CI)#897
yfedoseev merged 2 commits into
mainfrom
fix/cpp-clang-format-provenance

Conversation

@yfedoseev

@yfedoseev yfedoseev commented Jul 18, 2026

Copy link
Copy Markdown
Owner

#893 landed the C++ and Dart provenance accessors without running their formatters, red-ing two binding CIs on main:

  • C++ Bindings CI — clang-format (-Wclang-format-violations, exit 123, pdf_oxide.hpp:908)
  • Dart Bindings CIdart format --set-exit-if-changed (exit 1, pdf_oxide.dart)

Both are formatting-only. Verified locally with the exact CI commands:

  • clang-format --dry-run --Werror --style=file:cpp/.clang-format → exit 0
  • dart format --output=none --set-exit-if-changed lib test example → 0 changed, exit 0

Neither check is in the 5 required set, which is why #893 merged despite them. No functional change.

#893 added the provenance element accessor to the C++ header but the new
lines were not clang-formatted, so C++ Bindings CI on main fails the
blocking clang-format check (-Wclang-format-violations, exit 123):

  cpp/include/pdf_oxide/pdf_oxide.hpp:908: error: code should be clang-formatted

Ran clang-format --style=file:cpp/.clang-format; the only changes are
`char *p` -> `char* p` and wrapping the take_string call. Verified with
clang-format --dry-run --Werror (exit 0).

Claude-Session: https://claude.ai/code/session_01VfT1dvLWaMNh4SpaXV8kcp
Signed-off-by: Yury Fedoseev <yfedoseev@gmail.com>
#893 added the provenance element accessor to the Dart binding but the
new lookupFunction line was not dart-formatted, so Dart Bindings CI on
main fails the Format check (dart format --set-exit-if-changed, exit 1).

Ran dart format; the only change is wrapping the elementGetProvenance
lookupFunction call. Verified: dart format --output=none
--set-exit-if-changed lib test example (0 changed, exit 0).

Claude-Session: https://claude.ai/code/session_01VfT1dvLWaMNh4SpaXV8kcp
Signed-off-by: Yury Fedoseev <yfedoseev@gmail.com>
@yfedoseev yfedoseev changed the title fix(cpp): clang-format the provenance accessor block (unbreak main C++ CI) fix(bindings): clang-format + dart format the provenance accessors (unbreak main C++ & Dart CI) Jul 18, 2026
@yfedoseev
yfedoseev merged commit f145c3f into main Jul 18, 2026
151 checks passed
@yfedoseev
yfedoseev deleted the fix/cpp-clang-format-provenance branch July 23, 2026 14:40
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.

1 participant