Two comments say what is not so: the Lint fixture's reason for its .in suffix, and the tools the Toolchain resolves #55

Open
opened 2026-11-27 09:24:49 +00:00 by jorijnvdgraaf · 0 comments

Summary

Two comments say something that is not so.

  • tests/Lint/fixture/ExportNamespace.cppm.in:5-7: the .cppm.in suffix "keeps the build's module-import scanner from treating it as a real interface of this project". A build reads only the sources a configuration lists. Neither the regex scanner before 6.4.2 nor clang-scan-deps since looks for .cppm files, and no configuration of this repository lists the fixture: tests/Lint/main.cpp:704 copies it into a scratch directory as Demo.cppm. The convention it cites, IncrementalInterfaceChange's Widget-grown.cppm.in, is the one AGENTS.template.md gives for variant sources: "Variant sources are checked in as *.in files and copied over the original inside the staged copy."
  • interfaces/Crafter.Build-Toolchain.cppm:10-11: "Every clang++, clang, llvm-ar and clang-scan-deps the tool spawns" comes from the Toolchain. So does llvm-readelf: llvmReadelf (:22), resolved the same way (implementations/Crafter.Build-Toolchain.cpp:209 and :215) and run on a Flatpak's files when it is packaged (implementations/Crafter.Build-Clang.cpp:1083, implementations/Crafter.Build-Flatpak.cpp:225). The comment left it out before 6.4.2 too.

Line numbers refer to 578a1da (6.4.2).

## Summary Two comments say something that is not so. - `tests/Lint/fixture/ExportNamespace.cppm.in:5-7`: the `.cppm.in` suffix "keeps the build's module-import scanner from treating it as a real interface of this project". A build reads only the sources a configuration lists. Neither the regex scanner before 6.4.2 nor clang-scan-deps since looks for `.cppm` files, and no configuration of this repository lists the fixture: `tests/Lint/main.cpp:704` copies it into a scratch directory as `Demo.cppm`. The convention it cites, IncrementalInterfaceChange's `Widget-grown.cppm.in`, is the one AGENTS.template.md gives for variant sources: "Variant sources are checked in as `*.in` files and copied over the original inside the staged copy." - `interfaces/Crafter.Build-Toolchain.cppm:10-11`: "Every clang++, clang, llvm-ar and clang-scan-deps the tool spawns" comes from the Toolchain. So does llvm-readelf: `llvmReadelf` (`:22`), resolved the same way (`implementations/Crafter.Build-Toolchain.cpp:209` and `:215`) and run on a Flatpak's files when it is packaged (`implementations/Crafter.Build-Clang.cpp:1083`, `implementations/Crafter.Build-Flatpak.cpp:225`). The comment left it out before 6.4.2 too. Line numbers refer to `578a1da` (6.4.2).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Catcrafts/Crafter.Build#55
No description provided.