Repository navigation
ci: Ratchet platform conditionals in shared C/C++ files (#847) - #900
Merged
Merged
Conversation
Local-Gate: v1 tree=c67861cf88c28b80a72cfb326b94ac5808fb9de1 secs=1580 lanes=lint:run,rust-test:run,cross:run,tier2-linux:run
Ci-Attestation: {"at":1792100122,"gate":"rust/all/fmt","host":"linux-x86_64","key":"2e691e9eebf92e24923fc4933b2dbbbb2ba6f940e0708718eda59add3a11dca3","lane":"lint","parents":["19ec8edc121b9196bf29410bef909fa247aeed32"],"secs":44,"stamp":"8413a96e3dc68106eadcfd099dd54946","tree":"c67861cf88c28b80a72cfb326b94ac5808fb9de1","v":1,"via":"run"}
Ci-Attestation: {"at":1792100122,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"2e691e9eebf92e24923fc4933b2dbbbb2ba6f940e0708718eda59add3a11dca3","lane":"lint","parents":["19ec8edc121b9196bf29410bef909fa247aeed32"],"secs":44,"stamp":"ae74fb9aa33b45d6d6ccdcd729183f57","tree":"c67861cf88c28b80a72cfb326b94ac5808fb9de1","v":1,"via":"run"}
Ci-Attestation: {"at":1792100122,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"0d384545b3edfe38dcd7cef83a4c6b92eb6f5bb82ae952c711ef134c49b31d6a","lane":"rust-test","parents":["19ec8edc121b9196bf29410bef909fa247aeed32"],"secs":99,"stamp":"07eb723d00e456da039ce4f0010e3aac","tree":"c67861cf88c28b80a72cfb326b94ac5808fb9de1","v":1,"via":"run"}
Ci-Attestation: {"at":1792100122,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"2070e0e293d2964365b2f7742a070b8c79cff7b3c054efc9669f3e2f1c5197b3","lane":"cross","parents":["19ec8edc121b9196bf29410bef909fa247aeed32"],"secs":108,"stamp":"e8e3a5830955b73c46be917a4348c949","tree":"c67861cf88c28b80a72cfb326b94ac5808fb9de1","v":1,"via":"run"}
Ci-Attestation: {"at":1792100122,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"2070e0e293d2964365b2f7742a070b8c79cff7b3c054efc9669f3e2f1c5197b3","lane":"cross","parents":["19ec8edc121b9196bf29410bef909fa247aeed32"],"secs":108,"stamp":"28727c8af858e2db442caf642201cc48","tree":"c67861cf88c28b80a72cfb326b94ac5808fb9de1","v":1,"via":"run"}
Ci-Attestation: {"at":1792100122,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"2070e0e293d2964365b2f7742a070b8c79cff7b3c054efc9669f3e2f1c5197b3","lane":"cross","parents":["19ec8edc121b9196bf29410bef909fa247aeed32"],"secs":108,"stamp":"b4cb65ec34512aec8e714206066962c1","tree":"c67861cf88c28b80a72cfb326b94ac5808fb9de1","v":1,"via":"run"}
Ci-Attestation: {"at":1792100122,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"2070e0e293d2964365b2f7742a070b8c79cff7b3c054efc9669f3e2f1c5197b3","lane":"cross","parents":["19ec8edc121b9196bf29410bef909fa247aeed32"],"secs":108,"stamp":"7b3c080810d9b8f80a43024b6c495f6b","tree":"c67861cf88c28b80a72cfb326b94ac5808fb9de1","v":1,"via":"run"}
Ci-Attestation: {"at":1792100122,"gate":"rust/x86_64-apple-darwin/clippy","host":"linux-x86_64","key":"2070e0e293d2964365b2f7742a070b8c79cff7b3c054efc9669f3e2f1c5197b3","lane":"cross","parents":["19ec8edc121b9196bf29410bef909fa247aeed32"],"secs":108,"stamp":"f1c8f8a1d592b7994094bf1ff6f3813e","tree":"c67861cf88c28b80a72cfb326b94ac5808fb9de1","v":1,"via":"run"}
Ci-Attestation: {"at":1792100122,"gate":"rust/x86_64-apple-darwin/dylint","host":"linux-x86_64","key":"2070e0e293d2964365b2f7742a070b8c79cff7b3c054efc9669f3e2f1c5197b3","lane":"cross","parents":["19ec8edc121b9196bf29410bef909fa247aeed32"],"secs":108,"stamp":"fc67f8f0b99cc21483f4ac6f6544332b","tree":"c67861cf88c28b80a72cfb326b94ac5808fb9de1","v":1,"via":"run"}
Ci-Attestation: {"at":1792100122,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"0c19ede87a0bba12c02d4d4a73504326f4b52ebcfec57fb2106d9459e7586736","lane":"tier2-linux","parents":["19ec8edc121b9196bf29410bef909fa247aeed32"],"secs":1329,"stamp":"8811bc682786f754265a140cf5718516","tree":"c67861cf88c28b80a72cfb326b94ac5808fb9de1","v":1,"via":"run"}
Member
Author
|
From #897 / #911: please import |
Member
Author
|
Maintainer policy (#897), restated for this lint:
|
This was referenced Oct 15, 2026
Closed
Merged
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.
Fixes #848. Refs #847.
Adds
ci/platform_ifdef_ratchet.py,ci/test_platform_ifdef_ratchet.pyandci/platform-ifdef-baseline.json(path to count), run by./lint(lane lint,ci/local_gate.py).#if/#ifdef/#ifndef/#eliflines naming a platform macro (bare,defined(X),defined X,!defined(X), plainWIN32,TARGET_OS_*, ...) in tracked C/C++/ObjC under libobs/, frontend/, shared/, plugins/..m/.mm;platform-*), submodules, deps/, librtmp and rnnoise (vendored).--updaterewrites the baseline.RED: 3bd61d3 (stub; 35 failures, 1 error) and 19ec8ed (bare/
defined/WIN32forms, 1 failure). GREEN: c94ec66 and 15494dd (15 tests pass).Local gate:
./lintok;ci-lint local-gate runpassed (lint, rust-test, cross, tier2-linux), stamped 15494dd. No submodule pointer or workflow change.