Skip to content

checksrc: check for spaces around '?', '>' and '<' - #14921

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/checksrc-space-q
Closed

checksrc: check for spaces around '?', '>' and '<'#14921
bagder wants to merge 2 commits into
masterfrom
bagder/checksrc-space-q

Conversation

@bagder

@bagder bagder commented Sep 15, 2024

Copy link
Copy Markdown
Member

Inspired by #14912

@dfandrich

This comment was marked as outdated.

Comment thread tests/server/util.c Outdated
@bagder

bagder commented Sep 16, 2024

Copy link
Copy Markdown
Member Author

Verifying spaces around the colons turns out to be quite difficult without catching a few false positives: they are used for switches, goto labels and bit-size indicators in struct declarations where we do not want to insist on use of space. So I'll not add that check to checksrc in this PR but I used an attempt to find a bunch of occurrences fixed here.

@bagder
bagder force-pushed the bagder/checksrc-space-q branch from 4dfdf74 to 626579a Compare September 18, 2024 13:31
@bagder

bagder commented Sep 19, 2024

Copy link
Copy Markdown
Member Author

Buckle up!

@bagder bagder closed this in fbf5d50 Sep 19, 2024
bagder added a commit that referenced this pull request Sep 19, 2024
@bagder
bagder deleted the bagder/checksrc-space-q branch September 19, 2024 12:59
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
... as checksrc now finds and complains about these.

Closes curl#14921
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants