Repository navigation
docs(coordination): measure a warning class on the app build's TU set (#2624) - #2833
Merged
Merged
Conversation
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 warning-class helper (#2689) reads a tree's compdb, but which tree decides what a pin-drop is measured against. A Tier 2 tree is not the whole set:
libobs-opengl's platform sources, the Linux-only plugin targets and the Qt frontend compile only in the app builds, which is how #2678's pin-drop went red in aScheduledrun twice (#2703, #2710) after a clean Tier 2 replay.This adds the missing step to the mechanical-warning rule in
docs/rust-port/coordination.md: configure the AppImage tree (uv run build-aux/appimage/build.py --steps version,configure, seconds, no compile),ninja -t compdbinbuild_ubuntu/, and replay that compdb. It also notes that a vendored tree the build exempts with a target-scoped-Wno-*(librtmp,libcaptionhere) reports nothing until the pin is dropped with--drop.Documentation-only: no RED → GREEN test, no
docs/features.mdline.Refs #2624.
Measurement that motivated it
Replaying the AppImage tree's own C units on master (
f8e8c4136) with-Wmissing-prototypes -Wstrict-prototypesin the flag lists and neither-Wno-*pin present:155 C translation units (the app's C/C++ units are 1234 total; the C subset is what the flags apply to), zero findings. That is the wider-set answer #2624 was still missing: the Ubuntu app lane's first-party C is clean at #2678's flags. Re-dropping the two pins on the vendored trees (librtmp, libcaption) also reports zero, so the vendored set is clean at the same flags.
The replay is the ground truth that a source scan is not: a regex scan for a non-
staticfile-scope definition with no header prototype reports 244 candidates acrosslibobs/andplugins/*.c.h, because their prototypes live in a sibling*.c.hthe scan does not index. Only the compiler answers this question.