Skip to content
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

checksrc: warn on space after exclamation mark #6034

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Oct 2, 2020

No description provided.

@bagder bagder added the tidy-up label Oct 2, 2020
@@ -725,6 +726,12 @@ sub scanfile {
"typedef'ed struct");
}

if($nostr =~ /(.*)! +(\w|\()/) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to use \s+ to handle any type of whitespace?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, maybe? Can there actually be any other whitespace that we don't already warn about elsewhere?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, it would be superfluous.

@bagder bagder closed this in 26a7d51 Oct 2, 2020
@bagder bagder deleted the bagder/exclamationspace branch October 2, 2020 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants