-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
maribu
merged 4 commits into
RIOT-OS:master
from
maribu:build-system/Werror=documentation
Apr 10, 2025
Merged
build-system: Drop -Wno-error=documentation #21377
maribu
merged 4 commits into
RIOT-OS:master
from
maribu:build-system/Werror=documentation
Apr 10, 2025
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
13b352b
to
20fe138
Compare
307bc54
to
20dbde1
Compare
0a1b751
to
c786c78
Compare
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.
24bfe66
to
8e31630
Compare
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
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.
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 tobar
,@return
when the return type isvoid
, ...).Having this as a base line requirement seems pretty sane.
Testing procedure
Issues/PRs references
None