Skip to content
Snippets Groups Projects
Commit 172a3a82 authored by Eric Nelson's avatar Eric Nelson Committed by Wolfgang Denk
Browse files

checkpatch: add check for whitespace before semicolon at end-of-line


This tests for a bad habits of mine like this:

	return 0 ;

Signed-off-by: default avatarEric Nelson <eric.nelson@boundarydevices.com>
parent b37d41aa
No related branches found
No related tags found
No related merge requests found
......@@ -3139,6 +3139,12 @@ sub process {
"Statements terminations use 1 semicolon\n" . $herecurr);
}
# check for whitespace before semicolon - not allowed at end-of-line
if ($line =~ /\s+;$/) {
WARN("SPACEBEFORE_SEMICOLON",
"Whitespace before semicolon\n" . $herecurr);
}
# check for gcc specific __FUNCTION__
if ($line =~ /__FUNCTION__/) {
WARN("USE_FUNC",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment