Repository navigation
Sync TapHouse v8: tidy.sh checks each file once; STYLE.md's banner line - #53
Conversation
scripts/sync.sh from TapHouse v8 (8c0e101) and the drift check's pin moved from v7 to v8 in .github/workflows/style.yml: - scripts/tidy.sh: the no-argument sweep checks each file in the compile database once (clang-tidy -p checks all of a file's compile commands in one call, so one call per entry checked a file compiled n times n^2 times), and builds its list without mapfile, so macOS bash 3.2 runs it (tap/TapHouse#14). - STYLE.md: the per-file banner template states the family's copyright line, "Copyright <year> Timothy Place and the <Library> contributors" (tap/TapHouse#13). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016GKzq1VSdcMYCRMhddiMaf
|
Update: fixed on this branch by 5a85af2. The glue's TSan row now builds with Clang, and configuring it with GCC 14+ under TSan stops with an explanation. Every check is green on that head,
Confirmed red on What fails. The #define AE_NO_TSAN __attribute__((no_sanitize("thread"))) // when __has_feature(thread_sanitizer)
AE_FORCEINLINE void compiler_fence(memory_order order) AE_NO_TSAN { … }GCC 15, on the current The fix exists upstream. Generated by Claude Code |
ubuntu-latest moved to Ubuntu 26.04 and GCC 15, and linux-max-glue (tsan) stopped compiling, on
main as on every branch: "attributes are not allowed on a function-definition", 14 times in each
of the glue test's two TUs, all from min-api's readerwriterqueue. min-api pins it at a500a29, whose
atomicops.h asks __has_feature(thread_sanitizer) and then puts AE_NO_TSAN,
__attribute__((no_sanitize("thread"))), after the declarator of function definitions: a place
Clang accepts and GCC refuses. GCC had no __has_feature before 14, so under GCC 13 the macro was
empty and the row built. readerwriterqueue fixed it in 5904a29; min-api's tip still pins a500a29.
The macro is used on atomicops.h's own definitions too, so nothing force-included ahead of it can
empty it without redefining a builtin. The row builds with Clang instead (the image has 20-22),
installing Clang's sanitizer runtimes when the image lacks them (a recommends in Ubuntu, not a
depends); the release and asan-ubsan rows name gcc/g++, as they ran before. Configuring the glue
test for TSan with GCC 14 or later now stops with a message that says this and what to use, until
the pinned atomicops.h knows __SANITIZE_THREAD__ (5904a29's test), when the check retires itself.
Checked locally: GCC 14 + TSan reproduces CI's errors and now stops at configure; GCC 13 + TSan
and GCC 14 + ASan/UBSan configure as before; Clang 18 + TSan builds and the glue test passes
(233 assertions in 17 test cases, no TSan report); the GCC release build passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FaMFrPxB5YeqohNoxCyuLM
What this changes
This re-syncs TapHouse v8 (
8c0e101) withscripts/sync.sh --icon PythonTapand moves the drift check's pin fromv7tov8.scripts/tidy.sh: the no-argument sweep checks each file in the compile database once, and builds its file list withoutmapfile, so macOS bash 3.2 runs it (tidy.sh: the sweep checks each file once, and runs on macOS bash 3.2 TapHouse#14).STYLE.md: the per-file banner template now states the family's copyright line (STYLE.md: the banner template states the family's copyright line TapHouse#13).Why
clang-tidy -p build <file>already checks every compile command the database holds for that file, so one call per database entry checked a file compiled n times n² times. This repo's CI gate loops over named sources rather than database entries, so the gate is unaffected. The local sweep, and macOS bash 3.2 support for it, are what change.Verification
sync.shreported exactly three changed files:tidy.sh,STYLE.mdandstyle.yml's pin. The icons are unchanged.v8.Notes for the reviewer
Generated by Claude Code