Skip to content

build-system: Drop -Wno-error=documentation#21377

Merged
maribu merged 4 commits intoRIOT-OS:masterfrom
maribu:build-system/Werror=documentation
Apr 10, 2025
Merged

build-system: Drop -Wno-error=documentation#21377
maribu merged 4 commits intoRIOT-OS:masterfrom
maribu:build-system/Werror=documentation

Conversation

@maribu
Copy link
Copy Markdown
Member

@maribu maribu commented Apr 7, 2025

Contribution description

Treat documentation issues flagged by LLVM as hard errors.

LLVM tends to be a lot less picky about documentation issues compared to Doxygen (e.g. no warning about missing doc), but warns about things that really are not intentional (e.g. @param foo when the argument has been renamed to bar, @return when the return type is void, ...).

Having this as a base line requirement seems pretty sane.

Testing procedure

  • Green CI
  • Code Review

Issues/PRs references

None

@github-actions github-actions bot added Area: build system Area: Build system Area: pkg Area: External package ports labels Apr 7, 2025
@maribu maribu added Area: doc Area: Documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Apr 7, 2025
@maribu maribu force-pushed the build-system/Werror=documentation branch from 13b352b to 20fe138 Compare April 8, 2025 05:53
@github-actions github-actions bot added Area: pkg Area: External package ports and removed Area: doc Area: Documentation labels Apr 8, 2025
@riot-ci
Copy link
Copy Markdown

riot-ci commented Apr 8, 2025

Murdock results

✔️ PASSED

8e31630 build-system: Drop -Wno-error=documentation

Success Failures Total Runtime
10295 0 10295 11m:10s

Artifacts

@github-actions github-actions bot added Platform: native Platform: This PR/issue effects the native platform Platform: ARM Platform: This PR/issue effects ARM-based platforms Area: network Area: Networking Area: drivers Area: Device drivers Area: BLE Area: Bluetooth Low Energy support Area: LoRa Area: LoRa radio support Area: cpu Area: CPU/MCU ports Area: sys Area: System Area: examples Area: Example Applications labels Apr 8, 2025
@maribu maribu force-pushed the build-system/Werror=documentation branch 2 times, most recently from 307bc54 to 20dbde1 Compare April 8, 2025 10:45
@github-actions github-actions bot added the Area: boards Area: Board ports label Apr 8, 2025
@maribu maribu force-pushed the build-system/Werror=documentation branch 7 times, most recently from 0a1b751 to c786c78 Compare April 8, 2025 19:24
@maribu maribu requested a review from MrKevinWeiss as a code owner April 9, 2025 21:50
@maribu maribu added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Apr 9, 2025
@maribu maribu force-pushed the build-system/Werror=documentation branch from ccdeb43 to a3e8d8e Compare April 10, 2025 05:19
@maribu maribu requested a review from vincent-d as a code owner April 10, 2025 05:19
@maribu maribu force-pushed the build-system/Werror=documentation branch from a3e8d8e to 24bfe66 Compare April 10, 2025 08:39
@maribu maribu enabled auto-merge April 10, 2025 09:25
@maribu maribu removed Area: network Area: Networking Area: drivers Area: Device drivers Area: BLE Area: Bluetooth Low Energy support Area: LoRa Area: LoRa radio support Area: boards Area: Board ports Area: cpu Area: CPU/MCU ports Area: sys Area: System Area: examples Area: Example Applications CI: full build disable CI build filter CI: no fast fail don't abort PR build after first error labels Apr 10, 2025
maribu added 4 commits April 10, 2025 13:37
This should fix compilation with -Wdocumentation on LLVM.
pkg/wamr has special handling for passing along includes, but assumed
that all includes would be passed via `-I` and not `-isystem`. This
now extends the special handling to support both.
We cannot fix package headers downstream, so we can just as well tell
the compiler to not warn about them.
Treat documentation issues flagged by LLVM as hard errors.

LLVM tends to be a lot less picky about documentation issues compared
to Doxygen (e.g. no warning about missing doc), but warns about things
that really are not intentional (e.g. `@param foo` when the argument has
been renamed to `bar`, `@return` when the return type is `void`, ...).

Having this as a base line requirement seems pretty sane.
@maribu maribu force-pushed the build-system/Werror=documentation branch from 24bfe66 to 8e31630 Compare April 10, 2025 11:37
@github-actions github-actions bot added Area: network Area: Networking Area: drivers Area: Device drivers Area: BLE Area: Bluetooth Low Energy support Area: LoRa Area: LoRa radio support Area: boards Area: Board ports Area: cpu Area: CPU/MCU ports labels Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: build system Area: Build system Area: doc Area: Documentation Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants