Repository navigation
libs/libc: Fix the nxstyle errors in 113 files. - #20703
Merged
Merged
Conversation
codespell reports "occurd" in the description of creat(). Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
Fix the indentation, blank lines and comment layout that nxstyle reports, so that a later change to one of these files passes the CI check, which checks every changed file whole. Whitespace and comments only. The C tokens of each file are the same as before. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
casaroli
requested review from
Donny9,
Ouss4,
anchao,
antmerlino,
gustavonihei,
hartmannathan,
jerpelea,
michallenc,
pkarashchenko,
pussuw,
raiden00pl,
tmedicci,
xiaoxiang781216,
yamt and
yf13
as code owners
October 16, 2026 13:07
xiaoxiang781216
approved these changes
Oct 16, 2026
acassis
approved these changes
Oct 16, 2026
This was referenced Oct 16, 2026
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.
Summary
This PR is an experiment. It fixes the nxstyle errors in 113 files in libs/libc. If the maintainers do not want this type of change, please reject or close it.
CI runs nxstyle on every changed file whole. When a file has old style errors, a small fix to that file fails the check, and the author must first correct the style of the whole file. After this PR, a change to one of these files fails the check only because of its own lines.
The changes are only whitespace, blank lines and comment layout. The C tokens of each file are the same as before. A second commit fixes the typo "occurd" in lib_creat.c, which codespell reports.
These files are not in this PR:
begin_packed_struct.Question: NuttX has no
.git-blame-ignore-revs. Do you want me to add one with this commit, so thatgit blameskips it? The hash can change when the PR merges, so I would add it in a separate PR after the merge.Impact
The code does not change. Five open PRs touch 4 of these files and can need a rebase: #20691, #20693 and #18340 (lib_getaddrinfo.c), #14923 (lib_putchar.c, lib_puts.c) and #13197 (risc-v arch_elf.c). I can remove these files from this PR if you prefer.
Testing
tools/checkpatch.sh -c -u -m -gpasses on the two commits.