Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 10, 2025

Conversation

maribu
Copy link
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

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 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 Area: sys Area: System Area: examples Area: Example Applications labels Apr 10, 2025
@maribu maribu added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Area: doc Area: Documentation and 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 Platform: native Platform: This PR/issue effects the native platform Platform: ARM Platform: This PR/issue effects ARM-based platforms labels Apr 10, 2025
@maribu maribu added this pull request to the merge queue Apr 10, 2025
Merged via the queue into RIOT-OS:master with commit edfa755 Apr 10, 2025
37 checks passed
@maribu maribu deleted the build-system/Werror=documentation branch April 10, 2025 19:44
@mguetschow mguetschow added this to the Release 2025.04 milestone Apr 14, 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