Repository navigation
Conversation
Add a root .clang-format-ignore for src/vendor/** and src/cpp11.cpp, and build-ignore it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Hr1rd3zHUSUZLRSv2YuHbe
Member
Author
Accepted limitationsNone. The clean review found nothing above Low; its Low note (the Generated by Claude Code |
krlmlr
marked this pull request as ready for review
November 29, 2026 11:23
This was referenced Nov 30, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The repository already has a
.clang-format, and every top-level file insrc/already conforms to it. This PR is configuration only: it adds a root.clang-format-ignoreso that the style action on CI, which runsclang-format -i src/*.{c,cc,cpp,h,hpp}, and anyone running clang-format locally leave the vendored and generated code alone, and it build-ignores that file.Excluded patterns:
src/vendor/**(SQLite amalgamation, its extensions and boost, all replaced wholesale bydata-raw/upgrade.R) andsrc/cpp11.cpp(generated bycpp11::cpp_register()). A root file is used rather than a hidden file insidesrc/vendor/, which the upgrade would replace and which would ship in the tarball..Rbuildignorealready had^\.clang-format$; this adds^\.clang-format-ignore$.The planned formatting commit is empty and therefore omitted:
clang-format --dry-run -Werrorover the 50 files of the CI set already passes, so nothing is reformatted.Repo docs consulted:
.github/CONTRIBUTING.md,UPDATE.mdanddata-raw/upgrade.R(no formatting or vendoring conventions beyond the upgrade script; there is noAGENTS.md,CLAUDE.mdorhandbook/). Theupgradeworkflow only runsdata-raw/upgrade.R, which writes undersrc/vendor/and readspatch/, then commitssrc; it never touches root files, so it cannot delete or conflict with the new file.How byte-identity was checked
No compiled input changed, so a build comparison is unnecessary.
git diff --stat origin/main..HEADshows only:With clang-format 21.1.8,
clang-format --dry-run -Werror src/*.{c,cc,cpp,h,hpp}exits 0 over the 50 CI files.src/cpp11.cpp,src/vendor/sqlite3/sqlite3.c,src/vendor/boost/tokenizer.hppandsrc/vendor/extensions/csv.cnamed on the command line exit 0 with no output (ignored); without the ignore file,csv.cfails with a formatting violation, so the patterns take effect.R CMD buildsucceeds, and the tarball contains no.clang-format*file (the onlyclangmatches are boost's ownclang.hppandclang_version.hpp).https://claude.ai/code/session_01Hr1rd3zHUSUZLRSv2YuHbe
Generated by Claude Code